How to disable Repair and option buttons on WiX toolset

Viewed 3234

Plenty of questions regarding this issue but none of them explain where exactly those two lines should be placed:

<Property Id="ARPNOREPAIR" Value="yes" Secure="yes" /> 
<Property Id="ARPNOMODIFY" Value="yes" Secure="yes" />

Tried searching online, on the documentation itself but no luck

EDIT

I tried putting them inside my tag but it's still there:

enter image description here

2 Answers

I ran into this same issue today and the accepted answer did not hide the Options button or disable the Repair button in my WiX standard boostrapper.

To hide/disable the Options and Repair buttons in a WixStandardBootstrapperApplication first add the BalExtension namespace (top of your Bundle.wxs):

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
     xmlns:bal="http://schemas.microsoft.com/wix/BalExtension">

Then in the BootstrapperApplicationRef element add the SuppressOptionsUI and SuppressRepair attributes setting both to yes.

<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense">

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

</BootstrapperApplicationRef>
Related