Creating MSIX App Attach Disks

Different ways to create MSIX App Attach Disks.

In this blog, we are going to see the different ways to create MSIX App Attach Disks from MSIX package.The two available options are

  1. Using msixmgr Tool

In this approach, you need to follow the below steps

  • Create the VHD file
  • Initialize the VHD disk
  • Format the VHD disk
  • Create an empty folder inside the VHD
  • Use MSIXMgr command to unzip the MSIX and store the files in MSIX AppAttach disk
  1. Using the MSIX Hero 🙂

This is a cool community tool created by Marcin Otorowski. It does all the trick by itself. Will create a disk, size it as per the package requirement and unzip the MSIX package in a single click.

Create the disk using MSIXMgr Tool

The first step is to create a blank VHD to save the MSIX package.

Open disk management and Under Action, select Create VHD

Machine generated alternative text:
Disk Management 
File Action View Help 
Volur 
Refresh 
Rescan Disks 
Create VHD 
Attach VHD 
All Tasks 
Help 
File S 
NTFS 
NTFS 
em 
Status 
Healthy 
Healthy (P.„ 
Ca ac- 
80.00 
50.00
  • Provide a name and location where you want to save your VHD file.
  • Provide the size for the VHD file, make sure you select adequate space considering the MSIX package size. It has been observed that the MSIX will grow to 1.5x times or more when unpacked as a MSIX App Attach disk.
  • Select the disk type as “dynamic”
「 , , and A , Virtual Hard 0 
' u hard "forrnä 
OVHD 
512s 
, t , 、 u d , 3t0230G8h 
Ⅳ 昍 X 
0 、 , d , 丨 , ; , 5230G8h , 
ma , , 1 TB ) , sr , , | 090* f , , " , , for 
, op 妒 , , , 、 Mm , 3 
WndowsServer2012. 
Vrtudharddütype 
vitualharddskiscre&ed
  • Once the disk is created, Initialize the disk from disk manager.
Machine generated alternative text:
'Omsk 2 
Unknown 
512 MB 
Not Initialized 
512 MB 
Initialize Disk 
Offline 
Detach VHD 
Properties 
Help 
Unallocated Primary partition
  • Create a “New simple volume” and format the disk.
511 MB 
Unallocated Primary 
New Simple 
New Spanned Volume.„ 
New Striped Volume„. 
New Mirrored Volume.„ 
New RAID- 5 Volume. 
Help
  • You can format the disk as NTFS File system
NewSimpleVolumeWizard 
O%ablefiemdfolderconvression 
p ; quickfomat
  • Once the disk is ready, create an empty folder in the Drive. I am going to unpack “Notepad++” package, hence created a folder named NotepadPlus.
Machine generated alternative text:
Notepadplus (E:) 
File 
Home 
Share View 
Drive Tools 
Manage 
ThisPC Notepadplus (E) 
Name 
NotepadPlus 
* Quick access 
Deshop 
Downloads 
Documents 
[e Pictures 
This pc 
Network 
Date modified 
3/7/2021 12:20 PM 
Type 
File fo

Download the MSIXMgr tool from Microsoft website. https://aka.ms/msixmgr

Run the below mentioned command to unpack the MSIX package to MSIX App Attach disk.

Msixmgr.exe -unpack -packagepath “<location of MSIX package” -destination “<driveletter of the disk you attached\folder created\”
Machine generated alternative text:
Select Windows PowerShell 
c age. T WI 
require t at t e pac age s certificate 1 nstalle on t e mac I ne. 
-vhdSize: the desired size of the VHD or VHDX file in MB. Must be between 5 and 2040000 MB. Use only for 
VHD or VHDX files 
PS D: users hama a r am\Down oa s \rnslxmgr . xmslxmgr.exe - unpackä - p.ac»ä.agep.arn D: \Users lama 
r am\Down oa s xmslx- 
hero-2. O. 68.0.msix -desti nation 
Finis 
PS 
unpac Ing pac ages to: E: \Notepa P us \

The time taken to unpack depends on the MSIX package size. Once done, the result will be shown like “Finished unpackaging packages to <drive\folder\>”

You can verify the same by opening the folder you created earlier. The unzipped files will be created under a folder like shown below.

Machine generated alternative text:
File 
Home 
NotepadPlus 
Share View 
This PC Notepadplus(E:) NotepadPlus 
v Search NotepadP11 
* Quick access 
Deshop 
Downloads 
Documents 
Pictures 
Name 
da 1 qqbeze 
Date modified 
3/7/2021 12:20 PM 
Type 
File folder

Using MSIX Hero

Install MSIX Hero from https://msixhero.net website

Open the software and click on “MSIX App Attach” icon

Select the MSIX package, and Click on Create to create the VHD file.Leave the VHD size option as default. MSIX hero will auto calculate the required disk size and create the disk.

You can also create the powershell scripts required to stage, register the MSIX App Attach manually

Next blog, I will write about attaching an MSIX App Attach package to session hosts.

3 thoughts on “Creating MSIX App Attach Disks

Leave a comment