WixUI_InstallDir 和 ARPNOREPAIR/ARPNOMODIFY 属性 [英] WixUI_InstallDir and ARPNOREPAIR / ARPNOMODIFY properties

查看:32
本文介绍了WixUI_InstallDir 和 ARPNOREPAIR/ARPNOMODIFY 属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从添加或删除程序中删除修复/修改按钮.

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

我还想使用 WixUI_InstallDir 对话框集.

I would also like to use WixUI_InstallDir Dialog Set.

这是我的代码:

<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" />

但这会导致

error LGHT0091 : Duplicate symbol 'Property:ARPNOMODIFY' found

我知道 WixUI_InstallDir 定义了这些属性,我看到的唯一决定是定义我自己的 UI,除了这些属性之外,它类似于 WixUI_InstallDir.但这是唯一的方法吗?我可以以某种方式覆盖这些属性吗?

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.

Yes, use setproperty.

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

这篇关于WixUI_InstallDir 和 ARPNOREPAIR/ARPNOMODIFY 属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆