简体   繁体   中英

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

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 relatively new to Inno Setup. I have tried to use Components and Types but so far only get a dropdown of single choices. I would like a set of checkboxes (or whatever) that allow the user to select what they are installing.

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

Then in theComponents 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM