Skip to content

Commit ec75bd2

Browse files
committed
Minor tweaks
1 parent f293d1d commit ec75bd2

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

articles/virtual-desktop/app-attach-test-msix-packages.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,17 @@ Staging and destaging are machine-level operations, while registering and deregi
4646
4747
## Prepare to stage an MSIX package
4848

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.
5250

5351
Select the relevant tab for the version of PowerShell you're using.
5452

5553
# [PowerShell 6 and later](#tab/posh6)
5654

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.
5856

5957
1. Open a PowerShell prompt as an administrator.
6058

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.
6260

6361
```powershell
6462
#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
8179

8280
# [PowerShell 5.1 and earlier](#tab/posh5)
8381

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.
8583

8684
1. Open a PowerShell prompt as an administrator.
8785

@@ -206,11 +204,11 @@ $manifestPath = Join-Path (Join-Path $Env:ProgramFiles 'WindowsApps') (Join-Path
206204
Add-AppxPackage -Path $manifestPath -DisableDevelopmentMode -Register
207205
```
208206

209-
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.
210208

211209
## Deregister an MSIX package
212210

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.
214212

215213
```powershell
216214
$appPath = Join-Path (Join-Path $Env:ProgramFiles 'WindowsApps') $msixPackageFullName
@@ -223,7 +221,7 @@ Remove-AppxPackage $msixPackageFullName -PreserveRoamableApplicationData
223221

224222
## Destage an MSIX package
225223

226-
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.
227225

228226
```powershell
229227
Remove-AppxPackage -AllUsers -Package $msixPackageFullName -ErrorAction SilentlyContinue

0 commit comments

Comments
 (0)