是否可以在基本 MSI 项目的构建时设置产品版本?
我有一个 InstallScript 项目,我正在考虑将其手动重新创建为基本 MSI 项目。对于InstallScript项目,我们通过以下机制在构建时获取产品版本:
- Ant执行所有编译、测试等工作,并在此过程中获取构建版本号。
- Ant 调用 IsCmdBld.exe,将构建版本作为环境变量传递。
- Installshield配置了一个“环境”类型的路径变量,它获取构建版本。
- 该路径变量在一般信息 -> 中指定。产品版本字段。
不幸的是,Basic MSI 项目似乎不允许在“产品版本”字段中使用路径变量。
这是否意味着每次使用 Basic MSI 项目构建之前都必须手动修改产品版本?或者是否有其他方法将版本传递给InstallShield?
I have an InstallScript project that I'm looking at manually recreating as a Basic MSI project. For the InstallScript project, we obtain the product version at build time through the following mechanism:
- Ant does all the compiling, testing, etc. and during this process obtains a build version number.
- Ant calls IsCmdBld.exe, passing the build version as an environment variable.
- Installshield has an "Environment"-type path variable configured, which picks up the build version.
- This path variable is specified in the General Information -> Product Version field.
Unfortunately, it looks like the Basic MSI project does not allow path variables in the Product Version field.
Does this mean the product version has to always be manually modified before each build with a Basic MSI project? Or is there a different way to pass the version to InstallShield?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以对Basic MSI和InstallScript MSI使用以下命令:
You can use the following command for Basic MSI and InstallScript MSI:
另一种方式:
Another way: