Get Icon from UWP App

后端 未结 3 1981

I want to extract the icon of an UWP App to build a Explorer like \"Open With\" menue.

With the help of SHAssocEnumHandlers i managed to get the associated applications

3条回答
  •  春和景丽
    2021-02-08 16:02

    For me the following method works:

    1. Open File Explorer and type C:/Program Files/WindowsApps in the adress bar.
    2. In the You dont' have permission to access this folder dialog click Continue. This will require administrator privilages.
    3. In the You have been denied permission to this folder dialog click security tab highlighted in blue.
    4. In the WindowsApps Properties dialog click Advanced.
    5. In the Advanced Security Settings for WindowsApps dialog click Continue.
    6. Click the blue text Change next to Owner: TrustedInstaller.
    7. In the Enter object name to select textbox in the Select an object or group dialog enter your username (the one displayed in cmd after C:/User/ right after opening it).
    8. Click the Check Names button.
    9. Click the OK button.
    10. In the Advanced Security Settings for WindowsApps dialog click Apply and then OK.
    11. Close File Explorer.
    12. Reopen File Explorer and type C:/Program Files/WindowsApps in the adress bar again.

    Now you will see a list of folders. Each corresponds to a UWP app installed on your computer. Some apps are in multiple folders. App's resources are places in the /Assets subfolder. You will find there the app's icon too.

提交回复
热议问题