Finish dialog no restart option

Got a problem you cannot solve? Try here.
Post Reply
dasjester
Posts: 13
Joined: Thu Nov 05, 2020 1:44 am

Finish dialog no restart option

Post 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
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Finish dialog no restart option

Post 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
run_program.png (79.57 KiB) Viewed 9383 times
Hope this helps you.
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
dasjester
Posts: 13
Joined: Thu Nov 05, 2020 1:44 am

Re: Finish dialog no restart option

Post 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.
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Finish dialog no restart option

Post 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.
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
dasjester
Posts: 13
Joined: Thu Nov 05, 2020 1:44 am

Re: Finish dialog no restart option

Post by dasjester »

Is there a variable I can set that will force the restart option to be present if I want them to restart?
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Finish dialog no restart option

Post by FrancescoT »

You can simply modify the dialog in order to have such control always visible.
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
dasjester
Posts: 13
Joined: Thu Nov 05, 2020 1:44 am

Re: Finish dialog no restart option

Post 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
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Finish dialog no restart option

Post 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.
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply