chocolatey/packages/vdos/tools/chocolateyuninstall.ps1

18 lines
393 B
PowerShell
Raw Normal View History

2018-04-19 15:09:51 +02:00
# vDOS Removal
2022-07-31 21:43:07 +02:00
# 2011-2022 foo.li systeme + software
2018-04-19 15:09:51 +02:00
$packageName = 'vdos'
2022-07-31 21:43:07 +02:00
$version = '2022.05.01'
2020-05-10 16:21:44 +02:00
$vdosPath = "$env:SystemDrive" + "\vDos"
2018-04-19 15:09:51 +02:00
try {
if (Test-Path $vdosPath) {
Write-Host 'removing directory ' $vdosPath
2020-05-10 16:21:44 +02:00
Remove-Item $vdosPath -Recurse -Force
2018-04-19 15:09:51 +02:00
} else {
Write-Host 'could not detect ' $vdosPath ' files.'
}
} catch {
throw $_.Exception
2020-05-10 16:21:44 +02:00
}