使用 msiexec 卸载特定功能 [英] Uninstalling a particular feature using msiexec

查看:37
本文介绍了使用 msiexec 卸载特定功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了一个测试应用程序,它有两个功能(FirstFeature 和 SecondFeature).我只想从应用程序中删除一项功能 (SecondFeature).我尝试在命令行中使用 REMOVE 属性.这是用于删除 SecondFeature 的命令.

I installed an test application which has two features (FirstFeature & SecondFeature). I want to remove only one feature (SecondFeature) from the application. I tried using REMOVE property in command line. Here is the command used to remove SecondFeature.

msiexec /x RemoveFeatures.msi REMOVE="SecondFeature" /L*V log.LOG

但它正在卸载完整的应用程序.日志文件显示默认添加 REMOVE=ALL.这是日志文件的详细信息.

But it is uninstalling the complete application. Log file shows that REMOVE=ALL is added by default. Here is the log file details.

MSI (s) (24:B4) [17:39:05:231]:命令行:REMOVE=SecondFeature REMOVE=ALL

MSI (s) (24:B4) [17:39:05:231]: Command Line: REMOVE=SecondFeature REMOVE=ALL

MSI (s) (24:B4) [17:39:05:231]:属性更改:添加移除属性.它的值为SecondFeature".

MSI (s) (24:B4) [17:39:05:231]: PROPERTY CHANGE: Adding REMOVE property. Its value is 'SecondFeature'.

MSI (s) (24:B4) [17:39:05:231]:属性更改:修改 REMOVE 属性.它的当前值为SecondFeature".它的新值:'ALL'.

MSI (s) (24:B4) [17:39:05:231]: PROPERTY CHANGE: Modifying REMOVE property. Its current value is 'SecondFeature'. Its new value: 'ALL'.

表示在卸载过程中 REMOVE 属性值被覆盖.我是否需要设置任何其他属性来删除特定功能?

It indicates REMOVE property value is overridden during uninstall process. Do I need to set any other property to remove a specific feature ?

感谢任何帮助.提前致谢!!!

Any help is appreciated. Thanks in advance !!!

推荐答案

正如您所指出的,/x 用于卸载.完整(全部)卸载.

As you noted, /x is for uninstall. A complete (ALL) uninstall.

尽管您想要进行删除功能的安装可能违反直觉.

Although it may be counter intuitive you want to do an install that removes a feature.

msiexec /i RemoveFeatures.msi REMOVE="SecondFeature" /L*V log.LOG

您可能还希望添加/qb 或/qn 以使其非交互式/静音.

You may also wish to add /qb or /qn to make it non-interactive / silent.

这篇关于使用 msiexec 卸载特定功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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