You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# For more information, see https://review.learn.microsoft.com/en-us/help/platform/learn-editor-add-metadata?branch=main
4
-
# For valid values of ms.service, ms.prod, and ms.topic, see https://review.learn.microsoft.com/en-us/help/platform/metadata-taxonomies?branch=main
5
-
6
-
title: MSIXMGR tool parameters
7
-
titleSuffix: Azure
8
-
description: This article contains an overview of the command-line syntax to help you understand and get the most from the MSIXMGR Tool. In this documentation, we’ll expand the syntax of all the parameters used by the MSIXMGR tool.
description: This article contains the command line syntax to help you understand and get the most from the MSIXMGR tool. In this article, we'll show you the syntax of all the parameters used by the MSIXMGR tool.
4
+
author: fiza-microsoft
5
+
ms.author: fizaazmi
6
+
ms.topic: concept-article
7
+
ms.date: 03/21/2023
14
8
---
15
9
16
10
# MSIXMGR Tool parameters
17
11
18
-
19
-
This article contains an overview of the command-line syntax to help you understand and get the most from the MSIXMGR Tool. In this documentation, we expand the syntax of all the parameters used by the MSIXMGR tool.
12
+
This article contains the command line syntax to help you understand and get the most from the MSIXMGR tool. In this article, we'll show you the syntax of all the parameters used by the MSIXMGR tool.
20
13
21
14
## Prerequisites:
22
15
@@ -27,124 +20,146 @@ Before you can follow the instructions in this article, you'll need to do the fo
27
20
- Get administrative permissions on the machine where you'll create the MSIX image
28
21
-[Set up MSIXMGR tool](/azure/virtual-desktop/app-attach-msixmgr)
29
22
30
-
## Syntax
23
+
## Parameters
24
+
25
+
### -AddPackage or -p
31
26
32
-
27
+
Add the package at specified file path.
33
28
34
-
**-AddPackage or -p**
35
-
Adds package at specified file path
36
-
Example:
37
-
-AddPackage [path to the MSIX package][optional arguments]
|-QuietUX|Uninstalls MSIX package silently, without any user interaction|`msixmgr.exe -RemovePackage notepadplus_0.0.0.1_x64__8wekyb3d8bbwe msix `-QuietUX |
|-imagePath|Specifies path to image file to mount or unmount|`msixmgr.exe -MountImage -imagePath "C:\Users\User\abc\xyz.cim"`|
98
-
|-filetype |Specifies type of file to mount or unmount. The following file types are currently supported: {VHD, VHDX, CIM}|`msixmgr.exe -MountImage -imagePath "C:\Users\User\abc\xyz.cim" -filetype "cim" `|
99
-
|-readOnly|Boolean (true of false) indicating whether a VHD(X) should be mounted as read only. If not specified, the image is mounted as read-only by default |`msixmgr.exe -MountImage -imagePath "C:\Users\User\abc\xyz.cim" -filetype "cim" -readOnly false`|
97
+
|-readOnly|Boolean (true of false) indicating whether a VHD(X) should be mounted as read only. If not specified, the image is mounted as read-only by default. |`msixmgr.exe -MountImage -imagePath "C:\SomeDirectory\myapp.cim" -filetype CIM -readOnly false`|
100
98
99
+
### -quietUX
101
100
101
+
Quiet mode, no user interaction. Use in conjunction with other parameters.
|-imagePath|Specifies path to image file to mount or unmount |`msixmgr.exe -UnmountImage -imagePath C:\Users\User\abc\xyz.cim`|
119
-
|-filetype |Specifies type of file to mount or unmount. The following file types are currently supported: {VHD, VHDX, CIM} |`msixmgr.exe -UnmountImage -imagePath C:\Users\User\abc\xyz.cim -filetype “cim”```|
120
-
|-volumeid|Specifies GUID (specified without curly braces) associated with image to unmount. -volumeid is an optional parameter only for CIM files|`msixmgr.exe -UnmountImage -volumeid 0ea000fe-0021-465a-887b-6dc94f15e86e -filetype “cim”`|
129
+
|-volumeId|Specifies GUID (specified without curly braces) associated with image to unmount. This is an optional parameter only for CIM files. |`msixmgr.exe -UnmountImage -volumeId 0ea000fe-0021-465a-887b-6dc94f15e86e -filetype CIM`|
121
130
122
-
131
+
### -Unpack
132
+
133
+
Unpacks package (`.appx`, `.msix`, `.appxbundle`, `.msixbundle`) and extract its contents to a folder.
134
+
135
+
```
136
+
-Unpack -packagePath [Path to package to unpack OR path to a directory containing multiple packages to unpack] -destination [Directory to place the resulting package folder(s) in]
137
+
```
123
138
124
-
**-Unpack**
125
-
Unpacks package (.appx, .msix, .appxbundle, .msixbundle) and extract its contents to a folder.
126
139
> [!NOTE]
127
-
> VHD Size is recommended to be four times the size of MSIX package
140
+
> If you're using VHD or VHDX, we recommend the size is four times the size of MSIX package.
128
141
129
-
Unpacks package (.appx, .msix, .appxbundle, .msixbundle) and extract its contents to a folder. Note: VHD Size is recommended to be four times the size of MSIX package
-fileType [VHD | VHDX | CIM] -rootDirectory [Root directory on an image to unpack packages to. For CIM files only] -vhdSize [between 5 and 204000 MB. For VHD or VHDX files only]
150
+
137
151
|Optional parameters|Description|Example|
138
152
| -------- | -------- | -------- |
139
-
|-packagePath|Specifies path to package to unpack OR path to a directory containing multiple packages to unpack|`msixmgr.exe -Unpack -packagePath "C:\Users\ssa\Desktop\FileZillaChanged_3.51.1.0_x64__81q6ced8g4aa0.msix"`|
140
-
|-destination|Specifies directory to place the resulting package folder(s) in|`msixmgr.exe -Unpack -packagePath "C:\Users\ssa\Desktop\FileZillaChanged_3.51.1.0_x64__81q6ced8g4aa0.msix" -destination "c:\temp\FileZillaChanged.vhdx"`|
141
-
|-applyacls|Applies ACLs to the resulting package folder(s) and their parent folder |`msixmgr.exe -Unpack -packagePath "C:\Users\ssa\Desktop\FileZillaChanged_3.51.1.0_x64__81q6ced8g4aa0.msix" -destination "c:\temp\FileZillaChanged.vhdx" -applyacls`|
142
-
|-rootDirectory|Specifies root directory on image to unpack packages to. Required parameter for unpacking to new and existing CIM files |`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`|
143
-
|-validateSignature|Validates a package's signature file before unpacking package. This parameter will require that the package's certificate is installed on the machine.||
|-applyacls|Applies ACLs to the resulting package folder(s) and their parent folder. |`msixmgr.exe -Unpack -packagePath "C:\SomeDirectory\myapp.msix" -destination "C:\Apps\myapp" -applyACLs`|
154
+
|-create|Creates a new image with the specified -filetype and unpacks the packages to that image. |`msixmgr.exe -Unpack -packagePath "C:\SomeDirectory\myapp.msix" -destination "C:\Apps\myapp" -applyACLs -create -fileType VHDX -vhdSize 200`|
155
+
|-fileType|The type of file to unpack packages to. Valid file types include `VHD`, `VHDX`, `CIM`. This is a required parameter when unpacking to CIM files. |`msixmgr.exe -Unpack -packagePath "C:\SomeDirectory\myapp.msix" -destination "C:\Apps\myapp" -applyACLs -create -fileType CIM -rootDirectory apps`|
156
+
|-rootDirectory|Specifies root directory on image to unpack packages to. Required parameter for unpacking to new and existing CIM files. |`msixmgr.exe -Unpack -packagePath "C:\SomeDirectory\myapp.msix" -destination "C:\Apps\myapp" -applyACLs -create -filetype CIM -rootDirectory apps`|
157
+
|-validateSignature|Validates a package's signature file before unpacking package. This parameter will require that the package's certificate is installed on the machine.<br /><br />For more information, see [Certificate Stores](/windows-hardware/drivers/install/certificate-stores).|`msixmgr.exe -Unpack -packagePath "C:\SomeDirectory\myapp.msix" -destination "C:\Apps\Myapp" -validateSignature -applyACLs`|
158
+
159
+
### -?
160
+
161
+
Display help text at the command prompt.
162
+
148
163
Example:
149
164
150
165
```
@@ -153,21 +168,13 @@ msixmgr.exe -?
153
168
154
169
## Next steps
155
170
156
-
Learn more about MSIX app attach at [What is MSIX app attach?](/azure/virtual-desktop/what-is-app-attach)
157
-
To learn how to set up app attach, check out these articles:
171
+
To learn more about MSIX app attach, check out these articles:
158
172
173
+
-[What is MSIX app attach?](/azure/virtual-desktop/what-is-app-attach)
159
174
-[Set up MSIX app attach with the Azure portal](/azure/virtual-desktop/app-attach-azure-portal)
160
175
-[Set up MSIX app attach using PowerShell](/azure/virtual-desktop/app-attach-powershell)
161
176
-[Create PowerShell scripts for MSIX app attach](/azure/virtual-desktop/app-attach)
162
177
-[Prepare an MSIX image for Azure Virtual Desktop](/azure/virtual-desktop/app-attach-image-prep)
163
-
-[Set up a file share for MSIX app attach](/azure/virtual-desktop/app-attach-file-share)
164
-
165
-
166
-
167
-
If you have questions about MSIX app attach, see our [App attach FAQ](/azure/virtual-desktop/app-attach-faq) and [App attach glossary](/azure/virtual-desktop/app-attach-glossary)
168
-
169
-
170
-
171
-
172
-
178
+
-[Set up a file share for MSIX app attach](/azure/virtual-desktop/app-attach-file-share)
173
179
180
+
If you have questions about MSIX app attach, see our [App attach FAQ](/azure/virtual-desktop/app-attach-faq) and [App attach glossary](/azure/virtual-desktop/app-attach-glossary).
0 commit comments