Files
WireMock.Net/examples/WireMock.Net.Service/Service-Uninstall.bat
2018-03-18 10:41:31 +01:00

9 lines
269 B
Batchfile

@echo off
SET mypath=%~dp0
SET targetpath=C:\Services\WireMock.Net.Service\
net stop "WireMock.Net.Service"
C:\Windows\Microsoft.NET\Framework\v4.0.30319\InstallUtil.exe /u "%mypath%WireMock.Net.Service.exe"
sc delete "WireMock.Net.Service"
rmdir /S /Q "%targetpath%"