Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Visual Studio 2022

.Net Framework 4.7.2 (Windows Service)

Normally we have to install and uninstall windows service using InstallUtil.exe.
We can find InstallUtil.exe in directory C:\Windows\Microsoft.NET\Framework or Framework64 folder for x86 and x64.
Using this exe we have to set command.
For installing .\InstallUtil.exe .\myservice.exe
For uninstalling .\InstallUtil.exe /u .\myservice.exe

This example is for not using InstallUtil.exe

Test Method

  • Build the project
  • Open powershell with Admin mode from bin folder where exe exists
  • Put command for installing the service
  • .\SelfInstalledWindowsService.exe -i
  • Find "SelfInstalledService" in Services app
  • Put command for uninstalling the service
  • .\SelfInstalledWindowsService.exe -u
  • It will remove "SelfInstalledService" from Services app

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages