WIX: Howto set the name of the msi output file dynamically

后端 未结 8 655
时光取名叫无心
时光取名叫无心 2021-01-31 16:44

I want to include some dynamic part in the filename of the msi file my wix projects produce. This dynamic part should be controlled by variables which are part of my wix project

8条回答
  •  我在风中等你
    2021-01-31 17:44

    The msi file name is not determined by your wix files, but by the light.exe -out switch. You can use the same value for -out and inside your wix files if you do the following in your build script, assuming it is a batch script:

    • set an environment variable with set productversion=1.2.3
    • Pass -out foo%productversion%.msi to the light.exe linker
    • use the same environment variable in your wix files as $(env.productversion)

提交回复
热议问题