Archive: How to make 'Installation failed' page?


How to make 'Installation failed' page?
I'm trying to make install script using Modern UI 2. I want to make page similar to MUI_PAGE_FINISH for the case when installation had failed (or cancelled by user). Currently I'm using command 'Abort' command for such cases, but it only stops the progress and writes error above the progress bar. Many users don't understand why installation stopped. How make this?


You can do this very simply by showing a MessageBox before you call the abort function.

If you must have a page for this, you can use page jumping to skip to a custom page (I think..), or you can modify the finish page (using either the standard MUI macros, or in the page's show function, or by modifying NSIS\Contrib\Modern UI 2\Pages\Finish.nsh).


You may want to consider using the Ultra Modern UI it has an Abort Page (and I feel a better look).


Use the Function .onInstFailed.
Create a page and if the installation was successful this function should abort the custom page!