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!

coderbrat
Posts: 2
Joined: Thu Oct 09, 2014 9:10 pm

How to place war file in webapps folder after tomcat install

Hi,
I have included tomcat.exe as a prerequisite and it installs fine. After the prerequisite is done, I should be able to search for the installation folder and then place the war file in the folder and also set an environment variable.

I have followed the instructions in this post:
http://www.advancedinstaller.com/forums ... =5&t=27971

I added a search for tomcat installation, added a property based folder to the files and folder area with the search result as path. When I run the set up, it fails because it is not able to get the property based directory as tomcat hasnt been installed yet and hence no directory present.

How do I ensure that the placing of war file happens after prerequisites are installed?

Please advice.

Thanks.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: How to place war file in webapps folder after tomcat ins

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

In order to achieve what yo want you should make sure you have added the Tomcat prerequisite as a pre-install prerequisites. In this way the TOMCAT prerequisite will be installed before the MSI installation (when the searches from "Search" page are executed at the very beginning of the MSI installation during "AppSearch" standard action).

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
coderbrat
Posts: 2
Joined: Thu Oct 09, 2014 9:10 pm

Re: How to place war file in webapps folder after tomcat ins

Thanks, Daniel.

Initially I had the prerequistes under Feature based. I just changed it to pre-install and I still have the same problem with search. Screenshot of my prerequisite is attached.

1. What am I doing wrong? Is there something I should do in custom action section?

2. Is there a way to do a silent install of Tomcat when I provide the .exe for tomcat installation? That way I can avoid searching and install in a specific directory.
Note: I am using the java project template and not the Tomcat template (I do not have an Enterprise licence)
Attachments
Tomcat prerequisite screenshot
Tomcat prerequisite screenshot
tomcat prerequisite.png (340.11 KiB) Viewed 2987 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: How to place war file in webapps folder after tomcat ins

Hello,

I'm not sure why the search fails. Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

Also, in order to silently install your Tomcat prerequisite you can add silent command line parameters in the "Prerequisites Setup Files tab -> Install Command Lines section -> Full UI field".

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”