How can I schedule a mid-way reboot through the wix burn chain?

I currently have a chain that checks and sets the following prerequisites if they are missing:

  • Windows Installer 4.5
  • .net framework 4
  • Sql Server Express 2008 R2

Unfortunately, the installer must restart the computer after installation # 1, otherwise the installation of the Sql server will fail. If the user is prompted to restart the computer, this will be turned off and the installer will simply continue with C # 2. How can I restart the machine (if # 1 was installed) and then automatically continue the installation?

thank

+3
source share
1 answer

, , , . forceReboot ExitCode WixInstaller ExePackage.

<ExePackage Id="WinXp_x86"
              Cache="no"
              Compressed="no"
              PerMachine="yes"
              Permanent="yes"
              Vital="yes"
              InstallCommand="/norestart /passive"
              SourceFile="WindowsXP-KB942288-v3-x86.exe"
              DownloadUrl="http://download.microsoft.com/download/2/6/1/261fca42-22c0-4f91-9451-0e0f2e08356d/WindowsXP-KB942288-v3-x86.exe"
              DetectCondition="WINXP_X86_NEEDS_INSTALLER" >
    <ExitCode Behavior="forceReboot" />
</ExePackage>

, , "". , RC0 (3.6.2803.0), ​​ (3.6.2830.0). ...

+6

All Articles