WiX:避免显示正在使用的文件对话框,只在安装结束时提示重新启动 [英] WiX: Avoid showing files-in-use dialog and just prompt for reboot at end of install

查看:24
本文介绍了WiX:避免显示正在使用的文件对话框,只在安装结束时提示重新启动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 WiX 3.6 中使用 来强制卸载以前的版本安装较新版本时我的应用程序.我的应用程序将一个扩展 DLL 文件安装到 Windows 资源管理器中,因此卸载正在使用的文件列表资源管理器并默认关闭列出的应用程序.这确实会在我的 shell 消失时杀死 Windows 资源管理器(这对用户来说有些刺耳),但是我仍然收到一个错误,提示并非所有应用程序都可以关闭,并指出需要重新启动.我的偏好是避免这种颠簸并跳过正在使用的文件"对话框,只在最后通知用户所需的重新启动.有没有办法告诉 WiX 跳过正在使用的文件"对话框?

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆