installation - 如何使用一个 Inno Setup 脚本安装两个产品?

标签 installation inno-setup

我有两种产品:客户端和管理产品。可能存在这样的情况:用户想要安装其中一个、另一个或两者。如何在 Inno Setup 中执行此操作?

我对 Inno Setup 比较陌生。我尝试使用 ComponentsTypes 但到目前为止只获得了单个选项的下拉列表。我想要一组复选框(或其他任何东西),允许用户选择他们正在安装的内容。

最佳答案

[Types] section ,配置一种自定义类型(iscustom 标志)。

然后在 Components section ,添加两个组件用于自定义安装。

[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

Select components page


iscustom 设置类型的替代方法是使用 AlwaysShowComponentsList指令。

关于installation - 如何使用一个 Inno Setup 脚本安装两个产品?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33156723/

相关文章:

installation - 如何在 Ubuntu 中安装 Drupal?

windows - 如何在 Windows 10 上安装 MinGW 64

inno-setup - Inno-Setup 的 [code] 部分支持哪种语言?

inno-setup - Inno Setup 中的 DiskSpaceLabel 和 ComponentsDiskSpaceLabel 有什么区别?

installation - 如何修改 Inno Setup 安装程序的嵌入式 list ?

wix - 如何更好地利用MSI文件

installation - Innosetup - 在安装开始之前引用[Code]中的文件

inno-setup - 有条件地在 Inno Setup 中包含文件夹

installation - Wix:如何在自定义安装位置进行 DirectorySearch

inno-setup - 从 .ini 文件读取常量以进行 Inno Setup 编译