查找机器上已安装的Metro应用程序 [英] Finding out installed Metro applications on a machine

查看:79
本文介绍了查找机器上已安装的Metro应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图用C#编写一段代码,以查找计算机上所有已安装的Metro应用程序.我遇到了以下帖子

I am trying to write a piece of code in C# to find all installed Metro Applications on a machine. I came across the following post Get a list of metro apps and launch them in Windows 8 using PowerShell which explains obtaining this from the system registry. Is this the only reliable way to obtain the list? Does anyone know of any other ways? Thanks in advance

推荐答案

我希望可以发表评论...这是一个选择吗?

I wish I could comment...Is this an option?

IEnumerable<Windows.ApplicationModel.Package> packages = 
        (IEnumerable<Windows.ApplicationModel.Package>)packageManager.FindPackagesForUser("");

http://msdn. microsoft.com/en-us/library/windows/apps/windows.management.deployment.packagemanager.aspx

这篇关于查找机器上已安装的Metro应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆