Skip to content

Commit bbbd252

Browse files
committed
Updated info on the -AllUsers flag
1 parent ac3203f commit bbbd252

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

msix/README.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,20 +118,33 @@ Note: These commands must be run from a terminal with administrator privileges
118118
## Install using MSIX file
119119
- If your `.msix` file was signed with a certificate trusted by Microsoft, you should be able to double-click it and install it via the GUI.
120120
- If it was signed by a certificate trusted only by the local computer, you need to run the PowerShell command below from a terminal with administrator privileges
121-
- If your `.msix` file is not signed, you will not be able to install it (even if your machine is in developer mode)
121+
- If your `.msix` file is not signed, you will not be able to install it (even if your machine is in developer mode. See [the developer's section](#installing-test-builds-as-a-developer) for an alternate solution in that case.)
122122
```powershell
123123
Add-AppxPackage -Path C:\path\to\msix\file.msix -AllowUnsigned -verbose
124124
```
125125

126+
## Installing test builds as a developer
127+
128+
If you are testing a new `.msix` file as a developer, there is another way to test installation:
129+
1. Enable Developer Mode enabled on your PC
130+
1. Rename the `.msix` to a `.zip` file
131+
1. Extract it
132+
1. Run the following powershell command to "install" an unsigned package:
133+
```powershell
134+
Add-AppxPackage -Register <path to appxmanifest.xml>
135+
```
136+
126137
## Check info of installed MSIX
127138
Get info on all packages installed via MSIX:
139+
140+
**Note**: You can add the `AllUsers` flag to `Get-AppxPackage` to see the output for every user on the PC.
128141
```powershell
129-
Get-AppxPackage -AllUsers | Select Name, PackageFullName
142+
Get-AppxPackage | Select Name, PackageFullName
130143
```
131144

132145
Narrow down the information to only packages containing the substring `jdk`:
133146
```powershell
134-
Get-AppxPackage -AllUsers -Name *jdk* | Select-Object Name, PackageFullName
147+
Get-AppxPackage -Name *jdk* | Select-Object Name, PackageFullName
135148
```
136149

137150
Get more detailed information on a specific MSIX package:
@@ -141,6 +154,8 @@ Get-AppxPackage -Name "package-name"
141154

142155
## Uninstall MSIX
143156
```powershell
144-
Remove-AppxPackage -AllUsers -package "package-full-name"
157+
Remove-AppxPackage -package "package-full-name"
145158
```
146-
Note: The `package-full-name` must appear as it does in the `PackageFullName` attribute found via `Get-AppPackage`, including the package_ID at the end
159+
**Note 1**: The `package-full-name` must appear as it does in the `PackageFullName` attribute found via `Get-AppPackage`, including the package_ID at the end
160+
161+
**Note 2**: You can add the `AllUsers` flag to `Remove-AppxPackage` to remove the package for every user on the PC.

0 commit comments

Comments
 (0)