Finish dialog no restart option

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

Finish dialog no restart option

Postby dasjester » Sat Nov 21, 2020 2:13 pm

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

Postby FrancescoT » Mon Nov 23, 2020 1:00 pm

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 4743 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

Postby dasjester » Tue Nov 24, 2020 12:26 am

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

Postby FrancescoT » Tue Nov 24, 2020 1:56 pm

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

Postby dasjester » Wed Nov 25, 2020 10:47 am

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

Postby FrancescoT » Wed Nov 25, 2020 2:02 pm

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

Postby dasjester » Wed Nov 25, 2020 4:23 pm

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

Postby FrancescoT » Thu Nov 26, 2020 2:12 pm

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


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 58 guests