开发者

Start application from browser [duplicate]

开发者 https://www.devze.com 2023-04-10 22:08 出处:网络
This question already has answers here: 开发者_高级运维 Closed 11 years ago. Possible Duplicate: how do I create my own URL protocol? (e.g. so://…)
This question already has answers here: 开发者_高级运维 Closed 11 years ago.

Possible Duplicate:

how do I create my own URL protocol? (e.g. so://…)

I was wondering if it is possible to start an application using a browser url. Just like origin(origin://), itunes(itms://), Trackmania(tmtp://) ...

I supose a registere setting needs to be changed for this. But where can I find this, and how do I get the parameters using a C# program.

Thank you, Jerodev


edit: I have been able to add an own protocol handler using the registery. The handler works with all browsers except for google chrome. Does anyone know how to enable this?


To start application from web browser is not easy, because most desktop applications require full trust and also full access to your system, and by default web browser doesn't permit you to do so.

The best way to really run your app from web browser is by using Silverlight Out of browser or using Adobe's AIR. But if you are just wanting to deploy your app from web browser, you can use Microsoft ClickOnce. It's quite easy and straightforward, and .NET 3.5's ClickOnce supports Firefox and Chrome, not just IE.

To use ClickOnce, see this on MSDN Library:

http://msdn.microsoft.com/en-us/library/t71a733d(v=VS.90).aspx

0

精彩评论

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