Get installed application list in UWP

怎甘沉沦 提交于 2020-01-14 14:16:09

问题


I have an application that needs to reads name of all installed app on user mobile. but i can't do that. How can i get list of installed applications in Universal Windows Platform on windows 10 mobile?

thanks for your helping


回答1:


You need to add Windows Mobile Extensions for the UWP and use the following code:

if (ApiInformation.IsTypePresent("Windows.Phone.Management.Deployment.InstallationManager"))
{
    var packages = Windows.Phone.Management.Deployment.InstallationManager.FindPackages();
    foreach (var package in packages)
    {
        Debug.WriteLine(package.DisplayName);
    }
}

But this code requires ID_CAP_OEM_DEPLOYMENT. As I know from msdn

I would assume that you would require a company certificate and would have to sign your Apps with that certificate in order for those permissions to work.



来源:https://stackoverflow.com/questions/36293051/get-installed-application-list-in-uwp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!