Can I request a restart of the machine after installation using WiX?

Can I request a restart of the machine after installation using WiX?

+16
source share
3 answers
<?xml version='1.0' encoding='windows-1252'?> <Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'> <Product Name = 'Sample App' Id = 'PRODUCT-GUID-HERE' UpgradeCode = 'UPGRADE-GUID-HERE' Language = '1033' Version = 'YOUR-APP-VERSION-HERE' Manufacturer = 'YOU!'> <InstallExecuteSequence> <ScheduleReboot After="InstallFinalize"/> </InstallExecuteSequence> </Product> </Wix> 

I think I get it.

+16
source

Yes. See the documentation for the REBOOT property in Windows Installer.

i.e:.

 <Property Id="REBOOT"><![CDATA[Force]]></Property> 
+4
source

Use the REBOOT property for WiX in the Product.wxs file of your installation to receive a reboot prompt. Syntax:

 <Property Id="REBOOT" Value="Force"></Property> 
+3
source

Source: https://habr.com/ru/post/1387563/


All Articles