Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Uninstallation:
prunsrv //DS//PROXO

Can I use the commons daemon to install (register) a Windows service?

Yes a Windows service can be installed/uninstalled using prunsrv. See the following example to install the a Windows Service called SCNService:
prunsrv //IS//SCNService --Install=%CD%\SCNService.exe --Startup=manual --DisplayName=SCNService

Hint: prunsrv will add "//RS//SCNService" to the ImagePath, which will be passed to SCNService.exe when the Windows SCM (Service Control Manager) is staring the service. Most Services will ignore such command line arguments, but you should check this with your service just to make sure.