Hi all,
When i install my application(in which i have included a service) and try to start the service, i get the following message.
"The Service on the local computer Started and stopped
immediately. Some Services stop automatically if they have no work to do
so, for example, Performance log and alert services."
But i need this service to be started. Can someone help me in this..
Thanks in advance......
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
ORIGINAL: rayz_0020
But i need this service to be started. Can someone help me in this..


Then for anyone to realistically be able to help here we need more information, as a minimum the following :

Is this a Windows Installer package ?
Application Name ?
Application Version ?
Service Name ?
Service set to run under LocalSystem, or a specific account ?

plus any additional information from the Event Log (if any)

Regards,

Spartacus
Answered 05/06/2008 by: spartacus
Black Belt

Please log in to comment
0
Everything Graham says is true, of course, but, can you guess what m suggestion is?

ProcMon, ProcMon, ProcMon. It will show you imemdiately any file or registry access failures. Almost without question, your service failed to start because of some missing dependency or, less likely, inadequate permissions for the account trying to start it.
Answered 05/06/2008 by: VBScab
Red Belt

Please log in to comment
0
Yes, this is a windows installer package.
The App Name is HP OVSD 4.5 agent
version - 4.0.25
Service name - Hp OVSD (sd_agentservice.exe)
The service is not set to run under any account. Should run for everyone.

The previous version of this app (4.0.17) has the service which runs fine.
The previous version has the agent and client together in one msi whereas the present version has separate msi's for agent and client.
I have included the service in the agent.
Answered 05/06/2008 by: rayz_0020
Senior Purple Belt

Please log in to comment
0
ORIGINAL: rayz_0020
The service is not set to run under any account. Should run for everyone.
...except that normally, of course, the 'Everyone' group has no rights to start and stop services. Most environments in which I've worked use specific accounts for services, where the account name matches the service name: that account's *sole* purpose is to operate the service. It will generally have no interactive logon etc, etc.
Answered 05/06/2008 by: VBScab
Red Belt

Please log in to comment
0
You can use the ServiceControl table to start/stop during install/uninstall.
Did you try that?
Answered 05/06/2008 by: AngelD
Red Belt

Please log in to comment
0
hey guys,
Thanks for all those replies.. I got it resolved.. It was because of a missing (dependent)Registry. Now its workin fine.. Cheers...
Answered 05/06/2008 by: rayz_0020
Senior Purple Belt

Please log in to comment
0
Hi,

I have the same issue that u have resolved.

Can u please specify me clearly about that missing registry and its path.

Thanks in advance......
Answered 01/21/2011 by: a_muthukumar26
Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity