Yurik
16th June 2011 09:35 UTC
Programmatically abort installation
In my nsis installation at a custom page I have a point when a user has to reboot. I would like to abort installation at this point. How do I?
I can only see the option to skip custom page (Abort command), but this is not what I need.
Afrow UK
16th June 2011 11:50 UTC
Quit?
Stu
MSG
16th June 2011 14:09 UTC
(Note: The fact that you want to reboot suggests that you're making changes to the user's system on your custom page. This would be a bad thing. Until the user clicks 'Install' on the last page before INSTFILES, you shouldn't be making changes to the system. So you should install stuff on the INSTFILES page (using the Sections), not on other pages.)
Yurik
16th June 2011 15:18 UTC
Thanks, MSG, in my case this is third-party installation, which is run as a part of mine, and after it a user has to reboot otherwise further installation would fail.
Yurik
16th June 2011 21:37 UTC
Thanks, Afrow UK - I tried to look for Exit, Halt and other words. Quit works.
Unfortunately, when googling for canceling installation, only user canceling can be found (with .onInstAborted handler or something like this).
MSG
17th June 2011 05:54 UTC
It's all in the manual: http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.4.17 (under Flow Control instructions)