Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prompt a Reboot message after installation WIX Bootstrapper

I have a WIX Project and a Bootstrapper of WIX. I am using Reboot property of WIX to prompt for reboot machine after setup complete its installation. But when i run my msi using Bootstrapper then it did not prompt a message for reboot machine. below is my code that i am using in Product.wxs file in WIX:-

 <Property Id="REBOOT" Value="Force"/>

Now i am using chain of msi in Bootstrapper project below:-

  <Chain>   

  <MsiPackage  SourceFile=".\Bonjour.msi" Compressed="yes" />
  <MsiPackage  SourceFile=".\Security_IDTools.msi" Compressed="yes" />
  <MsiPackage SourceFile ="$(var.BiodentifySetUp.TargetPath)" Compressed ="yes" DisplayInternalUI="yes" />

    </Chain>

But when my last msi run it did not prompt reboot message?

like image 656
User Avatar asked Dec 06 '25 02:12

User


2 Answers

The REBOOT property does not force a reboot, and in the context you're using it is a Windows Installer property not a WiX property. The REBOOT property tells Windows what behavior should occur when a reboot occurs. You need a ScheduleReboot action in your MSI file if you want a reboot at the end of an MSI install and want to ask for it, or a ForceReboot if you want to just do it, as Nimish says.

There is also the question of why you want to force a reboot in the first place. Windows will reboot if something happens that requires one - there's no need for you to assume that a reboot is required just because an install has finished.

like image 189
PhilDW Avatar answered Dec 10 '25 02:12

PhilDW


A Reboot may be necessary due to the stupid behavior of events and security in Windows 8 (and even in windows 7). That is the "easiest" way to make sure all of your services have been started correctly. I would expect that as already mentioned would be the best choice so that there is no abort of the bootstrapper in the middle.

like image 42
Grwon Avatar answered Dec 10 '25 01:12

Grwon



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!