2016-10-27 57 views
1

兩個元件以下面的代碼顯示。 如果我選擇「服務器」組件,則應取消選中「客戶端」組件。 如果我選擇「客戶端」組件,那麼應該取消選中「服務器」組件。專門選擇元件(InnoSetup)

你能讓我知道我該怎麼做嗎?

[Files] 
Source: "C:\MAEK\bin\MAEK\*.exe";   DestDir: "{app}\bin\"; Flags: ignoreversion ; Components: Server 
Source: "C:\MAEK\bin\MAEK\*.exe";   DestDir: "{app}\bin\"; Flags: ignoreversion ; Components: Client 

[Types] 
Name: "custom"; Description: "Custom installation"; Flags: iscustom 

[Components] 
Name: "Server"; Description: "Server"; Types: custom; 
Name: "Client"; Description: "Client"; Types: custom; 

回答

2

只有1個組件可供選擇??

[Components] 
Name: "Server"; Description: "Server"; Types: custom; Flags: exclusive 
Name: "Client"; Description: "Client"; Types: custom; Flags: exclusive 

如果更多:

[Components] 
Name: "Mode"; Description: "Installation Mode"; Types: custom; Flags: fixed 
Name: "Mode\Server"; Description: "Server"; Types: custom; Flags: exclusive 
Name: "Mode\Client"; Description: "Client"; Types: custom; Flags: exclusive 
+0

它工作得很好!謝謝。 – Sigularity