# Control NT Services

This advanced setting allows you to control an NT service when this component is installed or uninstalled. For example, you may need to delete a running service before updating it in your setup.

Right-click on Control NT Services to specify the service you want to control. The unique name you give the service in the tree can be the service's display name, the service's name, or any convenient identifier for your own reference during setup authoring. Then, click on the service to view its Service Name property. Enter the actual name of the service.

Next, right-click on the service to create a service event. Give the event any unique name you like. Finally, click on the event to set its properties and specify how you want to control the service during installation and uninstallation.

You can place all of your control options in a single event. However, you may need to create additional events if, for example, you wanted to pass different arguments during installation and uninstallation.

An easier way to make these settings is by launching the Component wizard and selecting the Control NT Service component type.