chocolatey/packages/kvm-virtio-drivers/tools/chocolateyuninstall.ps1
2021-12-30 13:39:23 +01:00

19 lines
536 B
PowerShell
Executable File

# virtio windows drivers Removal
# 2017-2021 foo.li systeme + software
$packageName = 'kvm-virito-drivers'
$version = '0.1.208'
$virtioPath = "$env:SystemDrive" + "\Virtio_" + $version
try {
if (Test-Path $virtioPath) {
Write-Host 'removing directory ' $virtioPath
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
}