Apache Tomcat and my WAR file using Advanced Installer 10.x - Advanced Installer Community
karlwj
Posts: 5
Joined: Fri Jan 27, 2012 9:14 pm

Apache Tomcat and my WAR file using Advanced Installer 10.x

Hi,
I am slightly confused by the documentation and what I am reading in the forums. It appears that, using the Tomcat Template, I should be able to:
  • Install Tomcat Pre-Requisite with Parameters
  • Pass the WebApps directory path back to the installer.
  • Install my WAR file into Tomcat.
In practice, I am having quite a bit of difficulty with this.

1) Tomcat Prerequisite.
I have apache-tomcat-7.0.5.exe downloading from my web server. This triggers an installer that requires a lot of input. I would like to reduce this via the install command lines (or parameters). The documentation is ambiguous on how to make that happen and AI gives me basically one line to enter all the params that I need (which are quite hefty).

2) I see a "save return value in this property" but I am at a loss as to what the return value is or how to specify it. I want it to be effectively "TOMCAT_WEBAPPS"

3) Once tha's done, do I need to search for TOMCAT_WEBAPPS or is it enough that I pass it back. I think this last step is easiest to deal with, but any input is also appreciated.

-k
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Apache Tomcat and my WAR file using Advanced Installer 1

Hello,
Install Tomcat Pre-Requisite with Parameters
In order to pass parameters for your prerequisite you can use the Install command lines from the Setup tab of the prerequisite.
Pass the WebApps directory path back to the installer.
In order to install files in WebApps directory you can use a property based folder. Property based folders will be resolved at install time to the values from the respective property. You can also take a look on the How do I install files in a custom folder? article with related information for hints and guidance.

If you don't create a silent installation and the user can change the installation path of your prerequisite then you have to create a folder search operation in order to retrieve the installation folder and later use the search property for the property-based folder.
I see a "save return value in this property" but I am at a loss as to what the return value is or how to specify it. I want it to be effectively "TOMCAT_WEBAPPS"
In this field you can have a property in which the prerequisite installer will store its return value.
E.g. If you have a custom .exe which return 1 in case of success and another value in case of failure than you can use this return value of the prerequisite in your main installation package(as a launch condition, as a condition in order to condition the execution of a custom action, as a condition for installation of some resources, etc).

Please let us know if that helped, otherwise give us more details about your specific scenario.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”