Objective Redactを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリと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