Executable(exe) to Windows service

Problem

You have that application that needs to not be closed or run as a windows service.

 

Solution

You can just do that too, it seems to work well too.

sc create "ServiceName" binPath= "Path\To\your\ExecutableApp.exe" DisplayName= "My Custom Service Name"

If you need to have a description when viewing from the services console (services.msc), open the registry and add a string named Description in your service’s registry key to add a little more descriptive information about it.

HKLM\SYSTEM\CurrentControlSet\Services\<ServiceName>

or HKLM\SYSTEM\CurrentControlSet0001\Services<ServiceName>

 

Tested Platform

Windows 2012 R2

Hits: 13

Leave a Reply