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

Comments

Please log in to comment

Answers

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?

Answered 10/15/2012 by: pjgeutjens
Red Belt

Please log in to comment
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.

Answered 10/15/2012 by: piyushnasa
Red Belt

Please log in to comment
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?

Answered 10/16/2012 by: alphabeta
Third Degree Brown Belt

Please log in to comment
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"

Answered 10/17/2012 by: anshul
Orange Belt

  • this vbscript should be run after install finalize and in myprogram.exe write the exe corresponding to that service
Please log in to comment
Answer this question or Comment on this question for clarity