用于免交互安装DCode、卸载以及在部署工具中检测安装状态的命令。只列出确定可用的命令:来自清单文件,或来自安装程序技术的官方默认参数。
相关教程: 静默安装参数大全:MSI、NSIS、Inno Setup · 用注册表或PowerShell卸载程序
使用winget
PowerShell
winget install --id DigitalDetective.DCode -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id DigitalDetective.DCode -e --silentwinget uninstall --id DigitalDetective.DCode -e --silent按安装包
32位 · ZIP · 所有用户
静默安装
download.php /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-- 卸载注册表项
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\60be5924-eb64-4fde-8b89-de99fcba8167_is1
- 安装目录
- C:\Program Files (x86)\Digital Detective\DCode v5
PowerShell:下载、校验、安装
下载官方文件,校验SHA256后静默安装。
install-dcode.ps1
$url = 'https://www.digital-detective.net/download/download.php?downcode=ae2znu5994j1lforlh03'
$sha256 = 'BE3383C8C37AF8A8E2978011009D8BB3041C294EEDA0EC8424341C8CEC2E064F'
$file = Join-Path $env:TEMP 'download.php'
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