Adopt OCSentinel script layout and add Gitea workflow
Some checks failed
OfficeCom Sentinel Client / build-client (push) Has been cancelled

This commit is contained in:
OfficeCom Codex
2026-07-17 00:50:26 +02:00
parent 7cdc0395c4
commit 85e394f647
23 changed files with 1124 additions and 920 deletions

View File

@@ -1,16 +1,15 @@
param()
param(
[Parameter(ValueFromRemainingArguments = $true)]
[string[]]$RemainingArgs
)
$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
$newScript = Join-Path $PSScriptRoot "uninstall-ocsentinel.ps1"
if (-not (Test-Path $newScript)) {
throw "Replacement script not found: $newScript"
}
if (Test-Path $installRoot) {
Remove-Item -LiteralPath $installRoot -Force -Recurse
}
Write-Host "OfficeCom Sentinel removed from $installRoot"
Write-Host "Compatibility wrapper: uninstall-attacktracer-ninja.ps1 -> uninstall-ocsentinel.ps1"
& powershell.exe -ExecutionPolicy Bypass -File $newScript @RemainingArgs
exit $LASTEXITCODE