我可以在功能中管理产品配置吗
我必须安装具有多种配置的产品。比如说专业版、标准版等。
专业版和标准版功能是否可能包含相同的通用组件?如果是的话,这样的解决方案会有缺点吗?
假设确保仅安装这些功能之一。
WiX 源代码中的示例:
<Feature Id="F__P_Classic" Level="2" ConfigurableDirectory="INSTALLFOLDER" Title="Program Professional" TypicalDefault="install" Display="expand" InstallDefault="local">
<ComponentGroupRef Id="CG__ProgramBase" />
</Feature>
<Feature Id="F__P_Professional" Level="2" ConfigurableDirectory="INSTALLFOLDER" Title="Program Professional" TypicalDefault="install" Display="expand" InstallDefault="local">
<ComponentGroupRef Id="CG__ProgramBase" />
<ComponentGroupRef Id="CG__Other" />
</Feature>
I have to install a product which has several configurations. Say Professional, Standard, etc.
Is it possible that the Professional and the Standard Feature contain the same common Components? If yes would there be drawbacks to such an solution?
Assume that it is ensured that only one of these features will be installed.
Example in WiX source:
<Feature Id="F__P_Classic" Level="2" ConfigurableDirectory="INSTALLFOLDER" Title="Program Professional" TypicalDefault="install" Display="expand" InstallDefault="local">
<ComponentGroupRef Id="CG__ProgramBase" />
</Feature>
<Feature Id="F__P_Professional" Level="2" ConfigurableDirectory="INSTALLFOLDER" Title="Program Professional" TypicalDefault="install" Display="expand" InstallDefault="local">
<ComponentGroupRef Id="CG__ProgramBase" />
<ComponentGroupRef Id="CG__Other" />
</Feature>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
多个特征包含相同的公共组件是可能的并且被大量使用。我不知道这种方法有什么缺点。
来自 MSDN:
It is possible and it is used a lot that several features contain the same common components. I'm not aware about any drawbacks of this approach.
From MSDN: