WiX: Avoid showing files-in-use dialog and just prompt for reboot at end of install
windows-installer, wix, wix3.6
Solution
<Property Id="MSIRESTARTMANAGERCONTROL" Value="Disable"/>
This works for me but I'm not trying to kill any system services.
Did you try "DisableShutdown" as well?
"Windows Installer uses the FilesInUse Dialog. This setting disables attempts by the Restart Manager to mitigate restarts when installing a Windows Installer package that has not been authored to use the Restart Manager. The installer still uses the Restart Manager to detect files in use by applications."
http://msdn.microsoft.com/en-us/library/aa370377%28v=vs.85%29.aspx
Problem
I am using <MajorUpgrade> in WiX 3.6 to force an uninstall of the previous version of my application when installing a newer version. My application installs an extension DLL file into Windows Explorer, so on uninstall the Files In Use lists Explorer and defaults to shutting down the listed application. This does kill Windows Explorer as my shell goes away (which is somewhat jarring for the user), however I still get an error saying that not all applications could be shutdown and states a reboot will be necessary. My preference is to avoid this thrash and skip the Files-In-Use dialog just inform the user of the required reboot at the end. Is there a way to tell WiX to skip the Files-In-Use dialog?