Commands for installing doc-exec 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 combostrap.doc-exec -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id combostrap.doc-exec -e --silentwinget uninstall --id combostrap.doc-exec -e --silentBy installer
64-bit · MSI · Current user
Silent install
msiexec /i combostrap-doc-exec-1.1.0-jre-x64.msi /qn /norestartWrite a log
msiexec /i combostrap-doc-exec-1.1.0-jre-x64.msi /qn /norestart /l*v "%TEMP%\doc-exec-install.log"- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\doc-exec 1.1.0
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-doc-exec.ps1
$url = 'https://github.com/combostrap/doc-exec/releases/download/v1.1.0/combostrap-doc-exec-1.1.0-jre-x64.msi'
$sha256 = '499BD76B10C72C6958A1627FEAC5E4F212FC823F836046C3170A0FC9AD6EEB3B'
$file = Join-Path $env:TEMP 'combostrap-doc-exec-1.1.0-jre-x64.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