shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Change in the reboot behaviour

Hi,

I have an installer which needs a reboot after the install. So I have selected "Reboot Behavior"->"Force Reboot after install".

However, I do not want this(i.e reboot) during the uninstall. Is this possible??

Regards,
Rohan
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Change in the reboot behaviour

Hi Rohan,

The reboot prompts showed sometimes by Windows Installer during or after an installation are controlled by the REBOOT property.

Here's the How do I restart the machine after the installation? article with related information for hints and guidance.

Please let us know if that helped, othersie give us more details about your specific scenario.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Change in the reboot behaviour

Hi Dan,

Thanks, may be my question was not clear.

I want to achieve the following
- reboot should happen after the installation
- reboot should NOT happen after the uninstallation

If I enable "Reboot Behavior"->"Force Reboot after install", this prompts for the reboot both for the installation and uninstallation. I want the reboot to happen only during the installation(but not during the uninstallation)

Regards,
Rohan
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Change in the reboot behaviour

Hi Rohan,

In order to reboot only after install, you can go in the Install Parameters page and select for the Reboot Behavior the Prompt for Reboot when required option. Also you can enable Perform the reboot if required without showing any prompts option if you want to reboot automatically without prompting the user.

In the Custom Actions page you add the Set installer property predefined custom action with sequence. You should add it after “Install Execution Stage” >> “Finish Execution” stage. You can disable the Uninstall option and Maintenance option from the Execution Stage Condition.

You can edit its event options like that:
Property: field: REBOOT
Argument: field: Force

I've attached a .zip archive which contains a sample that implements your scenario.

If you have other questions, please let us know.

Best regards,
Dan
Attachments
RebootOnlyOnInstallSample.zip
(2.43 KiB) Downloaded 404 times
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
shetty_rohan
Posts: 363
Joined: Fri Dec 07, 2012 5:28 am
Location: Bangalore, India
Contact: Website

Re: Change in the reboot behaviour

Thank you Dan
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: Change in the reboot behaviour

You're welcome Rohan,

If you have other questions, please let us know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”