如何使用一个Inno Setup脚本安装两个产品? [英] How can I install two products with one Inno Setup script?

查看:136
本文介绍了如何使用一个Inno Setup脚本安装两个产品?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有两个产品:客户端和管理产品.用户有时可能想同时安装一个或多个.如何在Inno Setup中执行此操作?

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?

我对Inno Setup还是比较陌生.我尝试使用ComponentsTypes,但到目前为止,仅会出现一个下拉菜单.我想要一组复选框(或其他复选框),允许用户选择他们要安装的内容.

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.

推荐答案

[Types]部分,配置一种自定义类型(iscustom标志).

然后在 Components部分中,为定制安装.

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

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

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

这篇关于如何使用一个Inno Setup脚本安装两个产品?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆