Reputation: 139
Im collecting a list of Windows Store Applications. Im using this powershell script :
Get-AppxPackage -AllUsers
This gives me back multiple applications.
I want to know if there is a unique value for an application that stays the same when the application is updated!
This is an example from one application with its values.
Upvotes: 2
Views: 571
Reputation: 33
Perhaps things have changed since 2018, but Microsoft defines PackageFullName
as a string with 5, not 4, parts:
<Name>_<Version>_<Architecture>_<ResourceId>_<PublisherId>
Each part is separated by an underscore. If ResourceId
is blank, PackageFullName
will be contain two underscores between Architecture
and PublisherId
.
For example, the PackageFullName
for the Calculator App is
Microsoft.WindowsCalculator_11.2405.2.0_x64__8wekyb3d8bbwe
The Version
string will change after an upgrade.
Upvotes: 0
Reputation: 139
For the people who are looking for an answer, Kenny named the solution.
I quote :
Look at the PackageFullName
, it consists of 4 parts. The second part is the version of the package which will change in upgrade while the other 3 parts stay the same. You can use a combination of the 1st+3rd+4th part, which is unique
What is the PackageFamilyName (PFN)?
If i have 2 the same applications, x64 and x86. The PackageFamilyName is the same.
That is correct, because it is the same app, but built for different architectures.
Upvotes: 0