我正在尝试使简单的 Windows 更加安装,但我不知道如何处理这个问题。我有两个功能 - 功能 1 和功能 2。我希望仅在用户选择要安装的 feature1 时才安装 feature2。所以我尝试了:
<Feature Id='core' Title='Core'
Description='ØMQ 1.0.0 core functionality and C++ API' Level='1'>
<ComponentRef Id='Core_include' />
<ComponentRef Id='Core_bin' />
<ComponentRef Id='Core_lib' />
<ComponentRef Id='Core_zmq' />
<ComponentRef Id='cpp_bin' />
</Feature>
<Feature Id='core_perf' Title='core_perf' Description='0MQ core perf' Level='999'>
<Condition Level="0">NOT (&core = "3")</Condition>
<ComponentRef Id='cpp_perf' />
</Feature>
但是,如果用户选择功能核心,这不会安装功能 core_perf。
我怎样才能解决这个问题?