Commands for installing CoDock 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 juejijianghuaa.CoDock -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id juejijianghuaa.CoDock -e --silentwinget uninstall --id juejijianghuaa.CoDock -e --silentBy installer
64-bit · EXE (Inno Setup) · All users
Silent install
CoDock-Setup-0.6.7-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-Custom folder
CoDock-Setup-0.6.7-x64.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /DIR="C:\Apps\codock"- Uninstall registry key
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{8E8F8A6A-0D5B-4B0D-9FC5-7D61A9B5E4D2}_is1
- Install folder
- %ProgramFiles%\CoDock
PowerShell: download, verify, install
Downloads the official file, checks its SHA256 and installs it silently.
install-codock.ps1
$url = 'https://github.com/juejijianghuaa/CoDock-Release/releases/download/v0.6.7/CoDock-Setup-0.6.7-x64.exe'
$sha256 = '766EF34F4E0776DFCBE949963AD3BAB87CC7B16C6C2C5660E78E6C234760B6CD'
$file = Join-Path $env:TEMP 'CoDock-Setup-0.6.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 '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-' -Wait