问题
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).
Which would be the best approach for this?
I have tried the individual programs to be downloadable components but this approach doesn't handle new version of just one program.
回答1:
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.
来源:https://stackoverflow.com/questions/58699610/how-to-create-installer-for-suite-with-install4j