Commands for installing Wasmtime 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 BytecodeAlliance.Wasmtime -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id BytecodeAlliance.Wasmtime -e --silentwinget uninstall --id BytecodeAlliance.Wasmtime -e --silentBy installer
64-bit · MSI
Silent install
msiexec /i wasmtime-v51.0.0-x86_64-windows.msi /qn /norestartWrite a log
msiexec /i wasmtime-v51.0.0-x86_64-windows.msi /qn /norestart /l*v "%TEMP%\wasmtime-install.log"Uninstall
msiexec /x {5E9941A8-EEAE-4D1D-8091-370B0C48BB12} /qn /norestart- MSI product code
- {5E9941A8-EEAE-4D1D-8091-370B0C48BB12}
- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{5E9941A8-EEAE-4D1D-8091-370B0C48BB12}
- UpgradeCode
- {A00EBA3C-5C90-42DA-8176-3D46447D2211}
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-wasmtime.ps1
$url = 'https://github.com/bytecodealliance/wasmtime/releases/download/v51.0.0/wasmtime-v51.0.0-x86_64-windows.msi'
$sha256 = '8E9AC72A07E5C857D91B4BBE2E10F91F556087A2857E28484B798BDA2643CF57'
$file = Join-Path $env:TEMP 'wasmtime-v51.0.0-x86_64-windows.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