Script to quit and then restart a Setup? - Advanced Installer Community
DiegoCP
Posts: 139
Joined: Fri Jan 23, 2015 1:02 pm

Script to quit and then restart a Setup?

Hello! So the idea is i have a push button on the Welcome Dialog.
And when i press it, a custom action is deployed that calls a script.

That script need to grab some info (that not the problem) and close wizard. After being close it need to start it again.

Is there anyway i can do that? Maybe using a command to the cmd.exe?


Thank You.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Script to quit and then restart a Setup?

Hello,

You can try to proceed like this:
1. add your custom action in "Custom Actions" page as a custom action without sequence and disable its "Wait for custom action to finish before proceeding" and "Wait for return code at the end of the sequence" execution options
2. on your button from "WelcomeDlg" add a "Close the current dialog -> Exit" published event
3. on the "UserExit" dialog -> [Finish] button add a published event which will launch your custom action
4. build and run the project

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”