PomaChelovek
22nd August 2011 18:08 UTC
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?
MSG
22nd August 2011 21:52 UTC
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).
Roger_wgnr
23rd August 2011 07:48 UTC
You may want to consider using the Ultra Modern UI it has an Abort Page (and I feel a better look).
Harner
24th August 2011 13:33 UTC
Use the Function .onInstFailed.
Create a page and if the installation was successful this function should abort the custom page!