Create Java Service with GUI Installer - 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!

klaus777
Posts: 3
Joined: Sat Jan 07, 2012 6:08 pm

Create Java Service with GUI Installer

Hi,

I'm completely new to Advanced Installer and currently evaluating it. My goal is to create a GUI-based installer for a Java application with the following components:

1) main application runs as a service
2) Admin tool for this application runs as a normal app that can be started as a normal windows application.

My question is, how do I go about creating this installer. Sofar, I have managed to 1) create an installer for a service (as described here: http://www.advancedinstaller.com/user-g ... rvice.html) and 2) create an installer for the admin tool.
My main problem is this: how do I get the service to be installed as part of the installation process of the admin tool?

Regards,
Klaus.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Create Java Service with GUI Installer

Hi Klaus and welcome to Advanced Installer forums,

Thank you for taking the time to evaluate our product.

You can try to add the service installer as a prerequisite for the admin tool installer:
http://www.advancedinstaller.com/user-g ... requisites

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
klaus777
Posts: 3
Joined: Sat Jan 07, 2012 6:08 pm

Re: Create Java Service with GUI Installer

Thank you Mihai. I will give that a try. If I want to install only the service, is it there a way to ensure it also has a GUI Installer instead of just the command ine?

Klaus,
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Create Java Service with GUI Installer

Hi Klaus,
If I want to install only the service, is it there a way to ensure it also has a GUI Installer instead of just the command ine?
I'm afraid I don't understand exactly the question. Isn't the package created as explained in our tutorial installing with full UI if you double click the MSI?

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
klaus777
Posts: 3
Joined: Sat Jan 07, 2012 6:08 pm

Re: Create Java Service with GUI Installer

Hi,

I had an interesting problem that I finally resolved. I was trying to run the apache felix OSGI container as a service. It appears that for reasons beyond my understanding, the installer was passing the application name as first argument to Felix, resulting in a fail start. This happens only when Felix is started as a service. As an application, every works fine. My workaround for now is to change the Felix launcher and remove the part where it checks the command line parameters. Ultimately, I would love to find a way to prevent the installer from passing the application name as command line argument to felix. Any help would of course be mor ethan welcome.

Klaus.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Create Java Service with GUI Installer

Hi Klaus,
Ultimately, I would love to find a way to prevent the installer from passing the application name as command line argument to felix. Any help would of course be mor ethan welcome.
Our development team has included this possibility in our next version release which should be out very soon.

All the best,
Miha
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”