我敢肯定这很容易,但我遇到了一些困难.我有一个自定义操作,可以在安装时执行不同的(非 msi)安装程序.不幸的是,我注意到它也在卸载时执行安装程序!
I'm sure this is fairly easy, but I've kind of had a hard time with it. I've got a custom action that executes a different (non-msi) installer on installation. Unfortunately, I've noticed that it also executes the installer on UNinstallation!
我已经查看了选项,但似乎无法找到如何阻止这种情况.如果有人能帮助我,我将不胜感激.
I've looked through the options but I cant' seem to find out how to stop this. If anybody could help me I would be incredibly grateful.
另外,如何设置自定义操作仅在卸载期间关闭?任何帮助都非常感谢伙计们!
Also, how do I set a custom action to go off only during UNinstall? Any help is greatly appreciated guys!
推荐答案为操作添加条件,使其仅在安装期间触发,而不在卸载期间触发.
Add a condition on the action so it's only triggered during installation, not uninstallation.
操作仅在安装期间运行
NOT Installed AND NOT PATCH操作在安装和修复期间运行
Action runs during Install and repair
NOT REMOVE仅在初始安装时运行:
NOT Installed在初始安装或选择修复时运行.
Run on initial install or when repair is selected.
NOT Installed OR MaintenanceMode="Modify"要仅在卸载期间运行操作,请使用以下条件:
To only run an action during uninstall use the following condition:
REMOVE~="ALL"仅在升级期间运行操作:
To only run an action during upgrade:
Installed AND NOT REMOVE更多推荐
如何仅在安装(而不是卸载)中执行自定义操作
发布评论