我有多个版本的项目,我正在为其制作 Visual Studio 安装项目(安装程序)。
对于每个版本,都有一个单独的许可协议,该协议应显示在默认的“许可协议”窗口中。
我想要做的是将许可协议窗口的LicenseFile
指向客户端FS上某处的文件。
但许可证文件本身应根据条件编译符号(EDITION_FREE、EDITION_GOLD 等)或仅根据配置名称有条件地包含到安装包中。
不确定如何执行此操作以及文件的 Condition
属性可以使用哪些条件?
谢谢,
德米特里。
I have a number of editions of the project for which I am making a Visual Studio setup project (installer).
For each edition there is a separate license agreement that should be shown in the default License Agreement window.
What I want to do is to point the LicenseFile
of the License Agreement window to a file somewhere on the client FS.
But the license file itself should be conditionally included into the setup package based on either conditional compilation symbol (EDITION_FREE, EDITION_GOLD etc) or just a name of the Configuration.
Not sure how I would do that and what conditions are available for the Condition
property for files?
Thanks,
Dmitriy.
发布评论
评论(1)
您可以创建具有不同扩展名的同一文件的不同版本。假设您的许可证文件是 License.txt,因此您需要再创建几个许可证文件,每个配置一个,并为它们指定以下名称:
License.free.txt
License.gold.txt 等
然后您需要创建 使用与文件后缀(免费、黄金)相同的名称构建配置并使用 类似后构建脚本。请查看这个问题< /a> 也是。
You can create separate versions of the same file with different extensions. Lets assume that your license file is License.txt, so you will need to create several ones more, one per each configuration and give them following names:
License.free.txt
License.gold.txt etc
Then you need to create build configurations with the same name as file suffix (free, gold) and use this-like post build script. Please look at this question too.