【问题标题】:uninstall custom actions卸载自定义操作
【发布时间】:2011-08-10 08:12:49
【问题描述】:

我的 C# 自定义操作应该在哪个自定义操作之后执行?我应该使用什么条件才能使我的自定义操作仅在卸载时运行?

【问题讨论】:

    标签: wix windows-installer installation uninstallation custom-action


    【解决方案1】:

    我的 C# 应该在哪个自定义操作之后 执行自定义操作?

    这取决于他们做什么。

    我应该使用什么条件,所以我的 自定义操作只能在 卸载?

    REMOVE = "ALL"
    

    【讨论】:

      【解决方案2】:

      您需要在自定义操作调用中提供关于何时调用它们的条件。

      例子:

      <Custom Action="UpdateConfig" After="InstallFinalize">INSTALL_APPLICATION = "1"</Custom>
      

      在这里,您可以看到自定义操作 UpdateConfig 将在安装完所有内容后调用,并且如果在安装时选择了应用程序作为功能。

      【讨论】:

        猜你喜欢
        • 2011-03-02
        • 1970-01-01
        • 2011-11-21
        • 1970-01-01
        • 2017-11-29
        • 2019-04-19
        • 2013-02-14
        • 2013-01-06
        • 2013-03-08
        相关资源
        最近更新 更多