11 lines
404 B
PowerShell
11 lines
404 B
PowerShell
<# Uninstall gateway + CDN services. Usage (admin):
|
|
powershell -ExecutionPolicy Bypass -File deploy\windows\uninstall-services.ps1 -NssmPath C:\nssm\nssm.exe
|
|
#>
|
|
param([string]$NssmPath = "C:\nssm\nssm.exe")
|
|
$ErrorActionPreference = "SilentlyContinue"
|
|
foreach ($svc in @("XWorldGateway", "XWorldCdn")) {
|
|
& $NssmPath stop $svc
|
|
& $NssmPath remove $svc confirm
|
|
Write-Host "removed $svc"
|
|
}
|