I am stuck on this problem for days, any help will be really appreciated.
Have a ruby file called app.exe
which is located in "C:\MyApp\app.exe"
. This is a windows app which creates a system tray icon. When I click on app.exe
directly this works fine. But I would like to make this as a windows service so that it is on the system tray all the time (after system boot to all users).
So I learnt that sc
command in windows has some command line arguments which can be used to create a service. I am doing this :
sc create "testservice" binpath= "C:\Prevas\MyApp\app.exe" displayname= "Test Service
"
And when I start :
sc start "testservice"
When I do this I get an errror :
[SC] StartService FAILED 1053:
The service did not respond to the start or control request in a timely fashion.
Not able to understand the reason why I am seeing this error, as I am able to kick start the app directly. Any parameters I am missing or anything I am doing wrong?
Thanks guys