Developers, Developers, Developers! Maksim Sorokin IT Blog

6Jul/10Off

Silent Installation of Modularized Installers with IzPack

link to modularized installers 2 times

As one can see from my previous post it is easy to create a modularized installer with IzPack. However, one may wonder, what about a silent installation of "master" installer? Is there a way to apply auto installation for such "master" installer and make it totally silent? Yes, it is possible.

So as one probably knows, in order to have a silent (auto) installation, one has to provide an auto-install.xml file. We can change our installer easily to do that. For example, during the installation of "master" installer, but just before launching our modularized installers, we can pre-copy auto-install.xml files to specific location. And then in the bat file, where we launch our installers we simply add a path to those auto-install.xml files.

This also can be used when you distribute your installer to some groups of people, who need some specific parameters to be set up accordingly to their setups. What you can do is to ask a system administrator, who knows all the requirements of that group, to modify auto-install.xml files and distribute those files to some specific location on users' machines. And then, when "master" installer will be launched on those machines, it can look whereas auto-install.xml file is present in that specific location. If it is, then launch a silent installation, if it is not, launch normal installation. So dependenciesInstall.bat file from the previous post can be changed to:

echo.
echo -------------------------------------------------------
echo Launching Project1 installer
IF EXIST "locaton_of_auto_config_for_project1" (
  echo Silent install..
  "${INSTALL_PATH}\install\project1-install-standard.jar" "locaton_of_auto_config_for_project1"
) ELSE (
  echo Normal install..
  "${INSTALL_PATH}\install\project1-install-standard.jar"
)
Comments (0) Trackbacks (0)

Sorry, the comment form is closed at this time.

Trackbacks are disabled.