免互動安裝Comodo Dragon、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id Comodo.ComodoDragon -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Comodo.ComodoDragon -e --silentwinget uninstall --id Comodo.ComodoDragon -e --silent依安裝檔
64位元 · EXE(NSIS) · 所有使用者 · en-US
靜默安裝
dragonsetup.exe /S自訂安裝資料夾
dragonsetup.exe /S /D=C:\Apps\comodo-dragon- 安裝資料夾
- %ProgramFiles%\Comodo\Dragon
32位元 · EXE(NSIS) · 所有使用者 · en-US
靜默安裝
dragonsetup.exe /S自訂安裝資料夾
dragonsetup.exe /S /D=C:\Apps\comodo-dragon- 安裝資料夾
- %ProgramFiles(x86)%\Comodo\Dragon
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-comodo-dragon.ps1
$url = 'https://cdn.download.comodo.com/browser/release/dragon/x64/dragonsetup.exe'
$sha256 = 'E1A025E88AAB06EE49789A3A568B50C87647C072206B3F336CE905223EDDD549'
$file = Join-Path $env:TEMP 'dragonsetup.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-comodo-dragon.ps1
$url = 'https://cdn.download.comodo.com/browser/release/dragon/x86/dragonsetup.exe'
$sha256 = 'A9A2F47B0BE3E61B575DFB2A9AD4C4427BD9406AC0EDCE05E4913A1FFF5D1C52'
$file = Join-Path $env:TEMP 'dragonsetup.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