A windows service example using C#
- Open windows terminal in administrator mode and run the commands below (changing details for your folders):
X:\> cd C:\Windows\Microsoft.NET\Framework64\{.NET SDK FOLDER - i.e v4.0.30319}
1.1. then
X:{.NET SDK FOLDER}\> InstallUtil.exe C:\{PATH_TO_PROJ}\WindowsServiceTutorial\obj\Debug\WindowsServiceTutorial.exe
-
From keyboard: "Windows Start" + R (execute window) 2.1 Type "services.msc" 2.2 Locate your service named "WinSerTut.Personalizado" and start it.
-
Check project directory, search for "Logs" folder.
-
Your generated log file might be there.