【发布时间】:2015-07-08 11:16:36
【问题描述】:
如果应用程序已经安装,我正在尝试隐藏 WixStandardBootstrapperApplication 上的选项按钮。
我希望能够将变量传递给SuppressOptionsUI。但似乎 SuppressOptionsUI 的值 必须 是文字 yes 或 no。
这是我使用的代码。
<!-- Don't show options button if we have an existing install -->
<Variable Name="suppressOptions" Type="string" Value="no"/>
<util:DirectorySearch
After='PreviousInstallFolderSearch'
Condition='PreviousInstallFolder'
Path='[PreviousInstallFolder]'
Result="exists"
Variable="suppressOptions"/>
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.HyperlinkSidebarLicense">
<bal:WixStandardBootstrapperApplication
ShowVersion="yes"
LicenseUrl="http://static.my-site.com/EULA.html"
LogoFile="Installer-Banner.bmp"
LogoSideFile="Installer-FirstPage.bmp"
SuppressOptionsUI="[suppressOptions]"
/>
</BootstrapperApplicationRef>
所以我的问题是:是否有另一种方法可以配置 WixStandardBootstrapperApplication 以允许 SuppressOptionsUI 基于从注册表或目录搜索填充的变量进行配置?
注意我只使用 WixToolset。没有 VBA 或其他 MS 工具。
【问题讨论】: