Install windows service without InstallUtil.exe

前端 未结 8 2190
我寻月下人不归
我寻月下人不归 2020-12-07 23:01

I\'m trying to deploy a windows service but not quite sure how to do it right. I built it as a console app to start with, I\'ve now turned it into a windows service project

8条回答
  •  心在旅途
    2020-12-07 23:16

    Not double click, you run it with the correct command line parameters, so type something like MyService -i and then MyService -u to uninstall it`.

    You could otherwise use sc.exe to install and uninstall it (or copy along InstallUtil.exe).

提交回复
热议问题