aaronk
January 21st, 2004, 20:45
I was wondering if netinstall has a command that can check if a service exist? I know there are command that can install, uninstall, stop, and start a service. But I did not find anything that would check if a service exist.
Support_1
January 22nd, 2004, 16:53
There is no command to check if a service is installed but you can accomplish the task very easily. All installed services write a registry key to HKLM\SYSTEM\CurrentControlSet\Services so if the respective key for the service you are looking for exists then you know the service is installed.
For example the key corresponding to the NetInstall Service is HKLM\SYSTEM\CurrentControlSet\Services\NIAIServ if that key exists then the NetInstall Service is installed.
vBulletin v3.6.7, Copyright ©2000-2012, Jelsoft Enterprises Ltd.