如何使用install4j为套件创建安装程序? [英] How to create installer for suite with install4j?

查看:142
本文介绍了如何使用install4j为套件创建安装程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有两个程序的套件",非常类似于Office的Word和Excel.我们根据一些问题来确定用户是否都需要程序A或B o.我们希望有一个通用的安装程序来询问此问题,并安装通用文件,然后相应地下载并安装各个程序.

We have a "suite" of two programs, much like Office has Word and Excel. We determine if the user needs program A or B o both based on some questions. We would like to have a common installer to ask this questions, and install common files, then download and install the individual programs accordingly.

两个程序的更新周期都不同,因此我们希望检查每个程序的更新,并且理想情况下还要对安装程序本身进行更新(以查看公共文件中的更改).

Both programs have different update cycles, so we would like to check for updates per program and ideally also updates to the installer itself (for changes in the common files).

哪种方法最好呢?

我已经尝试将各个程序作为可下载的组件,但是这种方法不能处理仅一个程序的新版本.

I have tried the individual programs to be downloadable components but this approach doesn't handle new version of just one program.

推荐答案

从8.x开始,install4j中没有特殊的安装程序套件"功能.我建议为套件创建一个单独的项目,并将单个安装程序添加到单独可下载安装组件中的分发树中.代替安装文件"操作,为用户选择的每个产品添加运行可执行文件"操作.

As of 8.x, there is no special "suite of installers" feature in install4j. I would recommend to create a separate project for the suite and add the single installers to the distribution tree in separate downloadable installation component. Instead of the "Install files" action, add "Run executable" actions for each product that was selected by the user.

如果您希望每个产品都进行无人值守安装,则可以传递参数

If you would like unattended installations for each product, you can pass the arguments

-q -splash "Installing product X"

获取每个安装程序的进度条.

to get a progress bar for each installer.

这篇关于如何使用install4j为套件创建安装程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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