Wix-卸载其他产品 [英] Wix - uninstall different product

查看:86
本文介绍了Wix-卸载其他产品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们的主要安装程序正在调用另一个产品(产品B)安装程序
这将在添加删除程序"窗口中创建两个条目.
当我卸载主要产品时,产品B并未从计算机中移除.
卸载主产品后,有什么方法可以卸载产品B?

Our main installer is calling another product (product B) installer
This creates two entries in the ""add remove programs" window.
When I uninstall the main product product B is not removed from machine.
Is there a way that I can uninstall product B when the main product is uninstalled?

推荐答案

您可以尝试使用自定义操作" :

  • 应在InstallExecuteSequence中的InstallFinalize之后计划它
  • 应使用以下条件:

  • it should be scheduled after InstallFinalize in InstallExecuteSequence
  • it should use this condition:

删除=全部"

使用 ExeCommand 属性指定msiexec.exe卸载命令行(您将使用实际的ProductCode):

use ExeCommand attribute to specify the msiexec.exe uninstall command line (you will use the actual ProductCode):

msiexec.exe/x< product_code_B> /qb

msiexec.exe /x <product_code_B> /qb

Return 属性设置为 asyncNoWait ,以便产品B卸载在不同的进程中运行

set Return attribute to asyncNoWait so product B uninstall runs in a different process

这篇关于Wix-卸载其他产品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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