Commands for installing mdview 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 c3er.mdview -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id c3er.mdview -e --silentwinget uninstall --id c3er.mdview -e --silentBy installer
64-bit · EXE (NSIS) · Current user · en-US
Silent install
mdview-4.0.2-x64.exe /SCustom folder
mdview-4.0.2-x64.exe /S /D=C:\Apps\mdview- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\5b801eee-e08b-5a78-ad6d-035aa8635464
64-bit · EXE (NSIS) · All users · en-US
Silent install
mdview-4.0.2-x64.exe /SCustom folder
mdview-4.0.2-x64.exe /S /D=C:\Apps\mdview- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\5b801eee-e08b-5a78-ad6d-035aa8635464
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-mdview.ps1
$url = 'https://github.com/c3er/mdview/releases/download/v4.0.2/mdview-4.0.2-x64.exe'
$sha256 = '9569A1C3B9238A49675514176CA7D0E0FD8D2C02C6A8E7B28E6EA4A012E579BD'
$file = Join-Path $env:TEMP 'mdview-4.0.2-x64.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait install-mdview.ps1
$url = 'https://github.com/c3er/mdview/releases/download/v4.0.2/mdview-4.0.2-x64.exe'
$sha256 = '9569A1C3B9238A49675514176CA7D0E0FD8D2C02C6A8E7B28E6EA4A012E579BD'
$file = Join-Path $env:TEMP 'mdview-4.0.2-x64.exe'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process -FilePath $file -ArgumentList '/S' -Wait