Is it possible to prompt for restarting the machine after installation using WiX?
Asked Answered
H

3

20

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

Hummocky answered 15/12, 2009 at 14:13 Comment(0)
H
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.

Hummocky answered 15/12, 2009 at 15:21 Comment(0)
D
4

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

i.e.:

<Property Id="REBOOT"><![CDATA[Force]]></Property>
Djakarta answered 16/12, 2009 at 3:16 Comment(0)
C
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>
Connie answered 12/2, 2014 at 10:24 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.