如何禁用 WiX 工具集上的修复和选项按钮

Gia*_*ini 4 wix burn

关于这个问题有很多问题,但都没有解释这两行到底应该放在哪里:

<Property Id="ARPNOREPAIR" Value="yes" Secure="yes" /> 
<Property Id="ARPNOMODIFY" Value="yes" Secure="yes" />
Run Code Online (Sandbox Code Playgroud)

尝试在线搜索文档本身,但没有运气

编辑

我尝试将它们放入我的标签中,但它仍然存在:

在此输入图像描述

Rog*_*art 10

我今天遇到了同样的问题,接受的答案没有隐藏“选项”按钮或禁用我的 WiX 标准 boostrapper 中的“修复”按钮。

要隐藏/禁用选项和修复按钮,请首先 WixStandardBootstrapperApplication添加BalExtension命名空间(Bundle.wxs 顶部):

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
     xmlns:bal="http://schemas.microsoft.com/wix/BalExtension">
Run Code Online (Sandbox Code Playgroud)

然后在BootstrapperApplicationRef元素中添加SuppressOptionsUISuppressRepair属性设置为yes

<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense">

    <bal:WixStandardBootstrapperApplication LicenseFile="YourLicense.rtf"
                                            LogoFile="YourLogo.png"
                                            SuppressOptionsUI="yes"
                                            SuppressRepair="yes" />

</BootstrapperApplicationRef>
Run Code Online (Sandbox Code Playgroud)