[wix-users] Revisiting DIFxAPP major upgrades with required reboot, any solutions?

Jürgen Schäpker Juergen.Schaepker at giepa.de
Fri Mar 4 02:29:17 PST 2016


Hi,

DiFX upgrades have been an issue in the past

https://sourceforge.net/p/wix/mailman/message/24376093/

http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/DIFxApp-and-upgrades-td5786223.html

We are trying to install/upgrade a FileSystem driver. Uninstalling this (old) driver requires a reboot, so upgrading it will require a reboot as well before install of the new files can start.

I have set the package to remove the old version first and force a reboot after uninstall.

      <RemoveExistingProducts Before="InstallInitialize" />
      <ScheduleReboot After="InstallFinalize">
         <![CDATA[REMOVE="ALL"]]>
      </ScheduleReboot>

The upgrade log shows this at the end of the uninstall phase for the old version:

"DIFXAPP: WARNING: The uninstall phase of this upgrade required a reboot. This may result in errors during the subsequent install phase. If such errors do occur, please reboot your system and run the upgrade again."

The upgrade continues anyway with the install phase for the new version which of course then fails installing the new driver because the old driver will only be removed on the reboot.

Is there a better solution for this scenario than just disallowing an upgrade (and showing a message "Uninstall old version first")? 

Is there a possibility to schedule the install phase of the upgrade to after the reboot? (I mean inside the MSI, not with Burn).


Best regards,
Jürgen Schäpker



More information about the wix-users mailing list