Installing jBoss as a Service using JavaWrapper - 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!

akearns
Posts: 8
Joined: Mon Jul 16, 2007 9:10 pm

Installing jBoss as a Service using JavaWrapper

During the installation of my application I need to install it as a service.
The application I want to install as a service is jBoss.
I have two .bat files to do this: jBossInstall.bat and jBossUninstall.bat.
The installation of it as a service is done using JavaWrapper, this works fine outside of the installation process.

I tried using Services and its tutorial, but it wants a .exe, I have two .bat files.

Currently I am looking at Custom Actions.
Do you have a tutorial for running a .bat as a Custom Action.
I tried the following:
1) Create new Enterprise Project
2) Include the .bat files in Program Files
3) Select Custom Actions
This is where I am stuck, I cannot find an appropriate action to allow the execution of a .bat file at the following times:
1) end of install
2) start of uninstall

thanks for the help.
akearns
Posts: 8
Joined: Mon Jul 16, 2007 9:10 pm

I ended up executing the .bat files as a Custom Action at the following times:
1) commit
2) uninstall
The .bat files were added as a New Install Custom Action.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

1. For the commit custom action set (NOT Installed) as execution condition. The custom action will be executed only on install.
2. Set (REMOVE="ALL") as execution condition so the custom action will be executed only on uninstall.

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

Return to “Common Problems”