免互動安裝dotsider、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id willibrandon.dotsider -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id willibrandon.dotsider -e --silentwinget uninstall --id willibrandon.dotsider -e --silent依安裝檔
64位元 · MSI · 所有使用者
靜默安裝
msiexec /i dotsider-win-x64.msi /qn /norestart寫入記錄檔
msiexec /i dotsider-win-x64.msi /qn /norestart /l*v "%TEMP%\dotsider-install.log"解除安裝
msiexec /x {E7CA4D3A-FE0A-4FCA-A1B1-ADEFAF7F0A7D} /qn /norestart- MSI產品代碼
- {E7CA4D3A-FE0A-4FCA-A1B1-ADEFAF7F0A7D}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{E7CA4D3A-FE0A-4FCA-A1B1-ADEFAF7F0A7D}
ARM64 · MSI · 所有使用者
靜默安裝
msiexec /i dotsider-win-arm64.msi /qn /norestart寫入記錄檔
msiexec /i dotsider-win-arm64.msi /qn /norestart /l*v "%TEMP%\dotsider-install.log"解除安裝
msiexec /x {0F46A888-CC65-4DE0-8D12-D1409DC11B99} /qn /norestart- MSI產品代碼
- {0F46A888-CC65-4DE0-8D12-D1409DC11B99}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{0F46A888-CC65-4DE0-8D12-D1409DC11B99}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-dotsider.ps1
$url = 'https://github.com/willibrandon/dotsider/releases/download/v0.26.4/dotsider-win-x64.msi'
$sha256 = 'BE5C01A13B88DCC7D7630B72A9968FAC151D5A3B3924D28F183B26530A1CBF50'
$file = Join-Path $env:TEMP 'dotsider-win-x64.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 install-dotsider.ps1
$url = 'https://github.com/willibrandon/dotsider/releases/download/v0.26.4/dotsider-win-arm64.msi'
$sha256 = 'BD719B89089D0A5071F76B32394EF5BFEC953BE87946BF3604F407E781E8709F'
$file = Join-Path $env:TEMP 'dotsider-win-arm64.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