Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 300
abmv Avatar asked Dec 15 '09 14:12

abmv


People also ask

What is WiX Installer used for?

Windows Installer XML Toolset (WiX, pronounced "wicks"), is a free software toolset that builds Windows Installer packages from XML. It consists of a command-line environment that developers may integrate into their build processes to build MSI and MSM packages.


2 Answers

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

i.e.:

<Property Id="REBOOT"><![CDATA[Force]]></Property>
like image 35
saschabeaumont Avatar answered Sep 23 '22 15:09

saschabeaumont


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

like image 161
abmv Avatar answered Sep 26 '22 15:09

abmv