Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/clojure/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
WiX工具集操作序列_Wix - Fatal编程技术网

WiX工具集操作序列

WiX工具集操作序列,wix,Wix,项目团队已使main.exe文件可用于管理其Windows服务。.bat中的调用参数如下所示: main.exe (un)install ProjectSolution | ```+ MainProject | ```SetupMergeModule | | | SetupMergeModule.wxs | SetupMergeModuleCustom.wxs ```[Others] | `

项目团队已使main.exe文件可用于管理其Windows服务。.bat中的调用参数如下所示:

main.exe (un)install
ProjectSolution
    |
    ```+ MainProject
    |
    ```SetupMergeModule
    |     |
    |     SetupMergeModule.wxs
    |     SetupMergeModuleCustom.wxs
    ```[Others]
    |
    ```MSISetup
          |
           ```Code
          |    |
          |    Feature.wxs
          |    Product.wxs
          ``` [Others]
我是WiX工具集的新手,我设法使用IsWiX扩展名将必要的文件添加到feature.wxs中。现在我想改变顺序如下:

main.exe (un)install
ProjectSolution
    |
    ```+ MainProject
    |
    ```SetupMergeModule
    |     |
    |     SetupMergeModule.wxs
    |     SetupMergeModuleCustom.wxs
    ```[Others]
    |
    ```MSISetup
          |
           ```Code
          |    |
          |    Feature.wxs
          |    Product.wxs
          ``` [Others]
  • 将文件安装到适当的位置
  • (或3.)首先调用
    main.exe卸载
    ,并确定其是否成功
  • (或2.)在控制面板中注册软件
  • 调用
    main.exe安装
    ,并确定其成功
  • 如果可能,我还希望在调用MSI卸载时添加命令
    main.exe uninstall

    我真的不想让WiX自己管理服务(un)安装。我应该如何改变XML中的序列?顺便说一下,我没有任何C#技能,但我知道我团队中的人可以

    仅供参考,WiX项目的结构如下:

    main.exe (un)install
    
    ProjectSolution
        |
        ```+ MainProject
        |
        ```SetupMergeModule
        |     |
        |     SetupMergeModule.wxs
        |     SetupMergeModuleCustom.wxs
        ```[Others]
        |
        ```MSISetup
              |
               ```Code
              |    |
              |    Feature.wxs
              |    Product.wxs
              ``` [Others]
    

    我使用的是最新的稳定版本3.8。

    使用安装服务。

    嗨,我的问题是,在安装过程中复制文件时,如何调用一系列指定命令。“我真的不希望WiX本身管理服务(un)安装”-实际上,这将是Windows Installer,因为这是标准功能。因此,自己动手操作超出了Windows Installer的预期用途。也许您不想使用Windows Installer。@TomBlodget,因为项目团队已经通过命令行
    main.exe安装
    main.exe卸载
    提供了它。我不想做额外的工作。我做了一些研究,并尝试了CustomAction,它成功了(由于VS问题,没有预期的效果,但这是一个进步)。复制标准Windows Installer功能是额外的工作,而且容易出错。我鼓励你学习它。