crisp
19th August 2003 15:50 UTC
Abort installer
Hi.
I have the following situation:
In my installer I have a custom page which sets some parameters for an external program that I have to run.
On the leave function of this custom page I run the program, check the output and if any error occured I call abort.
This doesn't let me to go to the next page.
As this is a critical error I want to cancel completly the install process. Maybe displaying a message and then exit the installer.
Any ideeas on how to do that ?
Thanks,
Crisp
Afrow UK
19th August 2003 16:46 UTC
Abort makes you go back to the page being left, so just not call Abort if you want to continue.
-Stu
pengyou
19th August 2003 17:44 UTC
The Abort command behaves differently when you use it in a "leave" function.
You could move the code that runs the external program and does the checking into the function that creates the custom page (put it after the InstallOptions line). Then you can use Abort (in the "custom page" function) to cancel the installation.
deguix
19th August 2003 18:23 UTC
As this is a critical error I want to cancel completly the install process. Maybe displaying a message and then exit the installer.
Use MessageBox command, and after, the Quit command.
crisp
19th August 2003 18:34 UTC
Thanks for the tips !
Actually I think handle the error after InstallOption it's maybe a better idea.
I new there must a "quit" command but i guess i forgot about it.:igor:
Crisp