免互動安裝Rebased、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id detachhead.rebased -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id detachhead.rebased -e --silentwinget uninstall --id detachhead.rebased -e --silent依安裝檔
64位元 · EXE(NSIS) · 所有使用者 · en-US
靜默安裝
rebased.exe /S自訂安裝資料夾
rebased.exe /S /D=C:\Apps\rebased- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Rebased 1.1.22
- 安裝資料夾
- %ProgramFiles%\detachhead\Rebased
- DisplayVersion
- 1.1.22
ARM64 · EXE(NSIS) · 所有使用者 · en-US
靜默安裝
rebased-aarch64.exe /S自訂安裝資料夾
rebased-aarch64.exe /S /D=C:\Apps\rebased- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Rebased 1.1.22
- 安裝資料夾
- %ProgramFiles%\detachhead\Rebased
- DisplayVersion
- 1.1.22
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-rebased.ps1
$url = 'https://github.com/DetachHead/rebased/releases/download/1.1.22/rebased.exe'
$sha256 = '05B9F87F577F313B58BD663A709BA4AAA179F8947648936513FF17B8B02FFE31'
$file = Join-Path $env:TEMP 'rebased.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-rebased.ps1
$url = 'https://github.com/DetachHead/rebased/releases/download/1.1.22/rebased-aarch64.exe'
$sha256 = '22BBA20833AE48570CDF8197C24B9293ACA95933EB8FD300C867B3A9A85FEF26'
$file = Join-Path $env:TEMP 'rebased-aarch64.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