Commands for installing openMSX 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 openMSX.openMSX -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id openMSX.openMSX -e --silentwinget uninstall --id openMSX.openMSX -e --silentBy installer
64-bit · ZIP · en-US
Silent install
msiexec /i openmsx-21.0-windows-vc-x64-bin-msi.zip /qn /norestartUninstall
msiexec /x {4473C329-D161-418D-89FE-A0C335AC51DB} /qn /norestart- MSI product code
- {4473C329-D161-418D-89FE-A0C335AC51DB}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{4473C329-D161-418D-89FE-A0C335AC51DB}
64-bit · ZIP · en-US
No installation needed (portable)
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-openmsx.ps1
$url = 'https://github.com/openMSX/openMSX/releases/download/RELEASE_21_0/openmsx-21.0-windows-vc-x64-bin-msi.zip'
$sha256 = '47B002BE2D9B6F9856DAF99CA71D474334BCE0DD107C7A01F1A8A1A0A02D715F'
$file = Join-Path $env:TEMP 'openmsx-21.0-windows-vc-x64-bin-msi.zip'
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