Automated installations``The great thing about text-auto is it gives you completely silent builds just like Ant. The downside to text-auto is that it gives you completely silent builds just like Ant.''
-- Paul Hinds
Ant Installer Group
Welcome to Automated installations, how to take the user interaction out of your user interactive installs!
A much requested feature is automated installations. Generally it is expected that programs would be delivered with AntInstaller specifically to be able to configure the installations manually, however it is useful to be able to reinstall in a particular environment without having to manually re-enter the properties. The defaults in the
Be carefull if delivering installers that can be fully automated to third parties, you should fully understand the consequences of the options before using this feature. That said, this feature can prevent making human errors with repeated installations in a controlled environment such as reinstalling software on a series of servers. It is generally safest to use the prompt options when delivering to third parties.
To handle these use cases an additional attribute has been added to the installer element and two new UI overrides have been added.
The loadDefaults attribute of the installer element can be set to true, false, prompt or prompt-auto.
Two additional UI overrides have been added swing-auto and text-auto which can be specified as the first parameter on the command line. swing-auto loads the swing GUI and skips directly to the progress page with all default values set. text-auto runs the installer with default values with no questions asked except, potentially, the loadDefaults prompt. To enable these UI overrides the ui attribute of the installer element must be set in
<installer ui="swing,text,swing-auto" ...Be careful if setting loadDefaults to true, if text-auto is enabled, selected by the user on the command line and the
The "automated installations" feature is not compatible with multiple install types without care. If a specific -type is used when repeating the install the same -type should be specified, antinstaller does not currently check this.
Version controlVersion control is provided by setting the version attribute of the installer element of
Simple use casesTo help explain the options provided some simple use cases are described here.
To enable end users to reload the values they used in a previous install set
To enable end users to reload the values they used in a previous install and not have to click through the pages set
To run repeatable silent server installations set
When you wish to update the code create a new myinstaller.jar and run
Should you wish to change the property values or add additional properties delete
antinstaller- targetsantinstaller- targets that are run when pages are shown are run in the -auto modes depending on the current state if ifProperty and ifTarget tests. If you want to use antinstaller- tasks and support -auto modes you have to work out what the consequences are for your installer. You can also set appropriate properties and use the
You should notice that also if the antinstaller- targets render messages they will be run automatically during swing-auto builds causing (probably unwanted) popups.
Password handlingPasswords are not written to