MobiOfficeを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id MobiSystems.MobiOffice -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id MobiSystems.MobiOffice -e --silentwinget uninstall --id MobiSystems.MobiOffice -e --silentインストーラー別
64ビット · MSIX
サイレントインストール
Add-AppxPackage -Path MobiOffice.Package_11.90.18512.0_x64.msixbundleアンインストール
Get-AppxPackage -Name MobiSystems.MobiOffice | Remove-AppxPackagePowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-mobioffice.ps1
$url = 'https://cfg.mobisystems.com/update/com.mobisystems.windows.appx.mobioffice/11.90.18512/full/MobiOffice.Package_11.90.18512.0_x64.msixbundle'
$sha256 = 'FD2D5D60582E8693B5472AA53958D6B69B5042BB46C1E6E981175E81A6E192D1'
$file = Join-Path $env:TEMP 'MobiOffice.Package_11.90.18512.0_x64.msixbundle'
Invoke-WebRequest -Uri $url -OutFile $file -UseBasicParsing
if ((Get-FileHash $file -Algorithm SHA256).Hash -ne $sha256) { throw 'SHA256 mismatch' }
Add-AppxPackage -Path $file