locked
How do I launch a Metro app from another HTML/JavaScript Metro app?

Answers

  • The reply in the other thread you linked is accurate. Metro style apps cannot launch another specific app, thus the direct Store linkage supported. Launching another app is supported through file type associations and protocol associations, and this means that the user is always able to select which app is launched to support the association, and can change it at any time.

    To answer your last question, you can create assemblies in C#/VB, as well as DLLs in C++, that can be used from a JS app. See the tutorials on http://msdn.microsoft.com/en-us/library/windows/apps/hh441572(v=vs.110).aspx.

    .Kraig

    Friday, April 27, 2012 3:47 PM

All replies

  • The reply in the other thread you linked is accurate. Metro style apps cannot launch another specific app, thus the direct Store linkage supported. Launching another app is supported through file type associations and protocol associations, and this means that the user is always able to select which app is launched to support the association, and can change it at any time.

    To answer your last question, you can create assemblies in C#/VB, as well as DLLs in C++, that can be used from a JS app. See the tutorials on http://msdn.microsoft.com/en-us/library/windows/apps/hh441572(v=vs.110).aspx.

    .Kraig

    Friday, April 27, 2012 3:47 PM
  • I don't know if this document is up-to-date, but the Remarks section says that if the system cannot find a default app for the file type, "Windows helps the user acquire an app from the Windows Store."
    Friday, April 27, 2012 4:14 PM
  • Good point. Yes, that topic is up to date, but it's not a means to tell the Store to find a specific app. The best you can do is create a very specific file type or protocol such that it would be unlikely another app would support it. However, if it was a compelling scenario, another app can come in and offer itself as the target app as well, and it will show up as an equivalent in the Store.

    What isn't supported is launching or finding another app by its name or some other unique identity. Only association.

    Friday, April 27, 2012 4:29 PM
  • Following up on this thread, is there a way to link to a specific app in the store from a web page?
      Update: found the answer here - http://msdn.microsoft.com/en-us/library/ie/hh781489(v=vs.85).aspx

    Friday, May 4, 2012 8:36 PM