Forum Discussion
Stefan Georgiev
Feb 09, 2021Iron Contributor
Simplify MSIX image creation with the MSIXMGR tool
Simplify MSIX image creation with the MSIXMGR tool
Note: The CIM functionality is currently under development. Please do not use in production environments.
This article is an overvie...
xenappblog
Feb 10, 2021Copper Contributor
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
Stefan Georgiev
Feb 17, 2021Iron Contributor
I pretty much ran your script with my variables and worked as expected. I started my PowerShell in admin mode that is required since MSIXMGR needs to manipulate drive.
$MSIXMGR = "C:\Users\ssa\Downloads\msixmgr\x64"
$MSIXPath = "C:\Users\ssa\Desktop\"
$CimFS = "C:\temp\date"
$PackageName = "GPUZ_1.0.1.0_x64__74vyvr5aw93s6"
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
$MSIXMGR = "C:\Users\ssa\Downloads\msixmgr\x64"
$MSIXPath = "C:\Users\ssa\Desktop\"
$CimFS = "C:\temp\date"
$PackageName = "GPUZ_1.0.1.0_x64__74vyvr5aw93s6"
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