Page 1 of 1
Finish dialog no restart option
Posted: Sat Nov 21, 2020 2:13 pm
by dasjester
I am using IA developer.
When the install finishes I get the finish dial that says "do you wish to run XX"
When I look at the dialog there is a box that shows do you wish to restart.
In the MSIcode is checks for the variables to determine to restart.
However - the option to restart does Not appear in my install.
Is there some variable or something I need to set to make that line appear in the dialog?
Thanks
Re: Finish dialog no restart option
Posted: Mon Nov 23, 2020 1:00 pm
by FrancescoT
From the IA IDE, switch to Design View, then from the left tree pane select "Run Program" under the "Advanced Options" node.
Finally define which program you want to run as a part of your installation process, and also select the "Finish Dialog" in the Run Timing options. The two-way integrated IDE will update the script code accordingly.

- run_program.png (79.57 KiB) Viewed 8249 times
Hope this helps you.
Re: Finish dialog no restart option
Posted: Tue Nov 24, 2020 12:26 am
by dasjester
I am not sure I understand - there already is a finish built in dialog which is invoked.
Going to Advanced options and run program I have to do NEW -
Why doesnt the built in dialog that has the 2 options I need work?
thanks
Also -- I tried to paste screen shot like was done for me here but I am not able to paste my image -what do I need
to do to be able to post copied image.
Re: Finish dialog no restart option
Posted: Tue Nov 24, 2020 1:56 pm
by FrancescoT
I'm not sure if i am missing something.
At any rate, by default the Finish shows two options; Restart and Run Program.
- Restart
This option is visible (enabled) exclusively when a reboot request is pending. Such Reboot condition depends on whether the computer needs to be rebooted for the changes to take effect.
By default, the MSI Script already includes all the necessary code for handling such reboot request.
So for what concerns this option, there is nothing to add in terms of coding.
- Run Program
Just follow my previous steps in case you want handle such option.
Hope this helps you.
Re: Finish dialog no restart option
Posted: Wed Nov 25, 2020 10:47 am
by dasjester
Is there a variable I can set that will force the restart option to be present if I want them to restart?
Re: Finish dialog no restart option
Posted: Wed Nov 25, 2020 2:02 pm
by FrancescoT
You can simply modify the dialog in order to have such control always visible.
Re: Finish dialog no restart option
Posted: Wed Nov 25, 2020 4:23 pm
by dasjester
I dont think developer version allows me to edit the dialog.
Any other options to ask / allow a reboot just using developer, even in IA doesnt think a reboot is required?
thanks
Re: Finish dialog no restart option
Posted: Thu Nov 26, 2020 2:12 pm
by FrancescoT
The visibility of that control depends on the value of the SUCCESS pre-defined variable (enabled when SUCCESS=REBOOT).
So, you may force the value of such variable to REBOOT, but only once Apply Install has completed successfully.