免互動安裝Objective Redact、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或PowerShell解除安裝程式
使用winget
PowerShell
winget install --id Objective.Redact -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Objective.Redact -e --silentwinget uninstall --id Objective.Redact -e --silent依安裝檔
64位元 · MSI · 所有使用者
靜默安裝
msiexec /i Objective_Redact_x64.msi /qn /norestart寫入記錄檔
msiexec /i Objective_Redact_x64.msi /qn /norestart /l*v "%TEMP%\objective-redact-install.log"解除安裝
msiexec /x {9F378550-80C1-43B1-9A12-B9A1D4146681} /qn /norestart- MSI產品代碼
- {9F378550-80C1-43B1-9A12-B9A1D4146681}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{9F378550-80C1-43B1-9A12-B9A1D4146681}
- UpgradeCode
- {F1BE1862-608D-4AD0-B4BE-3EEFF3A0F103}
32位元 · MSI · 所有使用者
靜默安裝
msiexec /i Objective_Redact_x86.msi /qn /norestart寫入記錄檔
msiexec /i Objective_Redact_x86.msi /qn /norestart /l*v "%TEMP%\objective-redact-install.log"解除安裝
msiexec /x {E6E9AEEB-0686-4F97-A499-DB293FC7557B} /qn /norestart- MSI產品代碼
- {E6E9AEEB-0686-4F97-A499-DB293FC7557B}
- 解除安裝登錄機碼
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{E6E9AEEB-0686-4F97-A499-DB293FC7557B}
- UpgradeCode
- {F1BE1862-608D-4AD0-B4BE-3EEFF3A0F103}
PowerShell:下載、驗證、安裝
下載官方檔案,驗證SHA256後靜默安裝。
install-objective-redact.ps1
$url = 'https://s3-ap-southeast-2.amazonaws.com/redactdownload.objective.com/Objective_Redact_x64.msi'
$sha256 = '057FA90AD44C8C97BAB3CBF180475DE2F48AA82B5753C61AF8EB3299CB63C189'
$file = Join-Path $env:TEMP 'Objective_Redact_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-objective-redact.ps1
$url = 'https://s3-ap-southeast-2.amazonaws.com/redactdownload.objective.com/Objective_Redact_x86.msi'
$sha256 = '55E7AD68DA74921A952D5B903374A45B4AAF3270704529060ED7A5185EA43AF8'
$file = Join-Path $env:TEMP 'Objective_Redact_x86.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