MSIX Coreを確認画面なしでインストール・アンインストールし、展開ツールで検出するためのコマンドです。マニフェストの記載か、インストーラー技術の既定値として確実なコマンドだけを表示しています。
関連ガイド: サイレントインストールのオプション一覧 · レジストリとPowerShellでアンインストールする方法
wingetを使う
PowerShell
winget install --id Microsoft.MSIXCore -e --silent --accept-package-agreements --accept-source-agreementswinget upgrade --id Microsoft.MSIXCore -e --silentwinget uninstall --id Microsoft.MSIXCore -e --silentインストーラー別
64ビット · ポータブル
インストール不要(ポータブル)
64ビット · MSI
サイレントインストール
msiexec /i msixmgrSetup-1.2.0.0-x64.msi /qn /norestartログを出力
msiexec /i msixmgrSetup-1.2.0.0-x64.msi /qn /norestart /l*v "%TEMP%\msix-core-install.log"アンインストール
msiexec /x {0367501D-F64E-47AE-9E78-4B5209B7D07A} /qn /norestart- MSIプロダクトコード
- {0367501D-F64E-47AE-9E78-4B5209B7D07A}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{0367501D-F64E-47AE-9E78-4B5209B7D07A}
32ビット · ポータブル
インストール不要(ポータブル)
32ビット · MSI
サイレントインストール
msiexec /i msixmgrSetup-1.2.0.0-x86.msi /qn /norestartログを出力
msiexec /i msixmgrSetup-1.2.0.0-x86.msi /qn /norestart /l*v "%TEMP%\msix-core-install.log"アンインストール
msiexec /x {F73185CA-0DE6-4B96-8FEE-3550DA5AAAB9} /qn /norestart- MSIプロダクトコード
- {F73185CA-0DE6-4B96-8FEE-3550DA5AAAB9}
- アンインストール用レジストリキー
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{F73185CA-0DE6-4B96-8FEE-3550DA5AAAB9}
PowerShell:ダウンロード・検証・インストール
公式ファイルをダウンロードし、SHA256を検証してからサイレントインストールします。
install-msix-core.ps1
$url = 'https://github.com/microsoft/msix-packaging/releases/download/MSIX-Core-1.2-release/msixmgrSetup-1.2.0.0-x64.msi'
$sha256 = 'BFB7CA37C3937E8AC37D2B92CD70456E18525096FC37A0C269026365DA2429D2'
$file = Join-Path $env:TEMP 'msixmgrSetup-1.2.0.0-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-msix-core.ps1
$url = 'https://github.com/microsoft/msix-packaging/releases/download/MSIX-Core-1.2-release/msixmgrSetup-1.2.0.0-x86.msi'
$sha256 = '5796D39A89DE20AA0B301724EE4BEB543C055554F8895F7A2D2B9323970CEF04'
$file = Join-Path $env:TEMP 'msixmgrSetup-1.2.0.0-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