Windows Service

Версия 5.1 от Alexandr Fokin на 2020/02/06 18:33

Управление установкой/удалением

1) installutil
C:\Windows\Microsoft.NET\Framework\<version>
installutil <ServiceFile>
installutil /u <ServiceFile>

2) sc
sc create "[YOUR SERVICE NAME]" binpath= "[PATH_TO_YOUR_SERVICE_EXE]" start= auto
sc delete "[YOUR SERVICE NAME]"

Запуск установленной службы с отладкой в VS:
System.Diagnostics.Debugger.Launch();

Описание и установка:

https://metanit.com/sharp/tutorial/21.1.php
https://metanit.com/sharp/tutorial/21.2.php

Теги:
Создал(а) Alexandr Fokin 2020/02/06 17:34