如何将WiX安装程序版本设置为当前内部版本? [英] How can I set the WiX installer version to the current build version?

查看:102
本文介绍了如何将WiX安装程序版本设置为当前内部版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写了一个应用程序及其WiX安装程序,并使用Subversion将其置于版本控制下。 WiX安装程序生成时,我希望其版本号为应用程序的当前生成版本。我该如何完成?我用c#编写了应用程序代码。

I wrote an application and its WiX installer and put it under version control using subversion. When the WiX installer builds I want its version number to be the current build version of the application. How do I accomplish this? I used c# to code the application.

N.B。我正在使用ccnet构建此项目

N.B. I am using ccnet to build this project

推荐答案

您可以使用 Product / @ Version =!( bind.FileVersion.FileId) (用 Id 替换 FileId 您想要获取版本号的文件),light.exe将使用 FileId 引用的文件的版本填充值。

You could use Product/@Version="!(bind.FileVersion.FileId)" (replace FileId with the Id of the file from which you'd like to get the version number) and light.exe will populate the value with the version of the file referenced by the FileId.

这篇关于如何将WiX安装程序版本设置为当前内部版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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