免互動安裝MSIX Core、解除安裝,以及在部署工具中偵測安裝狀態所用的指令。只列出確定可用的指令:來自資訊清單,或是安裝程式技術的官方預設參數。
相關教學: 靜默安裝參數總整理:MSI、NSIS、Inno Setup · 用登錄檔或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