开发者

Start WPF application from link in browser?

We have a requirement to start a WPF application with specific parameters from a link in a browser.

We are 开发者_Python百科wondering if this is possible?

As an alternative could we embed the web application in a WPF browser control, and read the values out of the html web page?


Several possibilities :

  • if you control the browser (i.e. if you are in an intranet scenario, and have the opportunity to deploy applications), you can :
    • create an activex or plugin that runs the application
    • register a new uri scheme to interpret the url of kind "yourapplication://yourarguments"
    • (complex): deploy a listening app ran under the user session, and from the webapplication, ask this listening app to run the target application
    • reduce the security of the browser (not recommended)
  • if you don't control the browser:

    • create a clickonce application... this involves a setup, but which does not require admin privilege
  • Moving to Silverlight also might be an option, depending on your needs. SilverLigth V5 (still in beta) notably adds the ability for an admin to control the rights of the application via a GPO

Note: My feelings is the later option (Silverlight) is far more preferable because it's a lot more cleaner and less security hole factor. However, it can only be done if your requirements fits into the SL features


It is not possible to call client app from a browser, previously it was possible from activex controls but for that you need to have a signed library, in wpf you can make browser based application but you cant embed your web app in it. So partially you are correct if you used wpf app you will be able to launch application on client side but with browser it seems difficult until unless you make activex control but still i am not 100% sure that with activex control you will be able to launch the app or not

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜