Skip to content

Commit

Permalink
Worked on resolve names script and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz committed Mar 14, 2024
1 parent ed44815 commit 72086b8
Show file tree
Hide file tree
Showing 4 changed files with 1,614 additions and 1,315 deletions.
32 changes: 16 additions & 16 deletions docs/sources/property-sets/86d40b4d-9069-443c-819a-2a54090dccec.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@

Property identifier | Shell property key | Shell name | Alias
--- | --- | --- | ---
2 | PKEY_Tile_SmallLogoPath | |
4 | PKEY_Tile_Background | |
5 | PKEY_Tile_Foreground | |
11 | PKEY_Tile_LongDisplayName | |
12 | PKEY_Tile_Square150x150LogoPath | |
13 | PKEY_Tile_Wide310x150LogoPath | |
14 | PKEY_Tile_Flags | |
15 | PKEY_Tile_BadgeLogoPath | |
16 | PKEY_Tile_SuiteDisplayName | |
17 | PKEY_Tile_SuiteSortName | |
18 | PKEY_Tile_DisplayNameLanguage | |
19 | PKEY_Tile_Square310x310LogoPath | |
20 | PKEY_Tile_Square70x70LogoPath | |
21 | PKEY_Tile_FencePost | |
22 | PKEY_Tile_InstallProgress | |
23 | PKEY_Tile_EncodedTargetPath | |
2 | PKEY_Tile_SmallLogoPath | System.Tile.SmallLogoPath |
4 | PKEY_Tile_Background | System.Tile.Background |
5 | PKEY_Tile_Foreground | System.Tile.Foreground |
11 | PKEY_Tile_LongDisplayName | System.Tile.LongDisplayName |
12 | PKEY_Tile_Square150x150LogoPath | System.Tile.Square150x150LogoPath |
13 | PKEY_Tile_Wide310x150LogoPath | System.Tile.Wide310x150LogoPath |
14 | PKEY_Tile_Flags | System.Tile.Flags |
15 | PKEY_Tile_BadgeLogoPath | System.Tile.BadgeLogoPath |
16 | PKEY_Tile_SuiteDisplayName | System.Tile.SuiteDisplayName |
17 | PKEY_Tile_SuiteSortName | System.Tile.SuiteSortName |
18 | PKEY_Tile_DisplayNameLanguage | System.Tile.DisplayNameLanguage |
19 | PKEY_Tile_Square310x310LogoPath | System.Tile.Square310x310LogoPath |
20 | PKEY_Tile_Square70x70LogoPath | System.Tile.Square70x70LogoPath |
21 | PKEY_Tile_FencePost | System.Tile.FencePost |
22 | PKEY_Tile_InstallProgress | System.Tile.InstallProgress |
23 | PKEY_Tile_EncodedTargetPath | System.Tile.EncodedTargetPath |

30 changes: 15 additions & 15 deletions docs/sources/property-sets/9f4c2855-9f79-4b39-a8d0-e1d42de1d5f3.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,29 @@ Property identifier | Shell property key | Shell name | Alias
4 | PKEY_AppUserModel_RelaunchDisplayNameResource | System.AppUserModel.RelaunchDisplayNameResource |
5 | PKEY_AppUserModel_ID | System.AppUserModel.ID |
6 | PKEY_AppUserModel_IsDestListSeparator | System.AppUserModel.IsDestListSeparator |
7 | PKEY_AppUserModel_IsDestListLink | |
7 | PKEY_AppUserModel_IsDestListLink | System.AppUserModel.IsDestListLink |
8 | PKEY_AppUserModel_ExcludeFromShowInNewInstall | System.AppUserModel.ExcludeFromShowInNewInstall |
9 | PKEY_AppUserModel_PreventPinning | System.AppUserModel.PreventPinning |
10 | PKEY_AppUserModel_BestShortcut | |
10 | PKEY_AppUserModel_BestShortcut | System.AppUserModel.BestShortcut |
11 | PKEY_AppUserModel_IsDualMode | System.AppUserModel.IsDualMode |
12 | PKEY_AppUserModel_StartPinOption | System.AppUserModel.StartPinOption |
13 | PKEY_AppUserModel_Relevance | |
13 | PKEY_AppUserModel_Relevance | System.AppUserModel.Relevance |
14 | PKEY_AppUserModel_HostEnvironment | System.AppUserModel.HostEnvironment |
15 | PKEY_AppUserModel_PackageInstallPath | |
16 | PKEY_AppUserModel_RecordState | |
17 | PKEY_AppUserModel_PackageFamilyName | |
15 | PKEY_AppUserModel_PackageInstallPath | System.AppUserModel.PackageInstallPath |
16 | PKEY_AppUserModel_RecordState | System.AppUserModel.RecordState |
17 | PKEY_AppUserModel_PackageFamilyName | System.AppUserModel.PackageFamilyName |
18 | PKEY_AppUserModel_InstalledBy | System.AppUserModel.InstalledBy |
19 | PKEY_AppUserModel_ParentID | |
19 | PKEY_AppUserModel_ParentID | System.AppUserModel.ParentID |
20 | PKEY_AppUserModel_ActivationContext | System.AppUserModel.ActivationContext |
21 | PKEY_AppUserModel_PackageFullName | |
22 | PKEY_AppUserModel_PackageRelativeApplicationID | |
23 | PKEY_AppUserModel_ExcludedFromLauncher | |
25 | PKEY_AppUserModel_RunFlags | |
21 | PKEY_AppUserModel_PackageFullName | System.AppUserModel.PackageFullName |
22 | PKEY_AppUserModel_PackageRelativeApplicationID | System.AppUserModel.PackageRelativeApplicationID |
23 | PKEY_AppUserModel_ExcludedFromLauncher | System.AppUserModel.ExcludedFromLauncher |
25 | PKEY_AppUserModel_RunFlags | System.AppUserModel.RunFlags |
26 | PKEY_AppUserModel_ToastActivatorCLSID | System.AppUserModel.ToastActivatorCLSID |
27 | PKEY_AppUserModel_DestListProvidedTitle | |
28 | PKEY_AppUserModel_DestListProvidedDescription | |
29 | PKEY_AppUserModel_DestListLogoUri | |
30 | PKEY_AppUserModel_DestListProvidedGroupName | |
27 | PKEY_AppUserModel_DestListProvidedTitle | System.AppUserModel.DestListProvidedTitle |
28 | PKEY_AppUserModel_DestListProvidedDescription | System.AppUserModel.DestListProvidedDescription |
29 | PKEY_AppUserModel_DestListLogoUri | System.AppUserModel.DestListLogoUri |
30 | PKEY_AppUserModel_DestListProvidedGroupName | System.AppUserModel.DestListProvidedGroupName |
34 | | |
35 | | |
40 | | |
Expand Down
11 changes: 10 additions & 1 deletion scripts/resolve_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
import os
import sys

import pywintypes # pylint:disable=import-error

from win32com.propsys import propsys # pylint:disable=import-error

import winspsrc
Expand Down Expand Up @@ -124,7 +126,14 @@ def Main():
proprty_key = (
f'{{{property_definition.format_identifier:s}}}',
property_definition.property_identifier)
name = propsys.PSGetNameFromPropertyKey(proprty_key)

try:
name = propsys.PSGetNameFromPropertyKey(proprty_key)
except pywintypes.com_error:
logging.warning(
f'Unable to resolve: {property_definition.lookup_key}')
name = None

if name:
property_definition.names = set([name])

Expand Down
Loading

0 comments on commit 72086b8

Please sign in to comment.