WiX:避免显示正在使用的文件对话框,只在安装结束时提示重新启动 [英] WiX: Avoid showing files-in-use dialog and just prompt for reboot at end of install
问题描述
我在 WiX 3.6 中使用
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?
推荐答案
<Property Id="MSIRESTARTMANAGERCONTROL" Value="Disable"/>
这对我有用,但我不想杀死任何系统服务.
This works for me but I'm not trying to kill any system services.
您是否也尝试过DisableShutdown"?
Did you try "DisableShutdown" as well?
"Windows Installer 使用 FilesInUse 对话框.此设置禁用重新启动管理器在安装尚未授权使用重新启动管理器的 Windows 安装程序包时减轻重新启动的尝试.安装程序仍使用重新启动管理器来检测应用程序正在使用的文件."
http://msdn.microsoft.com/en-us/library/aa370377%28v=vs.85%29.aspx
这篇关于WiX:避免显示正在使用的文件对话框,只在安装结束时提示重新启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!