Commands for installing VirtViewer without prompts, removing it again and detecting it from deployment tools. A command is shown only when it is certain: from the manifest or the installer technology’s documented default.
Related guide: Silent install switches: MSI, NSIS, Inno Setup · Uninstall a program with the registry or PowerShell
With winget
PowerShell
winget install --id RedHat.VirtViewer -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id RedHat.VirtViewer -e --silentwinget uninstall --id RedHat.VirtViewer -e --silentBy installer
64-bit · MSI · All users · en-US
Silent install
msiexec /i virt-viewer-x64-11.0-1.0.msi /qn /norestartWrite a log
msiexec /i virt-viewer-x64-11.0-1.0.msi /qn /norestart /l*v "%TEMP%\virtviewer-install.log"Uninstall
msiexec /x {4446F5FE-F6AD-4B4B-998C-825440ABD586} /qn /norestart- MSI product code
- {4446F5FE-F6AD-4B4B-998C-825440ABD586}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{4446F5FE-F6AD-4B4B-998C-825440ABD586}
32-bit · MSI · All users · en-US
Silent install
msiexec /i virt-viewer-x86-11.0-1.0.msi /qn /norestartWrite a log
msiexec /i virt-viewer-x86-11.0-1.0.msi /qn /norestart /l*v "%TEMP%\virtviewer-install.log"Uninstall
msiexec /x {13C95F28-8182-47AD-8F6D-63A1CD710530} /qn /norestart- MSI product code
- {13C95F28-8182-47AD-8F6D-63A1CD710530}
- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{13C95F28-8182-47AD-8F6D-63A1CD710530}
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-virtviewer.ps1
$url = 'https://gitlab.com/virt-viewer/virt-viewer/-/releases/v11.0/downloads/virt-viewer-x64-11.0-1.0.msi'
$sha256 = 'B7DE0474E97FE1E81101F2406FCF603FE08666BCB3816C3C465C8D64330BE610'
$file = Join-Path $env:TEMP 'virt-viewer-x64-11.0-1.0.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait install-virtviewer.ps1
$url = 'https://gitlab.com/virt-viewer/virt-viewer/-/releases/v11.0/downloads/virt-viewer-x86-11.0-1.0.msi'
$sha256 = '85C75602C02A28F57E3837B9B00EAF356CC45FB9B1ED2245B1E018A1222E5052'
$file = Join-Path $env:TEMP 'virt-viewer-x86-11.0-1.0.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait