Installation with JRE, Tomcat & PostgreSQL - 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!

mingsiew
Posts: 2
Joined: Wed Jul 25, 2007 9:07 pm

Installation with JRE, Tomcat & PostgreSQL

Hi,

I would like to package my web application using AdvancedInstaller. I would like to find out how the AdvancedInstaller can help to create the postgres service account during the installation and getting the port number information for Tomcat and PostgreSQL server.

I have seen one such installation package being built that is ZohoCRM though I am not sure which installer tools they are using. That's impressing and wonderful. So I would think that it is also possible to build the installation like that for my web application as well, just that I don't know how to do it yet.

I am thinking somebody in this forum maybe can help me with my problem or can point me to some reference url on internet or he can tell me how the ZohoCRM is done.

Thanks for your kind assistance and advice in advanced.


Best regards,
Ek Ming Siew
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

If your application needs other applications (to be installed) prior to run then use prerequisites. On how to use prerequisites in Advanced Installer please see:
http://www.advancedinstaller.com/user-g ... tware.html

You don't need to create the Postgres service account from AI because it's already created by the Postgres installation.

Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/
mingsiew
Posts: 2
Joined: Wed Jul 25, 2007 9:07 pm

Hi Gigi,

Thanks for reply.

I have tried the AI with prerequisites to include jre, tomcat and postgresql, however, the uninstallation does not uninstall these software.

And another problem that if i were to use this method, I will need to copy files to tomcat folder and postgres folder, but I am not able to do that in AI, maybe I cannot find the options to do that. Can you enlighten me how to copy files to other location in AI configuration.

Having said that, I would like to achieve how the ZohoCRM installer is doing. You may download the installer at http://www.shareup.com/Zoho_CRM-download-47269.html to see how it is done if you can.

Thanks for your information.

Best regards,
Ek Ming Siew
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

The package you are referring to is not based on Windows Installer.
I have tried the AI with prerequisites to include jre, tomcat and postgresql, however, the uninstallation does not uninstall these software.
Prerequisites are not removed on uninstall.
And another problem that if i were to use this method, I will need to copy files to tomcat folder and postgres folder, but I am not able to do that in AI, maybe I cannot find the options to do that. Can you enlighten me how to copy files to other location in AI configuration.
This can be done by locating the Tomcat/Postgres installation folders (you can use a folder search in the "Search" page). The result of the search ("RESULT_PROPERTY" by default) will contain the the Tomcat/Postgres installation folder. You can use this property to create a property based folder in "Files and Folders" page. Add you files to this folder.

Other approach (instead of using "Prerequisites") is by using custom actions to run the Tomcat/Postgres packages. Since two MSI packages cannot be run at the same time, the only way to install Tomcat/Postgres is by scheduling the custom action under "InstallExecuteSequence->InstallFinalize" with "Asynchronous execution, do not wait for return" option set. But then copying files to Tomcat/Postgres installation folder cannot be done because Tomcat/Postgres will be installed after your main package. This is why using "Prerequisites" is recommended.

Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”