免互動安裝DBine、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id AddLayer.DBine -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id AddLayer.DBine -e --silentwinget uninstall --id AddLayer.DBine -e --silent依安裝檔
64位元 · EXE(NSIS) · 僅目前使用者
靜默安裝
DBine_1.7.2_x64-setup.exe /S自訂安裝資料夾
DBine_1.7.2_x64-setup.exe /S /D=C:\Apps\dbine- 解除安裝登錄機碼
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\DBine
- 安裝資料夾
- %LocalAppData%\DBine
64位元 · MSI · 所有使用者
靜默安裝
msiexec /i DBine_1.7.2_x64_en-US.msi /qn /norestart寫入記錄檔
msiexec /i DBine_1.7.2_x64_en-US.msi /qn /norestart /l*v "%TEMP%\dbine-install.log"解除安裝
msiexec /x {52214ABE-C1F3-42C4-B77F-C005C5825FA1} /qn /norestart- MSI產品代碼
- {52214ABE-C1F3-42C4-B77F-C005C5825FA1}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{52214ABE-C1F3-42C4-B77F-C005C5825FA1}
- UpgradeCode
- {2F919208-3148-582D-886D-2113E8BF292D}
- 安裝資料夾
- %ProgramFiles%\DBine
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-dbine.ps1
$url = 'https://github.com/addlayer-io/dbine/releases/download/v1.7.2/DBine_1.7.2_x64-setup.exe'
$sha256 = 'E2C374E84BA72425BAFB1D1045199E30DAA798CD836221E2DD069E3BE8D790B1'
$file = Join-Path $env:TEMP 'DBine_1.7.2_x64-setup.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-dbine.ps1
$url = 'https://github.com/addlayer-io/dbine/releases/download/v1.7.2/DBine_1.7.2_x64_en-US.msi'
$sha256 = '43764E8FF179BF9C85FC7BC3F34AA4E5D0B0744E7CDA301E6A671A4F823CBC16'
$file = Join-Path $env:TEMP 'DBine_1.7.2_x64_en-US.msi'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Start-Process msiexec.exe -ArgumentList '/i', ('"{0}"' -f $file), '/qn', '/norestart' -Wait