2018-04-19 15:09:51 +02:00
|
|
|
# vDOS Removal
|
2020-05-10 16:21:44 +02:00
|
|
|
# 2011-2020 foo.li systeme + software
|
2018-04-19 15:09:51 +02:00
|
|
|
|
|
|
|
$packageName = 'vdos'
|
2020-05-10 16:21:44 +02:00
|
|
|
$version = '2020.03.01'
|
|
|
|
$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
|
|
|
}
|