【问题标题】:Custom Action with wix-maven-plugin使用 wix-maven-plugin 自定义操作
【发布时间】:2016-09-08 08:37:11
【问题描述】:

我想创建一个 Windows Installer (MSI) 来安装我的 java 应用程序。我打算将 WiX (http://wixtoolset.org/) 与 maven 插件 wix-maven-plugin (http://wix-maven.github.io/wix-maven-plugin/) 一起使用。

我需要在安装过程中运行一个批处理脚本,据我所知,唯一的方法是创建一个自定义操作。不幸的是,maven 插件的网站上有一段文字似乎说这不起作用:

Wix custom actions are not included as a lifecycle for building in this plugin.

有人知道这是否意味着如果我使用 wix-maven-plugin 创建我的 msi 包,我就不能使用自定义操作吗?

【问题讨论】:

    标签: wix


    【解决方案1】:

    是的,您可以包含并调用自定义操作。

    意图

    Wix 自定义操作不包含在此插件中构建的生命周期中。

    这个 maven 插件是否仅用于构建 msi/msp/wixlib/bundle(生命周期),并且对于任何自定义操作二进制文件,您都需要单独构建,例如 nar-maven-pluginnpanday-maven-plugin

    我会尝试在文档中更清楚地说明这一点。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多