1
我有一些應該互相排斥的功能,但這些未來只有在安裝了某些特定軟件的情況下才會顯示。現在我想讓用戶從這些功能中選擇一個安裝.. 任何想法?我不能使用單選按鈕,因爲功能是基於條件的(如果安裝了某些軟件或者我們不能禁用某些單選按鈕......) 另外我正在嘗試在futuretree選擇中執行它......我知道如何允許用戶選擇只有一個功能,(只是呼籲featureselection樹每次更改後costfinalize行動),但這時如果用戶按下一步,然後回來......所有的功能被禁用...如何選擇wix中的一個功能?
<Feature Id='FM10' AllowAdvertise="no" TypicalDefault="install" ConfigurableDirectory="INSTALLDIR" Level='5000' Title="Frame Maker 10 files" Description="Frame Maker 10 files.">
<ComponentRef Id='FAMSMainFM10DLL_component' />
<Condition Level="0">NOT FM10HOME AND NOT REMOVE</Condition>
<Condition Level="5000"><![CDATA[(&FM72 = 3 OR &FM72 = 4 OR &FM71 = 3 OR &FM71 = 4 OR &FM70 = 3 OR &FM70 = 4 OR &FM8 = 3 OR &FM8 = 4) AND FM10HOME]]></Condition>
</Feature>
<Feature Id='FM8' AllowAdvertise="no" TypicalDefault="install" ConfigurableDirectory="INSTALLDIR" Level='5000' Title="Frame Maker 8 files" Description="Frame Maker 8 files.">
<ComponentRef Id='FAMSMainFM8DLL_component' />
<Condition Level="0">NOT FM80HOME AND NOT REMOVE</Condition>
<Condition Level="5001"><![CDATA[(&FM72 = 3 OR &FM72 = 4 OR &FM71 = 3 OR &FM71 = 4 OR &FM70 = 3 OR &FM70 = 4 OR &FM10 = 3 OR &FM10 = 4) AND FM80HOME]]></Condition>
</Feature>
<Feature Id='FM70' AllowAdvertise="no" TypicalDefault="install" ConfigurableDirectory="INSTALLDIR" Level='5000' Title="Frame Maker 7 files" Description="Frame Maker 7.0 files.">
<ComponentRef Id='FAMSMainFM7DLL_component' />
<Condition Level="0">NOT FM70HOME AND NOT FM71HOME AND NOT FM72HOME AND NOT REMOVE</Condition>
<Condition Level="5001"><![CDATA[(&FM71 = 3 OR &FM71 = 4 OR &FM72 = 3 OR &FM72 = 4 OR &FM10 = 3 OR &FM10 = 4 OR &FM8 = 3 OR &FM8 = 4) AND FM70HOME]]></Condition>
</Feature>
<Feature Id='FM71' AllowAdvertise="no" TypicalDefault="install" ConfigurableDirectory="INSTALLDIR" Level='5000' Title="Frame Maker 7 files" Description="Frame Maker 7.1 files.">
<ComponentRef Id='FAMSMainFM7DLL_component' />
<Condition Level="0">NOT FM70HOME AND NOT FM71HOME AND NOT FM72HOME AND NOT REMOVE</Condition>
<Condition Level="5001"><![CDATA[(&FM10 = 3 OR &FM10 = 4 OR &FM8 = 3 OR &FM8 = 4) AND FM71HOME]]></Condition>
</Feature>
<Feature Id='FM72' AllowAdvertise="no" TypicalDefault="install" ConfigurableDirectory="INSTALLDIR" Level='5000' Title="Frame Maker 7 files" Description="Frame Maker 7.2 files.">
<ComponentRef Id='FAMSMainFM7DLL_component' />
<Condition Level="0">NOT FM70HOME AND NOT FM71HOME AND NOT FM72HOME AND NOT REMOVE</Condition>
<Condition Level="5001"><![CDATA[(&FM70 = 3 OR &FM70 = 4 OR &FM71 = 3 OR &FM71 = 4 OR &FM10 = 3 OR &FM10 = 4 OR &FM8 = 3 OR &FM8 = 4) AND FM72HOME]]></Condition>
</Feature>