phainge
Posts: 13
Joined: Fri May 29, 2009 9:53 am

Restart check box not working

Hi,

I've followed the "Restart machine after install" How To, but it's not working, the restart check box has no effect. I notice that someone had this same problem a while back and was told that the How To is incorrect and that the only way this will work is to force a reboot and have the check box disable this. Is this still the case?

Thanks.

Peter
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Restart check box not working

Hi Peter,

Yes, the how-to contains a mistake. It will be fixed in the next release. In your project you can try this:
- modify the property of the reboot checkbox to "REBOOT_CHECK" (for example)
- select the "Finish" button on "ExitDialog"
- create this "SetProperty" published control event:

Code: Select all

[REBOOT]       Force        AI_INSTALL AND REBOOT_CHECK
This will set the "REBOOT" property to "Force" if the reboot checkbox is checked.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
phainge
Posts: 13
Joined: Fri May 29, 2009 9:53 am

Re: Restart check box not working

Hi Cosmin,

That works thanks, although it triggers display of an additional Windows Installer restart confirmation dialog. Is there any way to supress that extra dialog and just do the restart?

Peter
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Restart check box not working

Hi Peter,

You can try setting the REBOOTPROMPT property to:

Code: Select all

Supress
This should make the package perform the reboot automatically, without prompting the user. You can set the property in the "Install Parameters" page.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”