Wix:动态添加功能 [英] Wix: Dynamically Add Features

查看:108
本文介绍了Wix:动态添加功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在使用Wix为我们的软件构建MSI。我们有一些要实现到目标计算机的组件(插件)。插件因一个客户端而异。我们想要做的是创建一个标准的构建并修改msi包中的功能列表。是否可以通过自定义操作动态更改功能列表? (例如,从自定义操作中读取可用的插件,并相应地在msi功能列表中添加一些条目)?

We are using Wix to build msi for our software. We have some components (plugins) to be implemented to the target machine. The plugins are different from one client to another. What we want to be able to do is to create a standard build and modify the feature list in the msi package. Is there a way to change the feature list dynamically from a custom action? (e.g. read the available plugins from a custom action and add some entries into the msi feature list accordingly)?

任何评论,建议和想法都非常感谢。

Any comments, advice, ideas are very much appreciated.

推荐答案

我过去做过一个技巧,即使用外部CAB构建MSI(每个功能1个),然后使用自定义验证CAB存在的操作。如果不存在,则将其隐藏。这样,您只需构建一次安装程序,然后将其交付给具有不同功能集的客户即可。

I've done a trick in the past where you build the MSI with external CABs ( 1 per feature ) and then use a custom action to verify that the CABs exist. If they don't exist you hide the feature. This way you can just build the installer once but then ship it to customers with different feature sets.

顺便说一句,我相信InstallAware本身就支持这个故事。

BTW, InstallAware has supports this story natively I believe.

这篇关于Wix:动态添加功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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