Problems installing a service - 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!

CaP
Posts: 14
Joined: Thu May 10, 2012 6:23 pm

Problems installing a service

Hi all,

I have downloaded and installed 30-days trial of Advanced Installer 9.1 build 44432.
I'm currently working on the 2 Tutorials and am almost through with the professional one.

I am at step 15 of professional tutorial -> 15. Install and control services
I have a sample-directory that collects all files that go into the installation (I have extended the tutorial slightly).
Here's what I have done: copy notepad.exe to my sample-directory, rename to nopad.exe
create foo.edt and bar.edt, which both are textfiles and go into sample directory.
foo.edt and bar.edt are installed as optional components.
foo.edt and bar.edt as well as nopad.exe and myservice.exe go into the same target directory.

I have created a service "myservice.exe" that does almost nothing.
I can do
"myservice.exe /install"
"myservice.exe /uninstall"
"net start mysrv"
"net stop mysrv"

So far, so good.
Now if I add myservice.exe to the installation and create an entry in the services section of the resources under "services to install" and "Control Operations", I can still build the installation, but the installation hangs for a long time at "starting the service". After about 10 minutes of inactivity a message shows, that the installation failed to start the service. Next, it tries to rollback installation.
The system still shows the service as "start_pending". The rollback takes almost forever and claims to be successful. However, the service is not uninstalled.

What can I do to solve the situation (e.g. get the service installed and started)

Thanks!
CaP.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Problems installing a service

Hello and welcome to Advanced Installer forums,

Thank you for your interest in Advanced Installer.

Our Professional tutorial links to Creating a Java Service Installation tutorial to demonstrate the service installation. If you developed your own service, you should install (start, stop) it outside the installer and make sure it works as expected.

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

Return to “Common Problems”