【问题标题】:Select Component exclusively ( InnoSetup )仅选择组件 ( InnoSetup )
【发布时间】:2016-10-27 19:01:38
【问题描述】:

下面的代码很好地显示了两个组件。 如果我选择“服务器”组件,则应取消选中“客户端”组件。 如果我选择“客户端”组件,则应该取消选中“服务器”组件。

你能告诉我该怎么做吗?

[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;

【问题讨论】:

    标签: inno-setup


    【解决方案1】:

    只有 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
    

    【讨论】:

      猜你喜欢
      • 2013-11-03
      • 1970-01-01
      • 2021-07-29
      • 2022-08-16
      • 2010-12-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多