Ordres per instal·lar MSIX Core sense preguntes, desinstal·lar-lo i detectar-lo des d’eines de desplegament. Només es mostra una ordre quan és segura: la que indica el manifest o el valor per defecte documentat de la tecnologia de l’instal·lador.
Guia relacionada: Instal·lació silenciosa: MSI, NSIS, Inno Setup · Desinstal·lar un programa amb el registre o PowerShell
Amb 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 --silentPer instal·lador
64 bits · Portable
No cal instal·lar-lo (portable)
64 bits · MSI
Instal·lació silenciosa
msiexec /i msixmgrSetup-1.2.0.0-x64.msi /qn /norestartDesar un registre
msiexec /i msixmgrSetup-1.2.0.0-x64.msi /qn /norestart /l*v "%TEMP%\msix-core-install.log"Desinstal·lar
msiexec /x {0367501D-F64E-47AE-9E78-4B5209B7D07A} /qn /norestart- Codi de producte MSI
- {0367501D-F64E-47AE-9E78-4B5209B7D07A}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{0367501D-F64E-47AE-9E78-4B5209B7D07A}
32 bits · Portable
No cal instal·lar-lo (portable)
32 bits · MSI
Instal·lació silenciosa
msiexec /i msixmgrSetup-1.2.0.0-x86.msi /qn /norestartDesar un registre
msiexec /i msixmgrSetup-1.2.0.0-x86.msi /qn /norestart /l*v "%TEMP%\msix-core-install.log"Desinstal·lar
msiexec /x {F73185CA-0DE6-4B96-8FEE-3550DA5AAAB9} /qn /norestart- Codi de producte MSI
- {F73185CA-0DE6-4B96-8FEE-3550DA5AAAB9}
- Clau de desinstal·lació al registre
- HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{F73185CA-0DE6-4B96-8FEE-3550DA5AAAB9}
PowerShell: baixar, verificar, instal·lar
Baixa el fitxer oficial, en comprova l’SHA256 i l’instal·la en mode silenciós.
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