免互動安裝Scribe、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id ColonyLabs.ScribeDesktopCapture -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id ColonyLabs.ScribeDesktopCapture -e --silentwinget uninstall --id ColonyLabs.ScribeDesktopCapture -e --silent依安裝檔
64位元 · MSI
靜默安裝
msiexec /i Scribe_6.10.20.msi /qn /norestart寫入記錄檔
msiexec /i Scribe_6.10.20.msi /qn /norestart /l*v "%TEMP%\scribe-install.log"解除安裝
msiexec /x {18AD6389-7A41-4F4D-9C01-2CF6D2F3D8C7} /qn /norestart- MSI產品代碼
- {18ad6389-7a41-4f4d-9c01-2cf6d2f3d8c7}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{18ad6389-7a41-4f4d-9c01-2cf6d2f3d8c7}
- UpgradeCode
- {351EF756-3AF5-4117-8697-53AB61427040}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-scribe.ps1
$url = 'https://colony-labs-public.s3.us-east-2.amazonaws.com/Scribe_6.10.20.msi'
$sha256 = '973D9C652C6F6F4D6B0DF3EBA266AB7896FA9646F5B876D182521C0777DF3B49'
$file = Join-Path $env:TEMP 'Scribe_6.10.20.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