Getting the list of installed windows store apps
Asked Answered
B

2

5

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?

Bharat answered 5/7, 2016 at 6:19 Comment(2)
There is definitely a way, as CCleaner and IOBit Uninstaller do it. I'd assume they're calling some commands that you'd typically call from a PowerShell window.Anaclinal
In C# or C++ or .NET or as any desktop application?Mucoprotein
B
5

Package Manager will help to get the list of metro applications;
with reference to this exchange, FindPackages method with example:

IEnumerable<Windows.ApplicationModel.Package> packages = 
    (IEnumerable<Windows.ApplicationModel.Package>)packageManager
        .FindPackagesForUser("");
  1. To use this class, open .csproj, and change target platform version to 8.0:
    1. Right-click on the project name in Solution Explorer
    2. Select Unload the Project and it will become like projectname(unavailable)
    3. Right-click → Select: Edit .csproj
    4. Load the project again

  2. Add a reference to system.runtime; if you don't find it, add a reference to its .dll from:
    %WinDir%\Microsoft.Net\assembly
    

  3. Add a reference to:
    %ProgramFiles(x86)%\Windows Kits\8.0\References\CommonConfiguration\Neutral\Windows.winmd
    
Bharat answered 20/7, 2016 at 11:42 Comment(0)
C
7

You can run these commands on a powershell window and get the list of installed apps on a Windows 10 machine

Get-AppxPackage | ft Name, PackageFullName -AutoSize

If you want to get a list of all the apps of all the users, then use the below command.

Get-AppxPackage -AllUsers | ft Name, PackageFullName -AutoSize
Cupric answered 5/7, 2016 at 13:10 Comment(0)
B
5

Package Manager will help to get the list of metro applications;
with reference to this exchange, FindPackages method with example:

IEnumerable<Windows.ApplicationModel.Package> packages = 
    (IEnumerable<Windows.ApplicationModel.Package>)packageManager
        .FindPackagesForUser("");
  1. To use this class, open .csproj, and change target platform version to 8.0:
    1. Right-click on the project name in Solution Explorer
    2. Select Unload the Project and it will become like projectname(unavailable)
    3. Right-click → Select: Edit .csproj
    4. Load the project again

  2. Add a reference to system.runtime; if you don't find it, add a reference to its .dll from:
    %WinDir%\Microsoft.Net\assembly
    

  3. Add a reference to:
    %ProgramFiles(x86)%\Windows Kits\8.0\References\CommonConfiguration\Neutral\Windows.winmd
    
Bharat answered 20/7, 2016 at 11:42 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.