卸载时我们可以应用转换(.mst)吗?
我们在已经发布的MSI上发现了一些卸载问题,该问题在更高版本的升级期间创建问题。我需要修改一些自定义操作条件,以使其在MSI卸载时不会运行。为此,转换文件是通过更新条件生成的。但是,我不确定如何在卸载过程中通过此操作?用户可以从添加或删除程序触发卸载。
对于我们来说,次要升级不是选择,因为它需要发布新的MSI。
We found some uninstallation issue on already released msi which is creating issue during upgrade of higher version.I need to modify few custom action conditions so that it doesn't run while msi uninstallation. In order to this, transform file is generated with updated condition. However, I am not sure how to pass this during uninstallation? user can trigger uninstall from Add or Remove Programs.
Minor upgrades are not option for us as it requires release of new msi.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您与MST一起安装了Windows MSI数据库,则Windows文件夹中的本地缓存MSI是您原始MSI数据库的转换版本。
如果MST添加的自定义操作(如果没有条件集)始终运行(安装,修复和拆卸)。
如果仅在卸载上运行操作,请将其设置为条件:
remove =“ all”
或倒置not remove =“ ALL”
如果不应该在卸载。尝试将自定义操作放在表
installexecutesequence
instllvalidate 和installInitialize
或之后installfinalize
您无需卸载过程中的MST。
The locally cached MSI within the Windows folder is a transformed version of your original MSI database, if you installed it together with the MST.
Your custom actions added by MST, if they have no condition set, are always run (on install, repair and removal).
If you want to run your action only on uninstallation, set this as the condition:
REMOVE="ALL"
or invertedNOT REMOVE="ALL"
if it should NOT run on uninstallation.Try to place your custom action in the Table
InstallExecuteSequence
betweenInstllValidate
andInstallInitialize
or afterInstallFinalize
You don't need the MST during uninstallation.