简体   繁体   English

我们是否“必须”使用MsiExec安装Wix补丁?

[英]Do we “have” to use MsiExec to install a Wix patch?

We normally install Wix patches (xxx.msp) by double-clicking them. 我们通常通过双击安装Wix修补程序(xxx.msp)。 But I see at various places over the internet that we should use the MsiExec utility. 但是我在互联网上的各个地方看到我们应该使用MsiExec实用程序。 For eg msiexec /update patch.msp REINSTALL=ALL 对于例如msiexec /update patch.msp REINSTALL=ALL

Is there any downside in not using the MsiExec utility? 不使用MsiExec实用程序有什么弊端吗?

No, there's no downside. 不,没有缺点。 Effectively, double-clicking runs msiexec /p patch.msp . 有效地,双击运行msiexec /p patch.msp

If your patch updates only the versioned files, EXE and DLL, and work correctly without adding REINSTALL=ALL , then it's great! 如果您的补丁程序仅更新版本化的文件EXE和DLL,并且在不添加REINSTALL=ALL情况下正常运行,那就太好了!

The point of using msiexec explicitly is to add REINSTALL=ALL property. 显式使用msiexec是添加REINSTALL=ALL属性。 It make the installer to re-install all the files. 它使安装程序重新安装所有文件。 This is usually added to fix the problems where some files do not get updated when the patch is installed directly by double-clicking. 通常添加此修补程序是为了解决通过双击直接安装修补程序时某些文件无法更新的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM