Sanky
Sanky

Reputation: 193

Unable to prompt for reboot after installation with Wix Bootstrapper project

I have a Wix Project and also a Bootstrapper. I want to prompt the user to restart after the last MSI is run. Here is the Bootstrapper-

<Chain>
<MsiPackage  SourceFile=".\Some.msi" Compressed="yes" />
<MsiPackage Id="MyMsi"
              Compressed="yes"
              Cache="no"
              DisplayInternalUI="yes"
              SourceFile="$(var.MyInstaller.TargetPath)"
              Visible="no"/>
</Chain>

In my MSI, I have - <Property Id="REBOOT" Value="Force"/> and

<InstallExecuteSequence>
    <ScheduleReboot After='InstallFinalize'>NOT REMOVE</ScheduleReboot>
</InstallExecuteSequence>

But the prompt doesn't show up. In the log I can find these lines-

Property(S): MsiRebootActionScheduled = 1

MSI (s) (40:64) [23:52:23:990]: Value of RebootAction property is 1

MSI (s) (40:64) [23:52:23:990]: Windows Installer requires a system restart. Product Name: XXX x64 Installer v3.0.0.0. Product Version: 3.0.0.0. Product Language: 1033. Manufacturer: XXX. Type of System Restart: 2. Reason for Restart: 2.

MSI (s) (40:64) [23:52:23:990]: Product: XXX x64 Installer v3.0.0.0. Restart required. The installation or update for the product required a restart for all changes to take effect. The restart was deferred to a later time.

Any suggestion on how to make this work?

Upvotes: 0

Views: 558

Answers (1)

Doc
Doc

Reputation: 708

I would remove the reboot code from your MSIs and just add the one into the bootstrapper. Adding reboot into bootstrapper was answered on this previous question.

Upvotes: 0

Related Questions