问题描述
我正在尝试修复已发布的基于 Windows Installer 的设置.该修复是针对卸载软件包时发生的错误.为此,我想提供一个在卸载之前应用的 .mst 转换文件.产品安装后是否可以使用转换?或者可以在卸载开始之前将转换应用于已安装的 .msi 文件?我使用的命令行是这样的:
I'm trying to fix a Windows Installer based setup that is already released. The fix is for an error that occurs when uninstalling the package. For this I'd like to provide a .mst transform file that is applied before uninstalling. Is it possible to use a transform after the product was installed? Or can the transform be applied to an already installed .msi file before the uninstall is started? The command line I used was like this:
msiexec.exe /x {Product-Code} TRANSFORMS={Path-To}\bugfix.mst
推荐答案
转换仅在首次安装时应用,或作为补丁的一部分在内部应用.要解决此类问题,您应该考虑应用次要升级(尽管如果大小是主要问题,您应该能够将次要升级打包为补丁).确保将 v
作为 REINSTALLMODE
属性的一部分传递,以便新包替换旧包;通常 vomus
是该属性的一个很好的价值.
Transforms are only applied at first-install, or internally as part of a patch. To fix problems like this, you should consider applying a minor upgrade (although if size is a major concern, you should be able to package the minor upgrade as a patch). Be sure to pass v
as part of the REINSTALLMODE
property so that the new package replaces the old one; generally vomus
is a good value for that property.
这篇关于如何在卸载时应用 Msi 转换?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!