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
Copy file name to clipboardExpand all lines: articles/virtual-desktop/app-attach-test-msix-packages.md
+7-9Lines changed: 7 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,19 +46,17 @@ Staging and destaging are machine-level operations, while registering and deregi
46
46
47
47
## Prepare to stage an MSIX package
48
48
49
-
The staging script prepares your machine to receive the MSIX package and mounts the relevant package to your machine. You only need to run the following commands once per machine.
50
-
51
-
However, if you're using an image in CimFS format, or a version of PowerShell greater than 5.1, the instructions are different. Later versions of PowerShell are multi-platform, which means the Windows application parts are split off into their own package called [Windows Runtime](/windows/uwp/winrt-components/). You need to use a variation of the commands to install a package with a multi-platform version of PowerShell.
49
+
The staging script prepares your machine to receive the MSIX package and mounts the relevant package to your machine.
52
50
53
51
Select the relevant tab for the version of PowerShell you're using.
54
52
55
53
# [PowerShell 6 and later](#tab/posh6)
56
54
57
-
To stage packages at boot using PowerShell 6 or later, you need to run the following commands before the staging operations to bring the capabilities of the Windows Runtime package to PowerShell.
55
+
To stage packages using PowerShell 6 or later, you need to run the following commands before the staging operations to bring the capabilities of the Windows Runtime package to PowerShell.
58
56
59
57
1. Open a PowerShell prompt as an administrator.
60
58
61
-
1. Run the following command to download and install the Windows Runtime Package:
59
+
1. Run the following command to download and install the Windows Runtime Package. You only need to run the following commands once per machine.
62
60
63
61
```powershell
64
62
#Required for PowerShell 6 and later
@@ -81,7 +79,7 @@ To stage packages at boot using PowerShell 6 or later, you need to run the follo
81
79
82
80
# [PowerShell 5.1 and earlier](#tab/posh5)
83
81
84
-
To stage packages at boot with PowerShell version 5.1 or earlier, you need to run the following command before the staging operations to bring the capabilities of the Windows Runtime package to PowerShell.
82
+
To stage packages with PowerShell version 5.1 or earlier, you need to run the following command before the staging operations to bring the capabilities of the Windows Runtime package to PowerShell.
Now that your MSIX package is registered, your application should be available for use in your session. You can now open the application for testing and troubleshooting. Once you're finished, you can deregister and destage your MSIX package.
207
+
Now that your MSIX package is registered, your application should be available for use in your session. You can now open the application for testing and troubleshooting. Once you're finished, you need to deregister and destage your MSIX package.
210
208
211
209
## Deregister an MSIX package
212
210
213
-
Once you're finished with your MSIX package and are ready to remove it, you need to deregister it. To deregister an MSIX package, run the following commands in the same PowerShell session. These commands get the disk's `DeviceId` parameter again, and removes the package using the `$msixPackageFullName` variable created in a previous section.
211
+
Once you're finished with your MSIX package and are ready to remove it, first you need to deregister it. To deregister the MSIX package, run the following commands in the same PowerShell session. These commands get the disk's `DeviceId` parameter again, and removes the package using the `$msixPackageFullName` variable created in a previous section.
To destage an MSIX package, you need to dismount your disk image, run the following command in the same PowerShell session to ensure that the package isn't still registered for any user. This command uses the `$msixPackageFullName` variable created in a previous section.
224
+
Finally, to destage the MSIX package, you need to dismount your disk image, run the following command in the same PowerShell session to ensure that the package isn't still registered for any user. This command uses the `$msixPackageFullName` variable created in a previous section.
0 commit comments