免互動安裝Spellbook Associate、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id Spellbook.Associate -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Spellbook.Associate -e --silentwinget uninstall --id Spellbook.Associate -e --silent依安裝檔
64位元 · EXE(NSIS) · 僅目前使用者
靜默安裝
x64 /S自訂安裝資料夾
x64 /S /D=C:\Apps\spellbook-associate- 解除安裝登錄機碼
- HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\7483b9f7-7d2b-57c4-bdb7-9de1ecb37bbe
- 安裝資料夾
- %LocalAppData%\Programs\Spellbook Associate
64位元 · EXE(NSIS) · 所有使用者
靜默安裝
x64 /S自訂安裝資料夾
x64 /S /D=C:\Apps\spellbook-associate- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\7483b9f7-7d2b-57c4-bdb7-9de1ecb37bbe
- 安裝資料夾
- %ProgramFiles%\Spellbook Associate
64位元 · MSI
靜默安裝
msiexec /i x64 /qn /norestart寫入記錄檔
msiexec /i x64 /qn /norestart /l*v "%TEMP%\spellbook-associate-install.log"解除安裝
msiexec /x {008F90EB-9C0A-432C-BAD4-C1591A2F9983} /qn /norestart- MSI產品代碼
- {008F90EB-9C0A-432C-BAD4-C1591A2F9983}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{008F90EB-9C0A-432C-BAD4-C1591A2F9983}
- UpgradeCode
- {101E4011-8B8C-50B2-90AF-8BC0774E988F}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-spellbook-associate.ps1
$url = 'https://download.spellbook.legal/versions/0.0.14/windows/nsis/x64'
$sha256 = 'B9289B94747F8F4D23A59EB981EA6B28E644A5B98328377185220F63F1652A00'
$file = Join-Path $env:TEMP 'x64'
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-spellbook-associate.ps1
$url = 'https://download.spellbook.legal/versions/0.0.14/windows/nsis/x64'
$sha256 = 'B9289B94747F8F4D23A59EB981EA6B28E644A5B98328377185220F63F1652A00'
$file = Join-Path $env:TEMP 'x64'
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-spellbook-associate.ps1
$url = 'https://download.spellbook.legal/versions/0.0.14/windows/msi/x64'
$sha256 = '2ED9C879E20278A1E34F8D140C67C24476C6E847955C4F8BE915B4640799D479'
$file = Join-Path $env:TEMP 'x64'
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