如何使用 wix bootstrapper 修改 msi 的已安装功能? [英] How to modify the installed features of msi with wix bootstrapper?

查看:23
本文介绍了如何使用 wix bootstrapper 修改 msi 的已安装功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在 wix bootstrapper 程序中调用 msi.它在安装时工作正常.所选功能安装正确.但安装后我试图修改已安装的功能.在控制面板中有更改按钮.但是当我点击它时,它会显示一个带有修复、卸载、取消按钮的对话框.没有用于修改安装程序功能的修改按钮.

I am trying to call a msi inside wix bootstrapper program.It is working properly at the time of installation.And selected features are installed properly.But after installation i am trying to modify the installed features.In the control panel there is change button.But when i click it then it is showing a dialog with Repair, uninstall, cancel buttons.There is no modify button for modifying the features of installer.

如果有,请说明解决方案.

Please specify the solution if any.

Bootstrappertheme.wxl 中的代码是

code inside Bootstrappertheme.wxl is

  <!-- Modify dialog -->
  <String Id="ModifyHeader">Modify Setup</String>
  <String Id="ModifyNotice">[WixBundleName] is already installed on this machine. If it's not working correctly, you may repair it. You may also uninstall it.</String>
  <String Id="ModifyRepairButton">&amp;Repair</String>
  <String Id="ModifyUninstallButton">&amp;Uninstall</String>
  <String Id="ModifyCloseButton">&amp;Cancel</String>

推荐答案

wix 标准引导程序应用程序当前不支持 msi 功能选择.目前,获得它的唯一方法是创建自定义引导程序应用程序.人们已经在 WiX 邮件列表 上询问了这个问题多个 次.Rob Mensching 是项目负责人,Bob Arnson 目前负责管理 3.x 分支.

The wix standard bootsrapper application does not currently support msi feature selection. Currently, the only way to get it is to create a custom bootstrapper application. People have asked about this on the WiX mailing list multiple times. Rob Mensching is the project leader, and Bob Arnson currently manages the 3.x branch.

本指南:使用 WiX 编写您自己的基于 .Net 的安装程序 是我所知道的在 WPF 中构建安装程序的最佳资源.实际的 WiX 源代码 也很有帮助.不过,这是一项非常艰巨的任务.

This guide: Writing Your Own .Net-based Installer with WiX is the best resource I know about for building one in WPF. The actual WiX source code is very helpful as well. It's a very big task though.

我没有与您分享的示例项目,但我上面提到的博客文章确实有一节处理当前和未来状态"描述了如何执行此操作.我认为这真的是一个很棒的资源.

I don't have a sample project to share with you, but the blog post I mentioned above does have a section "HANDLING CURRENT & FUTURE STATE" which describes how to do this. I think it really is a terrific resource.

另外,请参阅此问题:自定义 WiX Burn 引导程序用户界面?

这篇关于如何使用 wix bootstrapper 修改 msi 的已安装功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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