Restart checkbox does not restart - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

BobCrothers
Posts: 66
Joined: Wed Dec 05, 2007 10:58 pm

Restart checkbox does not restart

Hi,

I have followed the directions in the help titled “How do I restart the machine after the installation?”

Install parameters, reboot prompts set to “Suppress all Reboots and Reboot prompts.”

I have added a check box on the ExitDialog, “Restart machine”
The property is “ROBOOT”
Value is “Force”
Default Value is “Force”


When I run the install, the “Restart machine” checkbox is checked, but the machine does not reboot. If I uncheck, then check the box, it DOES reboot. I notice when I run the install with “Run and Log” I see the following files

When I Uncheck the box
MSI (c) (8C:90) [15:33:55:379]: PROPERTY CHANGE: Deleting REBOOT property. Its current value is 'ReallySuppress'.
When I check the box
MSI (c) (8C:90) [15:34:15:427]: PROPERTY CHANGE: Adding REBOOT property. Its value is 'Force'.

If the user does nothing the value of REBOOT is 'ReallySuppress'. I would like the installer to pickup the default value, “Force” if the user does nothing.

My goal is to postpone all rebooting of the prerequisites and reboot at the end of the install.

Using AI 6.6 on Windows XP.

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

Re: Restart checkbox does not restart

Hi Bob,

Unfortunately there is a mistake in the how-to. Thank you for bringing this to our attention.

The "Default" value of a property is written in the "Property" table of the MSI. However, the combo box in the "Install Parameters" page writes in the same table, so a conflict appears (the combo box wins). We fixed the mistake and we will update the help as soon as possible.

If you want the reboot option to be enabled by default, you can follow these steps:
- set the "Reboot Prompts" combo box to "Force reboot after install"
- set the text of your custom checkbox to something like "Do not reboot the machine"
- set the "Value" filed in the "Properties" pane of the checkbox to "ReallySuppress"

Basically, the machine will be rebooted unless the user checks the "Do not reboot the machine" checkbox.

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

Return to “Common Problems”