/build/static/layout/Breadcrumb_cap_w.png

Service is not starting automatically after the installation of application.....

Hi Everyone......

I am having an application and the application is an .exe file and it has an extracted .MSI file. When we installs an .Exe file after installing the aplication the application related service is running automatically and it is fine.

But when i tried to installs the extracted MSI it is installing fine and in the eventviewer i have checked it is successful installation and the in the services.msc the application related service is comming and it is not running automatically. The requirement is the application related service should run automatically after the application installs.

Any help would be much appreciated.....


0 Comments   [ + ] Show comments

Answers (4)

Posted by: pjgeutjens 11 years ago
Red Belt
1

Assuming the service is defined in the MSI, what are the values of the StartType in the ServiceInstall table, and is there an entry in the ServiceControl table for this service?

Also, is the StartServices standard action defined in the InstallExecute sequence?

Posted by: piyushnasa 11 years ago
Red Belt
1

You need to open the msi and see if it is set to start the service there. If not then you can do it through tables. If still it causes an issue then use sc.exe and start the service using custom action. Check for help on sc.exe in cmd prompt.

Posted by: alphabeta 11 years ago
Black Belt
0

Via MSI I'm not too sure if it will run automatically but silly question, have you installed by msi and then restarted the computer and checked again?

Posted by: anshul 11 years ago
Orange Belt
0

check after restarting the machine or else you can write custom action (vbscript)

Use run command in vbscript.

Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "c:\myprogram.exe"


Comments:
  • this vbscript should be run after install finalize and in myprogram.exe write the exe corresponding to that service - anshul 11 years ago
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ