-
Hi, We are currently in trouble because we have released an installer with a <InstallExecuteSequence>
...
<ForceReboot Before="StopServices" Condition="(NOT WIX_UPGRADE_DETECTED) AND (NOT BURNMSIUNINSTALL) AND (NOT AFTERREBOOT)" />
</InstallExecuteSequence> Users aren't facing this yet, but it will happen at the next version's release. The action is executed when the features of the currently installed bundle are uninstalled. How can the new version bundle suppress the From the
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
Maybe this (set REBOOT MSI property to Suppress or ReallySuppress): https://learn.microsoft.com/en-us/windows/win32/msi/reboot |
Beta Was this translation helpful? Give feedback.
-
@wmanning Thank you for your suggestion but I have tried to set REBOOT to
And the SO answer suggests to avoid that option. The alternative suggestion is avoiding the root cause. And in our case there is a Property that controls the <SetProperty Id="DO_REBOOT" Before="AppSearch" Value="1" Sequence="first" ... />
<InstallExecuteSequence>
...
<ForceReboot Before="StopServices" Condition="...AND (DO_REBOOT = 1)" />
</InstallExecuteSequence>
Do you know how I could set that Property to zero before the |
Beta Was this translation helpful? Give feedback.
I don't think there is an easy way.
Depending on how your original MSI was built it might be possible to create a minor upgrade MSI and then convert that to a patch (msp) to "repair" the existing MSI. I don't think a patch is considered an upgrade as the original MSI remains in place. So that might be a way to update the property. I have never did this though and could be wrong.