Difference between revisions of "Windows Service"

From Logic Wiki
Jump to: navigation, search
(Created page with "Category:CSharp == Installing service : == C:\Service>"C:\Windows\Microsoft.NET\Framework\v4.0.30319\installutil.exe" Scheduler.exe == Uninstalling service : == C:\S...")
 
 
Line 14: Line 14:
  
 
[https://www.c-sharpcorner.com/blogs/windows-service-name-from-appconfig Get Windows Service Name From App.Config In Installation]
 
[https://www.c-sharpcorner.com/blogs/windows-service-name-from-appconfig Get Windows Service Name From App.Config In Installation]
 +
 +
 +
sc create [servicename] binpath= [path to your exe]
 +
 +
[path to your exe] has to be full path and don't forget the space after binpath=

Latest revision as of 10:45, 5 December 2018


Installing service :

C:\Service>"C:\Windows\Microsoft.NET\Framework\v4.0.30319\installutil.exe" Scheduler.exe

Uninstalling service :

C:\Service>"C:\Windows\Microsoft.NET\Framework\v4.0.30319\installutil.exe" -u Scheduler.exe


https://docs.microsoft.com/en-us/dotnet/framework/windows-services/walkthrough-creating-a-windows-service-application-in-the-component-designer


How to call a WebAPI from Windows Service

Get Windows Service Name From App.Config In Installation


sc create [servicename] binpath= [path to your exe]
[path to your exe] has to be full path and don't forget the space after binpath=