# Lexor — uninstaller. $AddinId = 'a866cdd6-2c66-4a8f-92f1-03cbbf93fb0b' $DevKey = 'HKCU:\Software\Microsoft\Office\16.0\WEF\Developer' $Dir = Join-Path $env:LOCALAPPDATA 'Lexor' Write-Host '' Write-Host ' Odinstalowanie Lexor...' -ForegroundColor Cyan try { if (Test-Path $DevKey) { Remove-ItemProperty -Path $DevKey -Name $AddinId -ErrorAction SilentlyContinue } if (Test-Path $Dir) { Remove-Item -Recurse -Force $Dir -ErrorAction SilentlyContinue } Write-Host ' Usunieto. Zrestartuj Worda.' -ForegroundColor Green Write-Host '' } catch { Write-Host (' Blad: ' + $_.Exception.Message) -ForegroundColor Red }