views:

112

answers:

2

Is it possible to prompt for restart machine after installation using WiX?

+3  A: 
<?xml version='1.0' encoding='windows-1252'?>
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'&gt;

<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>

think I got it.

abmv
A: 

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

i.e.:

<Property Id="REBOOT"><![CDATA[Force]]></Property>
sascha

related questions