[wix-users] Problem Updating

Jon Earle earlej at hotmail.com
Wed Feb 28 10:24:41 PST 2018

Okay.  I tried that - commented out MSIRESTARTMANAGERCONTROL and rebuilt the package.

Same result:

MSI (s) (D8:FC) [10:51:04:805]: Executing op: ActionStart(Name=MsiUninstallDrivers,,)
MSI (s) (D8:FC) [10:51:04:806]: Executing op: CustomActionSchedule(Action=MsiUninstallDrivers,ActionType=3073,Source=BinaryData,Target=UninstallDriverPackages,CustomActionData=2.12{21CC203C-C5CC-49BF-A858-2D44A4D79EDF}22Client 7.2.0MyCompany)
MSI (s) (D8:70) [10:51:04:809]: Invoking remote custom action. DLL: C:\Windows\Installer\MSIC64D.tmp, Entrypoint: UninstallDriverPackages
MSI (s) (D8:08) [10:51:04:809]: Generating random cookie.
MSI (s) (D8:08) [10:51:04:811]: Created Custom Action Server with PID 2812 (0xAFC).
MSI (s) (D8:E0) [10:51:04:841]: Running as a service.
MSI (s) (D8:E0) [10:51:04:845]: Hello, I'm your 64bit Elevated Non-remapped custom action server.
DIFXAPP: UninstallDriverPackages()
DIFXAPP: 'CustomActionData' property 'DIFxApp Version' is 2.1.
DIFXAPP: 'CustomActionData' property 'UI Level' is 2.
DIFXAPP: 'CustomActionData' property 'componentId' is {21CC203C-C5CC-49BF-A858-2D44A4D79EDF}.
DIFXAPP: 'CustomActionData' property 'flags' is 0x16.
DIFXAPP: 'CustomActionData' property 'ProductName' is Client 7.2.0.
DIFXAPP: 'CustomActionData' property 'ManufacturerName' is MyCompany.
DIFXAPP: INFO: user SID of user performing the install is 'S-1-5-21-1676911962-2615582648-1472693833-500'.
DIFXAPP: INFO: opening HKEY_USERS\S-1-5-21-1676911962-2615582648-1472693833-500\Software\Microsoft\Windows\CurrentVersion\DIFxApp\Components\{21CC203C-C5CC-49BF-A858-2D44A4D79EDF} (User's SID: 'S-1-5-21-1676911962-2615582648-1472693833-500') ...
DIFXAPP: INFO:   ENTER:  DriverPackageUninstallW
DIFXAPP: INFO:   Uninstalling driver package C:\Windows\System32\DriverStore\FileRepository\PCIDriver1.inf_amd64_bcc027672e79bdf2\PCIDriver1.inf...
DIFXAPP: INFO:   Successfully uninstalled 'C:\Windows\INF\oem3.inf'.
DIFXAPP: SUCCESS:Device with device instance ID 'PCI\VEN_CAFE&DEV_0008&SUBSYS_0001CAFE&REV_01\4&25438C51&0&0008' reinstalled.
DIFXAPP: INFO:   Successfully uninstalled 1 devices for C:\Windows\System32\DriverStore\FileRepository\PCIDriver1.inf_amd64_bcc027672e79bdf2\PCIDriver1.inf.
DIFXAPP: INFO:   Successfully deleted properties for driver store entry 'C:\Windows\System32\DriverStore\FileRepository\PCIDriver1.inf_amd64_bcc027672e79bdf2\PCIDriver1.inf'.
DIFXAPP: SUCCESS:Uninstall completed.
DIFXAPP: INFO:   RETURN: DriverPackageUninstallW  (0x0)
DIFXAPP: INFO: driver store 'C:\Windows\System32\DriverStore\FileRepository\PCIDriver1.inf_amd64_bcc027672e79bdf2\PCIDriver1.inf' uninstalled.
DIFXAPP: INFO: deleted add remove programs key for 'C:\Windows\System32\DriverStore\FileRepository\PCIDriver1.inf_amd64_bcc027672e79bdf2\PCIDriver1.inf'.
DIFXAPP: A reboot is needed to uninstall the driver package '{21CC203C-C5CC-49BF-A858-2D44A4D79EDF}'.
Action start 10:51:06: ScheduleReboot.
Action ended 10:51:06: ScheduleReboot. Return value 1.

From: Nir Bar <nir.bar at panel-sw.com>
Sent: Wednesday, February 28, 2018 2:15 AM
To: WiX Toolset Users Mailing List
Cc: Jon Earle
Subject: Re: [wix-users] Problem Updating

Seems like you shot yourself in the foot setting MSIRESTARTMANAGERCONTROL to DisableShutdown.
The purpose of Restart Manager is to shutdown processes that are holding files in use so that system reboot will not be necessary. By setting it to DisableShutdown you prevent it from doing exactly that which ultimately may cause system reboot to be required.

Instead, set MSIRESTARTMANAGERCONTROL to 0 or do not set it at all.
Then, if you are aware of processes that hold files in use and are not part of your package, let Restart Manager control them by adding them with RestartResource elements.

Nir Bar, Independent WiX Expert. Creator of-
JetBA: WiX WPF Bootstrapper User Interface Framework
JetBA++: WiX Native Bootstrapper User Interface Framework

More information about the wix-users mailing list