chocolatey/packages/kvm-virtio-drivers/tools/chocolateyuninstall.ps1

19 lines
536 B
PowerShell
Raw Normal View History

2020-05-10 15:53:10 +02:00
# virtio windows drivers Removal
# 2017-2020 foo.li systeme + software
$packageName = 'kvm-virito-drivers'
2020-05-10 15:53:10 +02:00
$version = '0.1.171'
$virtioPath = "$env:SystemDrive" + "\Virtio_" + $version
try {
if (Test-Path $virtioPath) {
Write-Host 'removing directory ' $virtioPath
2020-05-10 15:53:10 +02:00
Remove-Item $virtioPath -Recurse -Force
} else {
Write-Host 'could not detect ' $virtioPath ' files.'
}
Write-Host '[NOTE]: this does not remove any installed drivers, just the sourcefiles.'
} catch {
throw $_.Exception
}