locked
How to read AppxManifest.xml and *.pri files in desktop application

    Question

  • Hi,

    is there any way to read AppxManifest.xml and *.pri files in desktop application? I have WinRT / Metro App Package full name and I need to get it's DisplayName.

    Thank you for your answer.

    Sunday, March 4, 2012 9:51 AM

All replies

  • Hi,

    I need to access values stored in WinRT Package Manifest (AppxManifest.xml) file from my desktop application. I have full name of the package and can access it's storage. How can I do this?

    Thank you for your answer!

    Sunday, March 4, 2012 12:04 AM
  • I have tried to use ResourceManager.LoadPriFiles method, but it throws "The process has no package identity." exception.
    Sunday, March 4, 2012 9:55 AM
  • You are trying to read this data from a *desktop* (non-Metro) application?  Or from your application itself?  If from your application look at the Package API

    Tim Heuer | Program Manager, XAML | http://timheuer.com/blog | @timheuer

    (if my post has answered your question, please consider using the 'mark as answer' feature in the forums to help others)

    Sunday, March 4, 2012 10:48 PM
  • From desktop (non-metro) application. I have a list of installed packages (PackageManager.FindPackagesForUser) and I want to get a list of applications in each package (and their DisplayName, logo, ...).
    Sunday, March 4, 2012 10:56 PM
  • Got it.  Yes I know that the Package APIs don't give you full details, but I had thought DisplayName is one, but it might just be the Package identity.  I know other aspects like logo, etc. aren't there.

    Tim Heuer | Program Manager, XAML | http://timheuer.com/blog | @timheuer

    (if my post has answered your question, please consider using the 'mark as answer' feature in the forums to help others)

    Sunday, March 4, 2012 11:25 PM
  • Yes, it's the Package identity. I can get Name, FullName and FamilyName. The data I need can be read from AppxManifest.xml file located in package's storage. But some of the values are localized and stored in PRI resource files. Is there a way to read them in non-metro app?
    Monday, March 5, 2012 7:31 AM
  • You would need to use the ResourceLoader APIs and it looks like these may only make sense from Metro app

    Tim Heuer | Program Manager, XAML | http://timheuer.com/blog | @timheuer

    (if my post has answered your question, please consider using the 'mark as answer' feature in the forums to help others)

    Monday, March 5, 2012 4:11 PM
  • hi djanosik,

    have you already conquer this issue? or Any other way to find the infos like DisplayName etc.? I meet the same issue at present.

    Tuesday, October 30, 2012 2:03 AM