Hi Everybody,
I am almost done with my new program to install Windows NT services. I will tell you more about it when it is ready and will post it here or probably on VA Smalltalk goodies. But I am having two small problems that maybe someone can help with.
I can't figure out how to set the Windows NT service description from my VA Smalltalk program. I can create the service and set all of what I consider important but not the description. I have gotten around this for now by using the Windows SC.Exe program. That, of course means you need to distribute the SC.Exe with your code when you want a customer to install your application.
The second problem is with using the -srvWorkingDir switch. If I set its value as a DOS short style path, the service starts and works just fine. If I set it as a quoted path with blanks, the service never finishes starting. It doesn't even time out and get a Windows error, it just keeps starting forever and it takes a reboot to clear things.
Using the short path isn't horrible but it would be nice to be able to see the long path from the Windows services window.
Does anyone else have this problem or am I messing something up? Is this a problem in abtntsrv.exe? Is it a short coming of what parameters you can pass to an NT service?
Lou