简体   繁体   English

Inno Setup模块化安装

[英]Inno Setup modular installation

I'm trying to release a program with a client/database approach. 我正在尝试使用客户端/数据库方法发布程序。

The client and database can be installed on 2 different computers. 客户端和数据库可以安装在两台不同的计算机上。

What I'm trying to do is an installer that at the beginning asks if you want to install the client, the database or both. 我正在尝试做的是一个安装程序,开始时会询问您是否要安装客户端,数据库或同时安装两者。

Is this possible? 这可能吗? Which section should I modify? 我应该修改哪一部分?

I warn you, I've never wrote an Inno Setup script, I always used ISTools, but if there is no other way, I'm ready to get my hands dirty :P 我警告您,我从未编写过Inno Setup脚本,我一直使用ISTools,但是如果没有其他方法,我准备动手了:P

Edit: a bit more info. 编辑:更多信息。 At the moment I have 3 installers, one for the client, one for the DB (which is postgreSQL) and one for PDFCreator. 目前,我有3个安装程序,一个用于客户端,一个用于DB(即postgreSQL),另一个用于PDFCreator。 What I'm doing is copy the files to a directory and then ask at the user what he wants to install: [Run] section, Post Installation. 我正在做的是将文件复制到目录,然后向用户询问他要安装的内容:[运行]部分,安装后。

Yes, it is possible. 对的,这是可能的。 Take a look at the CodeDlg.iss example. 看一下CodeDlg.iss示例。 It show how to create a dialog to ask which edition to install. 它显示了如何创建一个对话框来询问要安装哪个版本。 In the case of CodeDlg, it is various editions of a program (light, sponsored, paid) but the concept is the same. 对于CodeDlg,它是程序的各种版本(简易版,赞助版,付费版),但是概念是相同的。 I've done this before as well. 我以前也这样做过。 In my case, during initialization, I read a registry setting and set some variables up to choose which version (client or server) I install. 就我而言,在初始化过程中,我读取了注册表设置并设置了一些变量以选择要安装的版本(客户端或服务器)。 I don't have it here but will get it later and add to this answer. 我在这里没有,但是稍后会得到并添加到此答案中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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