SoftMaker Office 2021を確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id SoftMaker.Office.2021 -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id SoftMaker.Office.2021 -e --silentwinget uninstall --id SoftMaker.Office.2021 -e --silentインストーラー別
64ビット · MSI · en-US
サイレントインストール
msiexec /i ofw2021_64.msi /qn /norestartログを出力
msiexec /i ofw2021_64.msi /qn /norestart /l*v "%TEMP%\softmaker-office-2021-install.log"アンインストール
msiexec /x {2847114B-5344-4F64-8E22-44DCDFEA77EF} /qn /norestart- MSIプロダクトコード
- {2847114B-5344-4F64-8E22-44DCDFEA77EF}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2847114B-5344-4F64-8E22-44DCDFEA77EF}
32ビット · MSI · en-US
サイレントインストール
msiexec /i ofw2021_32.msi /qn /norestartログを出力
msiexec /i ofw2021_32.msi /qn /norestart /l*v "%TEMP%\softmaker-office-2021-install.log"アンインストール
msiexec /x {2847114B-5344-4F32-8E22-44DCDFEA77EF} /qn /norestart- MSIプロダクトコード
- {2847114B-5344-4F32-8E22-44DCDFEA77EF}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{2847114B-5344-4F32-8E22-44DCDFEA77EF}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-softmaker-office-2021.ps1
$url = 'https://www.softmaker.net/down/ofw2021_64.msi'
$sha256 = 'ECAA80263FB7D2049B962454194315A8C280B51D331A7D799B9DDF3C229FE2CA'
$file = Join-Path $env:TEMP 'ofw2021_64.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-softmaker-office-2021.ps1
$url = 'https://www.softmaker.net/down/ofw2021_32.msi'
$sha256 = '88B8DDA71329A128C3E815CAA74CC45FC463EDA8083D139F7966A3090578849C'
$file = Join-Path $env:TEMP 'ofw2021_32.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