Commands for installing Dcode 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 ningbainb.Dcode -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ningbainb.Dcode -e --silentwinget uninstall --id ningbainb.Dcode -e --silentBy installer
64-bit · EXE (NSIS) · Current user
Silent install
Dcode-Setup-0.2.7-x64.exe /SCustom folder
Dcode-Setup-0.2.7-x64.exe /S /D=C:\Apps\ningbainb-dcode- Uninstall registry key
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\227973e9-f3b2-543b-8fb7-de6932566625
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-ningbainb-dcode.ps1
$url = 'https://github.com/ningbainb/Dcode/releases/download/v0.2.7/Dcode-Setup-0.2.7-x64.exe'
$sha256 = '8723CF1749CF3B6E52FAFAA3D0901B2C886CEB8CB68C801E7DEF725D30EB7D5A'
$file = Join-Path $env:TEMP 'Dcode-Setup-0.2.7-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