0

Is it possible to run a .exe file on client side with Silverlight.

Or with javascript or something other.

Thanks

Denys Séguret
  • 372,613
  • 87
  • 782
  • 758
Irakli Lekishvili
  • 33,492
  • 33
  • 111
  • 169

3 Answers3

3

Assuming you mean from the context of a remote domain, most definitely not. Think of the ease with which you might deliver a virus by such a mechanism.

spender
  • 117,338
  • 33
  • 229
  • 351
  • Yes it would be easy. So can you advice what can i do? I want to make button my web site when user clicks it i want to run process(game). Does it possible without creating new application for clients? – Irakli Lekishvili Jun 27 '12 at 16:08
  • You'd need to persuade your users to install a browser plugin to get this to work, or try to get them to allow elevated permissions for a Java applet. Neither seems like such a great idea. – spender Jun 27 '12 at 16:11
  • So it possible with chrome or FF plugins – Irakli Lekishvili Jun 27 '12 at 16:23
1

In general no - it would be a huge security hole.

It might be possible for specific browser using plug-ins or ActiveX components (in Internet Explorer) that add such a feature - that will leave the browser very exposed though.

See also this - one of the answers there suggest a clever trick if you want to start from the browser an application that you have control over: have the application installer associate a file extension with its EXE, and then you download from the browser a dummy file with that extension.

Community
  • 1
  • 1
MiMo
  • 11,793
  • 1
  • 33
  • 48
0

Yes, But not seemlessly and not cross browser Browsers are specifically designed to prvent this sort of thing but....

You can do it in internet explorer through activex javascript

function runApp() 
{ 
    var shell = new ActiveXObject("WScript.shell"); 
    shell.run("notepad.exe", 1, True); 
} 

You might be able to do it via plugin with firefox and chrome, but I don't know and I wouldn't be surprised if you can't

8bitwide
  • 2,071
  • 1
  • 17
  • 24