locked
Open Desktop Internet Browser RRS feed

  • Question

  • Hey all

    Not sure if I am at the right place to post this message, but anyway here it is :)

    I have a Silverlight App developed and have following issue:

    When I start the Metro Browser I did a check to examine if I am in Metro IE. So when I am I show a message to kindly ask the User to switch to desktop mode and launch the Page again.

    Is there a way to supply the user with a Button where the onclick opens the Desktop Browser with a given Link?

    when I use the JavaScript method window.open(www.blabla.com) it just opens a new window in the metro browser.

    thank you very much for your help.

    Kind regards

    Dave

    Thursday, January 17, 2013 9:28 AM

Answers

  • Hi,

    In short: you can't. Because of the Sandbox, you cannot invoke an executable from Metro style apps.

    You could...

    - make the Desktop browser the default browser to open links in and use file association from your Metro app (requires user to change settings, not nice...)
    - Have your app write a textfile (for instance with the link) and have a native app running to monitor the file and execute the link.

    That last one doesn't feel good, is not supported, was only used in a proof of concept implementation, requires your users to download additional software to have your application work as expected and probably many more warnings...

    I got that idea here: http://wall.jaysonragasa.net/wall/post/2012/07/17/Executing-External-Process-from-Windows-8-Metro-Application-Using-Native-Proxy.aspx

    Hope this helps


    Please mark the best replies as answers
    Blog: bloggingabout.net/blogs/rick
    Twitter: @rickvdbosch

    • Proposed as answer by Can Bilgin Thursday, January 17, 2013 2:20 PM
    • Marked as answer by Song Tian Thursday, January 24, 2013 10:18 AM
    Thursday, January 17, 2013 12:29 PM