Batch Script to Install or Uninstall a .NET Windows Service

后端 未结 10 1580
我在风中等你
我在风中等你 2021-01-31 05:13

I have no experience writing batch scripts, but I was wondering if there was a way to install a .NET Windows service using installutil.exe using such a script, or u

10条回答
  •  遇见更好的自我
    2021-01-31 05:38

    i'm not sure why you'd need a batch file for a one liner. this is what i'd use.

    C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\InstallUtil.exe /i ServiceAssembly.dll

提交回复
热议问题