Help in creating J2EE app installer with prereq - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

lanand
Posts: 1
Joined: Wed Oct 21, 2009 2:33 pm

Help in creating J2EE app installer with prereq

Hi,

I need to make a installer for a java EE project to be delivered to client having the following requirements . Do you have any idea how to proceed with your product ?? Examples are not of enough help.

Condition: The system provided by client is a system with just having windows operating system installed on it. Database is on another machine, whose details where supposed to be asked by the person who is installing.

Installer should be similar to any of the windows installer.

The current Installer for the client is divided into two parts Server side installer and client side installer.

Server Side Installer: This installer will install java, Tomcat and fulfill other pre-requisites of application ex. saving the database details in a file / system variable for future use by application.

Objectives:

1) Install Java at the machine.
2) Install Tomcat at the machine.
2) Should ask for the users database details and save it either as System variable or as a properties file for future use (Information to be asked by user IP,Port,username,password).
3) Using the above collected information create a new database(kiosk) and run the schema and seeding.
4) Copy war file to the location where tomcat is Installed(Grey Area: How will installer will know where tomcat was installed).
5) Start Tomcat
6) Open full screen browser with specified location using the command ( iexplore -k http://192.168.0.92:8080/kioskapp/ ).

Thanks,
Regards,
Anand Lal
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Help in creating J2EE app installer with prereq

Hi Anand,
1) Install Java at the machine.
For this you can try adding a JRE prerequisite. Perhaps this how-to will help you.
2) Install Tomcat at the machine.
You can add the Tomcat bundle in the Files and Folders page of your project or you can use the Tomcat MSI installer as a prerequisite. If you want to modify the "server.xml" configuration file you can use the XML editor in an Enterprise project. Let me know if you need to make more advanced settings for Tomcat.
2) Should ask for the users database details and save it either as System variable or as a properties file for future use (Information to be asked by user IP,Port,username,password).
To retrieve the information from the user you can use custom dialogs. Our user guide contains a custom dialog tutorial which may help you. This information will be stored in installer properties which can then be written wherever you need (environment variables, registry, file etc.).
3) Using the above collected information create a new database(kiosk) and run the schema and seeding.
I'm afraid that Windows Installer doesn't have direct support for this. Also, Advanced Installer offers support only for SQL scripts. However, you can try using a custom action.
4) Copy war file to the location where tomcat is Installed(Grey Area: How will installer will know where tomcat was installed).
If you are using a Tomcat bundle you can place the WAR file directly in the tomcat folder from the "Files and Folders" page. If you are using a prerequisite you can use a search to find the Tomcat installation folder.
5) Start Tomcat
When using the Tomcat bundle you can use a custom action to launch the "service.bat" file. You can launch the BAT directly through a Launch file or open URL custom action or you can launch "cmd.exe" with a custom command line.
6) Open full screen browser with specified location using the command ( iexplore -k http://192.168.0.92:8080/kioskapp/ ).
To launch the URL you can try using a "Launch file or open URL" custom action.

Before starting work on your product we recommend completing the simple and professional tutorials to get used to Advanced Installer.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”