Hello I am trying to get windows media player to run from a service on 3 windows 2000 pro sp4 systems. The reason for the service is to start and stop windows media player remotely so that I can add a routine into my batch process which will NET STOP copy the latest onhold.mp3 file to the 3 systems, then NET START to launch mplayer2.exe /play onhold.mp3 at c:\onhold on these 3 systems.
I used the process linked here
http://www.tacktech.com/display.cfm?ttid=197to be able to create a custom windows service named onhold and everything works except for Windows Media Player will not launch and I get an error message of:
---------------------------------------------------------------------------------
Microsoft Management Console [X]
Could not start the OnHold service on Local Computer
Error 1053: The service did not respond to the start or control request in a timely fashion.
[ OK ]
---------------------------------------------------------------------------------
Here is the registry tree that references to my custom created service:
HKEY_LOCAL_MACHINE
|
L SYSTEM
|
L CURRENT CONTROL SET
|
L SERVICES
|
L OnHold
|
L ENUM
|
L PARAMETERS
|
L SECURITYUnder the OnHold there is a ImagePath instruction set to Type Of = Reg_Expand_SZ pointing to c:\onhold\mplayer2.exe to trigger windows media player to hopefully launch when the service is started, but I get the failure above when trying to start it.
When initially creating the service following the directions linked in that URL, the service can start and stop fine, but nothing happens. But when I go to alter the ImagePath to point to c:\onhold\mplayer2.exe instead of its default setting of c:\onhold\srvany.exe it errors out with the message above.
In addition to this I created the key of Parameters between Enum and Security and set up Application with Type Of REG_SZ, and Data of c:\onhold\mplayer2.exe but it still comes up with the same error message when starting the service.
Once I can get this to launch the windows media player correctly I will alter this to point to the onhold.mp3, but just trying to get it to function at this point.
Any suggestions as to what I am doing wrong. Are windows GUI apps not cabable of starting as a service object, and only console apps supported for this???
Thanks,
Dave