【问题标题】:Wix Bootstrapper automated versioning with Setup MSI使用 Setup MSI 的 Wix Bootstrapper 自动版本控制
【发布时间】:2016-11-10 14:23:06
【问题描述】:

我正在尝试通过 AssemblyInfo [assembly: AssemblyVersion("2.0.*")] 合并自动化版本。我已将Version="!(bind.FileVersion.FILEEXE)" 添加到生成MSI 文件的设置中的Product.wxs 中。根据我的阅读,MSI 在 Bootstrapper 项目的 Bundle.wxs 中没有可供我访问的版本属性。如何在 Bootstrapper 中设置版本以自动与我的应用程序版本同步?

【问题讨论】:

    标签: c# wix


    【解决方案1】:

    在您的引导程序的 <Bundle> 元素中使用属性 Version="!(bind.packageVersion.YourPackageName)"

    其中YourPackageName 是您希望从中使用属性的链中MsiPackage 的ID。

    您还可以通过这种方式绑定所有其他属性,包名称、制造商等。

    参考(靠近底部,包属性)http://wixtoolset.org/documentation/manual/v3/overview/light.html

    【讨论】:

    • 不幸的是,我已经尝试过了。在我的 Product.wxs 我有 Version="!(bind.FileVersion.EXE)" 其中 EXE 是文件的 ID。在我的 Bundle 中,我有 Version="!(bind.packageVersion.Setup)",其中 Setup 是 Product 项目编译的 MSI 的 ID。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-01-09
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多