删除“更改” MaintenaceTypeDialog 中的按钮

发布于 2024-10-03 16:40:49 字数 143 浏览 0 评论 0原文

安装安装程序后,当用户再次单击安装程序以维护模式打开它时,我希望仅显示“修复”和“删除”选项,而不显示“更改”选项。

我可以使用 禁用“更改”按钮,但我想将其删除并且不想向用户显示它。

请建议这是否可行。

After installation of the setup, when the user again clicks on the setup to open it in the maintenance mode, I want that only the 'Repair' and 'Remove' options are shown and the 'Change' option is not shown.

I can disable the 'Change' button using but I want to remove it and don't want to display it to the user.

Please suggest if this is possible.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

生来就爱笑 2024-10-10 16:40:49

您可以将 Wix 对话框集 (.wxs) 包含在您的安装程序项目中(它们可以从 git 下载)。编辑 MaintenanceTypeDlg.wxs 文件并删除修复按钮和标签。

You can include the Wix dialog set (.wxs) in your installer project (they can be downloaded from git). Edit MaintenanceTypeDlg.wxs file and remove the repair button and label.

惯饮孤独 2024-10-10 16:40:49

查看以 ARPNO 前缀开头的 Windows Installer 属性:ARPNOMODIFY (这就是您所需要的),ARPNOREPAIRARPNOREMOVE。这些属性定义“添加/删除程序”控制台中选项的可用性。

希望这有帮助。

Take a look at the Windows Installer properties which start with ARPNO prefix: ARPNOMODIFY (this is what you need), ARPNOREPAIR and ARPNOREMOVE. These properties define the availability of option in Add/Remove Programs console.

Hope this helps.

回忆追雨的时光 2024-10-10 16:40:49

如果您使用 WixUI_Mode 而不是使用自定义 MaintenanceTypeDlg.wxs,那么您应该定义 < /strong> 在 YOUR_MAIN_UI.wxs 文件中。

If you are using WixUI_Mode and not using customized MaintenanceTypeDlg.wxs then you should define <Property Id="ARPNOMODIFY" Value="1" /> in YOUR_MAIN_UI.wxs file.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文