【问题标题】:How to set DisableModify attribute in Wix bundle during execution of bootstrapper如何在执行引导程序期间在 Wix 包中设置 DisableModify 属性
【发布时间】:2018-12-06 06:30:36
【问题描述】:

我正在开发一个产品引导程序。我需要在运行时动态更改 DisableModify 属性的值。我没有在网上看到任何适当的文档或答案。我尝试过声明变量并使用它,但没有运气。我已经粘贴了 wxs 文件,其中 DisableModify 属性设置为使用变量值。但是我在运行candle.exe 时看到编译错误。有人可以帮忙吗?

错误:

E:\DVD\Bundle.wxs(6):错误 CNDL0021:Bundle/@DisableModify 属性的值“[disablemodify]”不是合法选项之一:“按钮”、“是”或“不'。 E:\DVD\Bundle.wxs(7):错误 CNDL0004:WixVariable 元素包含意外的属性“类型”。

WXS sn-p:

Bundle DisableModify="[disablemodify]" Manufacturer="ABC" Name="ABC Product" UpgradeCode="{xxx-xxx-xxx}" Version="12.0000.00.00"

变量名称="disableModify" Type="YesNoButtonType" Value="[disablemodify]"

【问题讨论】:

    标签: windows-installer bootstrapper wix3.8


    【解决方案1】:

    Burn 不支持在安装时设置该值,仅在构建时设置。

    【讨论】:

    • 感谢您的回答
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-05-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多