locked
How to get the "DisplayName" in properties

    Question

  • How to get the "DisplayName" in "Properties" and data in "Applications" in my manifest file ?
    I can get data in "Identity" by  "Windows.ApplicationModel.Package", is there any API could do something like this?
    Thanks in advance.


    manifest:

    <Package>
      <Identity Name="App"/>
      <Properties>
        <DisplayName>My App</DisplayName>
        <Description>Demo</Description>
        <Logo>images\img.png</Logo>
      </Properties>
    <Applications> 
    <Application Id="App" StartPage="html\default.html">
          <VisualElements DisplayName="Demo App" Logo="images\img.png">
          </VisualElements>
        </Application>
      </Applications>
    </Package>

    Fennifer

    • Edited by Fennifer Tuesday, July 3, 2012 5:56 AM
    Tuesday, July 3, 2012 5:54 AM

Answers

  • Hi,

    There are no Windows Runtime APIs  that expose this particular information back to the app. The app owner is providing the information to the Appx Manifest in the first place.

    Can you provide a scenario where it would be useful to read this information from the Appx Manifest? And, it is not easily available elsewhere?


    Thanks, Ali Naqvi

    • Marked as answer by Fennifer Tuesday, July 17, 2012 2:51 AM
    Thursday, July 12, 2012 10:06 PM

All replies

  • Hello,

    could you use a combination of Windows.ApplicationModel.Package.InstallLocation and

    http://code.msdn.microsoft.com/windowsdesktop/Appx-Packaging-API-3ff13a92

    http://msdn.microsoft.com/en-us/library/Hh446622 (IAppxManifestReader)

    thanks!

    mike

    Thursday, July 5, 2012 11:36 PM
    Moderator
  • Hi Mike,

    It seem works for C++, but there is no "IAppxManifestReader" for javascript.
    Is there any API for javascript?
    Thanks.

    Fennifer

    Monday, July 9, 2012 7:02 AM
  • Hi,

    There are no Windows Runtime APIs  that expose this particular information back to the app. The app owner is providing the information to the Appx Manifest in the first place.

    Can you provide a scenario where it would be useful to read this information from the Appx Manifest? And, it is not easily available elsewhere?


    Thanks, Ali Naqvi

    • Marked as answer by Fennifer Tuesday, July 17, 2012 2:51 AM
    Thursday, July 12, 2012 10:06 PM
  • Hi,

    Thanks for your kindly reply.
    I want to read this info. because there is a app with same identity name but different display name and logo image.
    Now, I put these info. outside the manifest in order to get these info. for different display name.

    Fennifer
    • Edited by Fennifer Tuesday, July 17, 2012 2:51 AM
    Tuesday, July 17, 2012 2:50 AM