[wix-users] RebootPending + FilesInUse

Jacques Eloff repstosd at gmail.com
Tue Aug 6 10:43:07 PDT 2019


Hi

I'm testing a managed BA and looking at its behavior around reboots, etc..
In one instance, a dummy MSI returned 3010. However launching the bundle a
second time reports RebootPending=0, but after calling Engine.Apply I'm
getting ERROR_FAIL_NOACTION_REBOOT, which indicates there is a pending
reboot.

Do I need to perform additional checks? I looked
at HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager and
there is an entry for PendingFileRenameOperations (seems to be coming from
Defender). I know things like renaming a machine can cause pending reboots
too when changing between domains/workgroup. Do I need to query that? What
about SCCM, CBS, WU, MU?

Related to this, I was trying to test FilesInUse behavior. Is there a good
way to force this result for testing purposes. I created an MSI that
installed a simple console app. The app was running and I had my MSI
replace the app with a newer version, but that just generated a 3010 exit
code.

Thanks,
Jacques


More information about the wix-users mailing list