Summary
Controlling an existing NT service using the NT Service Name in the component wizardSymptoms
For a Basic MSI project, Using the Component Wizard to control an NT Service that already exists on a target machine does not work. The NT Service does not start or stop nor is it deleted regardless of the method used to control these NT Services.
Cause
Controlling existing NT Services can be tricky due to all NT Services having two names. The first name is the description, which is what is displayed in the Windows Control Panel. This is used when referencing the NT Service in the Component Wizard, but this is not the case. The name to reference in the Component Wizard is the actual NT Service Name. If these two names differ and the description is referenced in the Component Wizard, it is not possible to interact with the NT Service.
Resolution
It is critical to reference the NT Service Name, rather than the NT Service Description, in the Component Wizard when attempting to control an NT Service. As an example, we will use the ClipBook Service NT Service that is normally installed an a Windows NT or Windows 2000 machine. In the Services applet of the Windows NT Control Panel, this NT Service is listed as ClipBook Service. The NT Service Name is different, however, and can be found in the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_CLIPSRV\0000
This key lists the DeviceDesc as ClipBook Server, which is what is displayed in the Services applet of the Windows NT Control Panel. However, this key also lists the Service as ClipSrv. This is the name that must be referenced in the Component Wizard when attempting to control an NT Service.
Additional Information
For more information, see Windows Installer Help Library topics StopServices, StartServices, and DeleteServices.
For more information on the Windows NT service, see the Help Library topic Installing and Configuring Windows NT Services.
Related Articles
Start/Stop an NT Service Through InstallScript 7Number of Views Workaround Issues with Trialware Protection; the InstallShield Activation Service; .NET, Java, PowerBuilder, or Other Inte… 9Number of Views What is the Difference Between a .NET Service and an NT Service? 3Number of Views SQL script to create custom properties for FlexNet Manager Suite 2015 6Number of Views Digital Signing Patch for InstallShield 2015 SP2 and Above 23Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago