简体   繁体   中英

WixUI_InstallDir and ARPNOREPAIR / ARPNOMODIFY properties

I would like to delete repair / modify buttons from Add or Remove Programs .

I would also like to use WixUI_InstallDir Dialog Set.

This is my code:

<UI>
    <UIRef Id="WixUI_InstallDir"/>
</UI>
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR"/>

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

But this causes

error LGHT0091 : Duplicate symbol 'Property:ARPNOMODIFY' found

I understand that WixUI_InstallDir defines these properties and the only decision I see is to define my own UI that is similar to WixUI_InstallDir except for these properties. But is this the only way? Can I overwrite these properties somehow?

是的,使用setproperty。

<SetProperty Id="ARPNOMODIFY" Value="1" After="InstallValidate" Sequence="execute"/>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM