KVM Virtio Drivers 0.1.171

This commit is contained in:
2020-05-10 15:53:10 +02:00
parent ed8301b088
commit 3df4853123
3 changed files with 32 additions and 26 deletions

View File

@ -1,13 +1,13 @@
# Virtio Drivers for Windows VMs running on KVM
# 2011-2017 foo.li systeme + software
# 2011-2020 foo.li systeme + software
# export installed redhat certificate to a file with win7
# $CertToExport = dir cert:\LocalMachine -Recurse | where {$_.ThumbPrint -eq "66ED6843B0F6DC9B636C6814E53A26983EF32B4E"}
# $CertToExportInBytesForCERFile = $CertToExport.export("Cert")
# [system.IO.file]::WriteAllBytes("C:\Temp\RedHat.cer", $CertToExportInBytesForCERFile)
$packageName = 'kvm-virtio-drivers'
$version = '0.1.141'
$version = '0.1.171'
$url = 'https://fedorapeople.org/groups/virt/virtio-win/direct-downloads/stable-virtio/virtio-win.iso'
$url64 = $url
$virtioPath = "$env:SystemDrive" + "\Virtio_" + $version
@ -16,7 +16,7 @@ $dpinst = Join-Path $scriptPath 'dpinstX86.exe'
$dpinst64 = Join-Path $scriptPath 'dpinstX64.exe'
$dpinstxml = Join-Path $scriptPath 'dpinst.xml'
$cleanupdrv = Join-Path $scriptPath 'cleanfolder.ps1'
$checksum = '43AEFA812C37342CFEFC48EC0DD7F1E56A930FCD'
$checksum = '4f37af23d97855caf37c534854bf008bbe2e8b74'
$checksumType = 'sha1'
$checksum64 = $checksum
$checksumType64 = $checksumType
@ -100,9 +100,10 @@ try {
Write-Host 'the driver wizard will still run for quiet some time.'
#Start-ChocolateyProcessAsAdmin -Statements "/q /se /sw /sa /path $virtioPath" -ExeToRun $dpinstaller
& $dpinstaller /S /SA /SE /SW /PATH $virtioPath
Write-Host '[INFO]: The Logfile for the driver installations is %windir%\DPINST.LOG'
Write-Host '[INFO]: The Logfile for the driver installations is %windir%\DPINST.LOG'
Write-Host '[INFO]: removing previous virtio-driver versions'
Remove-Item "${env:SystemDrive}\Virtio_0.1.126" -Force -Recurse -ErrorAction SilentlyContinue
Remove-Item "${env:SystemDrive}\Virtio_0.1.141" -Force -Recurse -ErrorAction SilentlyContinue
} catch {
throw $_.Exception
}

View File

@ -1,14 +1,14 @@
# Spice Guest Tools Removal
# 2017 foo.li systeme + software
# virtio windows drivers Removal
# 2017-2020 foo.li systeme + software
$packageName = 'kvm-virito-drivers'
$version = '0.1.126'
$version = '0.1.171'
$virtioPath = "$env:SystemDrive" + "\Virtio_" + $version
try {
if (Test-Path $virtioPath) {
Write-Host 'removing directory ' $virtioPath
Remove-Item $virtioPath -Recurse -Force
Remove-Item $virtioPath -Recurse -Force
} else {
Write-Host 'could not detect ' $virtioPath ' files.'
}