Wednesday, January 10, 2007

creating our own services in Windows

The method of using srvany to create our own services: with download link from here. But Microsoft site says this doesn't work for batch files. But the included srvany.wri file says
OPTIONAL: under the above key, create an 'AppParameters' value of type REG_SZ and specify the parameters for your app.
So that should solve our problem. It says on installing a service,
Make sure that you go into the Control Panel and use the Services applet to change the Account Name and Password that this newly installed service will use for its Security Context.
Default being Local System account. The default seems to be OK for us. But in the procedure given, one inconsistency found by trial and error: It does not matter if the filename given in 'Application' value has spaces in the path, no quotes are required. But if the 'AppParameters' has a path with spaces, it needs to be enclosed in quotes. AppDirectory behaves similarly, and also requires that it should NOT end with a \ - so, our value in AppDirectory should be "C:\Program Files\Shoutcast" - not "C:\Program Files\Shoutcast\".

No comments:

Post a Comment