|
How to add Service Dependencies |
Top Previous Next |
|
There are a couple of different ways to add service dependencies:
How to add service dependencies using sc.exe
This is the easiest method to add service dependencies to the existing CatTools service. However if the CatTools service is uninstalled, then the dependencies are also lost.
To add a service dependency using sc.exe, you can either run a command from the Start (button) > Run dialog, or you can run the cmd.exe from the Run dialog and enter the command in the cmd.exe window.
For Example: To add dependencies to the CatTools service for the LanmanWorkstation, TCPIP and WMI services you can use either method below to execute the command:
sc config "CatTools" depend= LanmanWorkstation/TCPIP/WMI
The important things to note are:
- using the 'Run' method. (Note: the full command to be executed cannot be displayed in the open box, although you can see it by clicking in the box and scrolling to the right.)
- using the cmd.exe method.
This example will ensure that the Workstation, WMI (Windows Management Interface) and TCP/IP stack services are running before trying to start CatTools Service. Which service dependencies you need to add for your system depend entirely on your specific machine and what services are set to run on it at start-up.
If you need to remove dependencies, the simplest way is to uninstall CatTools, (a reboot after uninstall is preferred) and reinstall so that the modified CatTools Service is removed and replaced with the default one from within the CatTools installer.
You can use the command:
sc config "CatTools" depend= none
however this sometimes leave the CatTools service in an unusable state as the dependencies are not properly deleted. If this is the case on your system, then the only solution is to uninstall CatTools, reboot the system, then reinstall CatTools again.
How to add service dependencies using RegEdit
This method is the preferred solution as it then ensures that the CatTools service dependencies are always applied every time the service is created, therefore you don't need to run through the sc.exe method whenever you reinstall or upgrade CatTools.
To ensure that the required services have started before CatTools, you will need to modify the registry setting as follows:
Section: HKEY_LOCAL_MACHINE\SOFTWARE\Kiwi Enterprises\CatTools3
Value (STRING): NTServiceDependencies
Default value: Blank Type: Text string of service names. Delimited by semi-colons.
E.g. ServiceName1;ServiceName2;ServiceName3
Step by step example:
· Uninstall CatTools · Run RegEdit · Locate the section HKEY_LOCAL_MACHINE\SOFTWARE\Kiwi Enterprises\CatTools3 · Create the new string value of NTServiceDependencies · Modify the value data to include the list of services that need to start first , e.g. "LanmanWorkstation;TCPIP;WMI" (without the quotes) · Install CatTools again
The example above will ensure that the Workstation, WMI (Windows Management Interface) and TCP/IP stack services are running before trying to start the CatTools Service.
|