How can I install two products with one Inno Setup script?

后端 未结 1 1924

I have two products: a Client and an Admin product. There may be a case when the user wants to install one, the other, or both. How do I do this in Inno Setup?

I am

1条回答
  •  南方客
    南方客 (楼主)
    2020-12-20 05:37

    In the [Types] section, configure one custom type (the iscustom flag).

    Then in the Components section, add two components for the custom installation.

    [Types]
    Name: "custom"; Description: "Custom installation"; Flags: iscustom
    
    [Components]
    Name: client; Description: "Client product"; Types: custom
    Name: admin; Description: "Admin product"; Types: custom
    
    [Files]
    Source: "client.exe"; DestDir: "{app}"; Components: client
    Source: "admin.exe"; DestDir: "{app}"; Components: admin
    


    An alternative to the iscustom setup type is using the AlwaysShowComponentsList directive.

    0 讨论(0)
提交回复
热议问题