WIX:如何动态设置msi输出文件的名称 [英] WIX: Howto set the name of the msi output file dynamically

查看:79
本文介绍了WIX:如何动态设置msi输出文件的名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在wix项目生成的msi文件的文件名中包含一些动态部分.这个动态部分应该由变量控制,这些变量是我的wix项目的一部分,并且应这样声明:

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 and are declared like this:

<?define ProductVersion="7.1.0.1" ?>

有人知道将wix变量的值发送给链接器以将其用作输出文件名的一部分的方法吗?

Does anybody know about a way of sending that value of that wix variable to the linker to use it as a part of the output filename?

顺便说一句:我正在使用Wix3

By the way: I'm using Wix3

推荐答案

由于它只是文件名,为什么不使用构建后操作来重命名构建脚本中的文件(假设使用MSBuild)?

Since it's just a file name, why not have a post-build action that renames the file in your build script (assuming MSBuild)?

这篇关于WIX:如何动态设置msi输出文件的名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆