WiX: Avoid displaying the Files in Use dialog box and simply invoke a reboot at the end of the installation.

I use <MajorUpgrade> in WiX 3.6 to force uninstall the previous version of my application when installing a newer version, My application installs the extension file DLL in Windows Explorer, so uninstall File Use List Explorer and disable the specified application by default. This kills Windows Explorer, as my shell leaves (which annoys the user somewhat), however I still get an error message saying that not all applications can be disconnected and states that a reboot is required. My preference is to avoid this trash and skip the Files In Use dialog box by simply telling the user to restart at the end. Is there a way to tell WiX to skip the Files In Use dialog?

+5
source share
3 answers

You can disable integration with Restart Manager by setting the property to MSIRESTARTMANAGERCONTROLvalue "Disabled"(from the MSI SDK ). You can also try to remove the dialog FilesInUse, but the static complaint of the Internal Consistency Evaluator (ICE) will complain. I hope that disabling Restart Manager will be enough so as not to try to pull resources from explorer.exe.

+6
source
 <Property Id="MSIRESTARTMANAGERCONTROL" Value="Disable"/>

This works for me, but I'm not trying to kill system services.

Have you also tried DisableShutdown?

" Windows FilesInUse. Restart Manager Windows, Restart Manager. - Restart Manager ."

http://msdn.microsoft.com/en-us/library/aa370377%28v=vs.85%29.aspx

-Robin

+6

, . . . . . . https://msdn.microsoft.com/en-us/library/aa369546(v=vs.85).aspx

InstallValidate, false. . . . REBOOT Windows Installer FORCE, .

My application has a small disk size. If my installation fails in this process, because the disk is full, this will be a big problem, I will find a way to do it myself.

+1
source

All Articles