Trax
Posts: 46
Joined: Wed May 06, 2009 5:24 pm

Glassfish Installer

Hello,

I am looking to build an installer that will copy a glassfish folder to a directory and deploy a war file but am not sure what Project Type to use. The installer would also need to be able to edit a properties file and restart the glassfish server during install. Is something like this possible?

Thanks
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: Glassfish Installer

Hallo,

You could use the "Enterprise" project type for implementing your scenario.

A possible implementation would be the following:
- Add the Glassfish folder and war file to "Files and Folders" page, in the desired locations
- for editing the properties file you could use our "Text File Update" feature - Text File Updates Page . Just go to "Files and Folders" page and click on "New Text File Update" toolbar button. Configure the update as required.
- for restarting the server, you could use a batch file containing the commands for stopping and starting the server. This batch file could be added as a temporary file to your project and launched with a "Launch file" custom action. Please take a look on our article : How to launch a CMD or BAT file

Please let me know if you have any other questions.


Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Trax
Posts: 46
Joined: Wed May 06, 2009 5:24 pm

Re: Glassfish Installer

Thanks for the help. I will try this out
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: Glassfish Installer

Hello,

You are welcome!

Best regards,
Sorin
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”