Files
oc-sentinel/installer/uninstall-ocsentinel.ps1
OfficeCom Codex 85e394f647
Some checks failed
OfficeCom Sentinel Client / build-client (push) Has been cancelled
Adopt OCSentinel script layout and add Gitea workflow
2026-07-17 00:50:26 +02:00

17 lines
423 B
PowerShell

param()
$ErrorActionPreference = "Stop"
$installRoot = Join-Path ${env:ProgramFiles} "OCSentinel"
$uninstallKey = "HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\OCSentinel"
if (Test-Path $uninstallKey) {
Remove-Item -Path $uninstallKey -Force -Recurse
}
if (Test-Path $installRoot) {
Remove-Item -LiteralPath $installRoot -Force -Recurse
}
Write-Host "OfficeCom Sentinel removed from $installRoot"