Is it possible to prompt for restarting the machine after installation using WiX?
Asked
Active
Viewed 8,911 times
3 Answers
19
<?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 got it.
![](../../users/profiles/63550.webp)
Peter Mortensen
- 28,342
- 21
- 95
- 123
![](../../users/profiles/39278.webp)
abmv
- 6,716
- 16
- 59
- 99
4
Yes. See the documentation for the REBOOT
property in Windows Installer.
i.e.:
<Property Id="REBOOT"><![CDATA[Force]]></Property>
![](../../users/profiles/592.webp)
saschabeaumont
- 21,383
- 4
- 60
- 84
3
Use the REBOOT property of WiX in the Product.wxs file of your setup to get a restart prompt. The syntax is:
<Property Id="REBOOT" Value="Force"></Property>
![](../../users/profiles/63550.webp)
Peter Mortensen
- 28,342
- 21
- 95
- 123
![](../../users/profiles/3036013.webp)
User
- 331
- 1
- 7
- 19