Commands for installing msi2xml 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 DanielGehriger.MSI2XML -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id DanielGehriger.MSI2XML -e --silentwinget uninstall --id DanielGehriger.MSI2XML -e --silentBy installer
32-bit · MSI · All users · en-US
Silent install
msiexec /i download /qn /norestartWrite a log
msiexec /i download /qn /norestart /l*v "%TEMP%\msi2xml-install.log"Uninstall
msiexec /x {093801C4-C2CC-441C-AA88-A9A6DDBD42E1} /qn /norestart- MSI product code
- {093801C4-C2CC-441C-AA88-A9A6DDBD42E1}
- Uninstall registry key
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{093801C4-C2CC-441C-AA88-A9A6DDBD42E1}
- UpgradeCode
- {CEB3E401-0801-4D1D-BD9F-2823B98CB297}
- Install folder
- %ProgramFiles(x86)%\msi2xml
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-msi2xml.ps1
$url = 'https://sourceforge.net/projects/msi2xml/files/msi2xml/2.2.1/msi2xml-2.2.1.957.msi/download'
$sha256 = '69C9703A6359FB3FB51005652484977AB1746A64D1CE0548E5EEBFBCB450CE22'
$file = Join-Path $env:TEMP 'download'
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