Feb 08 2021 04:20 PM - edited Mar 18 2021 04:43 PM
Note: The CIM functionality is currently under development. Please do not use in production environments.
This article is an overview of how to use the MSIXMGR tool and its usage in MSIX app attach. MSIXMGR takes an MSIX packaged application (.MSIX) and expands it into an MSIX image (VHD or VHDX). That resulting MSIX image (.VHD(x)) is what we upload to a storage account using WVD MSIX app attach.
To successfully complete the steps in this article please confirm the following steps:
Note: MSIXMGR can also create CIM files but those can only be used on Windows 10 20H2. This is something we are working to address.
Expansion is the process of taking an MSIX packaged application (.MSIX) and unzipping it into an MSIX image (.VHD(x) or .CIM file).
These are the steps to perform expansion:
msixmgr.exe -Unpack -packagePath <path to package> -destination <output folder> [-applyacls] [-create] [-vhdSize <size in MB>] [-filetype <CIM | VHD | VHDX>] [-rootDirectory <rootDirectory>]
For example,
msixmgr.exe -Unpack -packagePath "C:\Users\ssa\Desktop\FileZillaChanged_3.51.1.0_x64__81q6ced8g4aa0.msix" -destination "c:\temp\FileZillaChanged.vhdx" -applyacls -create -vhdSize 200 -filetype "vhdx" -rootDirectory apps
Note: The same command can be used to generate CIM and VHD by replacing the filetype and destination path.
msixmgr.exe -Unpack -packagePath "C:\Users\ssa\Desktop\FileZillaChanged_3.51.1.0_x64__81q6ced8g4aa0.msix" -destination "c:\temp\FileZillaChanged.cim" -applyacls -create -vhdSize 200 -filetype "cim" -rootDirectory apps
msixmgr.exe -Unpack -packagePath "C:\Users\ssa\Desktop\FileZillaChanged_3.51.1.0_x64__81q6ced8g4aa0.msix" -destination "c:\temp\FileZillaChanged.vhdx" -applyacls -create -vhdSize 200 -filetype "vhdx" -rootDirectory apps
Feb 10 2021 03:09 AM
@Stefan Georgiev Please provide support or example of using PowerShell. My quick dirty test failed, no error, just a GUID folder in the msixmgr\x64 path. I want to loop through all my MSIX pacakges.
Clear-Host
$MSIXMGR = "C:\msixmgr\x64"
$MSIXPath = "C:\MSIX1"
$CimFS = "C:\CimFS"
$PackageName = "NotepadPlusPlus_7.9.1.0_x64"
If (!(Test-Path -Path $CimFS\$PackageName)) {New-Item -ItemType directory -Path $CimFS\$PackageName | Out-Null}
CD $MSIXMGR
.\msixmgr.exe -Unpack -packagePath "$MSIXPath\$PackageName.msix" -destination "$CimFS\$PackageName\$PackageName.cim" -applyacls -create -vhdSize 200 -filetype "cim" -rootDirectory apps
Feb 17 2021 09:23 AM
May 03 2021 10:56 PM
May 06 2021 06:00 AM
May 07 2021 04:56 AM
Jun 07 2021 04:44 AM