Fresher Fresher - 6 months ago 75
C# Question

Getting the list of installed windows store apps

There are ways to get the list of installed applications that come in Add/Remove Programs in ControlPanel.

But I want to get the list of installed applications from windows store too. I have not got anything so far.

Is there any way to get the list of applications installed from windows store?


Package Manager will help to get the list of metro applications.

With reference to this thread:

1) You can use this code snippet :
IEnumerable<Windows.ApplicationModel.Package> packages = (IEnumerable<Windows.ApplicationModel.Package>)packageManager.FindPackagesForUser("");
FindPackages Method with example

2) To use this class, change the target platform version to 8.0 in .csproj
To open .csproj, right click on the project name in the solution explorer and select unload the project. Then it will become like projectname(unavailable). Now right click and select edit .csproj file. And you can load the project again.

3) Add a reference to system.runtime
If you dont find it, you can add a reference to its dll from C:\Windows\Microsoft.Net\assembly folder.

4) Add a reference to C:\Program Files (x86)\Windows Kits\8.0\References\CommonConfiguration\Neutral\Windows.winmd