locked
How to get all Metro apps list in Metro App?

    Question

  • I want to get all Metro apps list in my Metro App, but the PackageManager class is not work, catch exception "access is denied".

    How shoud I do?  thanks......

    Friday, December 9, 2011 3:02 AM

Answers

  • Metro apps are intended to be self contained and therefore have no way to determine what other applications are installed on the system, nor permission to manipulate them. If your application needs that sort of permission it has to be written as a classic desktop application and not a Metro app.
    • Marked as answer by Roy_Rock Friday, December 9, 2011 5:12 AM
    Friday, December 9, 2011 4:01 AM

All replies

  • Please see this previous thread.

    --Rob

    Friday, December 9, 2011 3:15 AM
    Moderator
  • I have read. It talk about the method must be used in Desktop app. In that case, all metro app will not obtain in Metro app?

    thanks......

    • Edited by Roy_Rock Friday, December 9, 2011 3:21 AM
    Friday, December 9, 2011 3:19 AM
  • Metro apps are intended to be self contained and therefore have no way to determine what other applications are installed on the system, nor permission to manipulate them. If your application needs that sort of permission it has to be written as a classic desktop application and not a Metro app.
    • Marked as answer by Roy_Rock Friday, December 9, 2011 5:12 AM
    Friday, December 9, 2011 4:01 AM