Coder Social home page Coder Social logo

colinkiama / uwppackagesgetter Goto Github PK

View Code? Open in Web Editor NEW
10.0 3.0 1.0 39 KB

Get all installed apps from your users windows device. (Win32 Programs do not count).

License: MIT License

C# 100.00%
uwp nuget restricted-capabilites packages apps get-installed-apps windows windows-10 windows10 universal-windows-platform

uwppackagesgetter's Introduction

UWPPackagesGetter

Windows Runtime Component that gets all installed apps from your users Windows 10 Device. (Win32 Programs are not included).

Note: This uses restricted capabilites so only Business accounts can upload apps using this Runtime Component to the Store. However, anyone can still use this if they are sideloading the app.

Before you start, do this first:

  1. Add the rescap namespace to the IgnorableNamespaces section of your Package.appxmanifest file. So it looks something like this:
<Package
  xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
  xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest"
  xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
  xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
  IgnorableNamespaces="uap mp rescap">
  ....
</Package>
  1. Then in the capabilities tags, add the "packageQuery" and "packageManagement" restricted capabilites:
 <Capabilities>
    <Capability Name="internetClient" />
    <rescap:Capability Name="packageManagement"/>
    <rescap:Capability Name="pacakgeQuery"/>
  </Capabilities>

Now the classes used will all work without permission exceptions :)

Installation:

Open the Nuget Package Manager console and enter this command: Install-Package UWPPackgesGetter.ColinKiama

or... In a a Universal Windows Project, go to Tools > NuGet Package Manager > Manage NuGet Packages for Solution then on the "Browse" section, search for "UWPPackgesGetter.ColinKiama" then, you can install the package for each project you want to use in your current solution.

How to use:

 // Quick Example
 ObservableCollection<PackageItem> MyPackages = new ObservableCollection<PackageItem>();
 MyPackages = PackageGetter.GetAllPackagesAsync();

uwppackagesgetter's People

Contributors

colinkiama avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.