Click here to Skip to main content
14,386,783 members
Rate this:
Please Sign up or sign in to vote.
How do I open .exe from Client's Machine in chrome Browser.Earlier this was done using ActiveX Object but as Chrome does not support ActiveX object.I want any alternative to achieve this in Chrome.


What I have tried:

I tried using Process class but didn't solve the issue
Posted
Updated 6-Apr-19 6:05am
Rate this:
Please Sign up or sign in to vote.

Solution 1

Quote:
How do I open .exe from Client's Machine in chrome Browser.Earlier this was done using ActiveX Object but as Chrome does not support ActiveX object.

Short answer:
Basically, ActiveX is not supported in any recent browser because of this possibility which is a major security threat.
Chrome and other browsers are specifically crafted to prevent this possibility.
   
v2
Rate this:
Please Sign up or sign in to vote.

Solution 2

You pretty much can't - ActiveX was only ever available in IE, and even there it was disabled by default pretty damn quickly as it is a massive security hole. You will notice that even Microsoft didn't leave it in Edge when they released that!

Think about it: if you could do it, so could the "bad guys" - and then ransomware would be even more of a problem than it is now; any website could run anything on any client.

Nothing you execute from C# code will run on the client computer, it will always run on the server - and that includes the Process and MessageBox classes!
   
Comments
NNP2 5-Apr-19 9:24am
   
yeah, true . When I tried to use Process class , exe is opening in server but not on client.
Is there any other way to achieve this functionality. Using javascript if Possible?
OriginalGriff 5-Apr-19 10:03am
   
No.
Seriously - anything you could do, a random website you got redirected to or fooled into visiting quickly could do. Are you prepared to risk that? Because I'm not!
NNP2 9-Apr-19 10:02am
   
yeah okay. Is there any option for opening IE tab from chrome Programmatically
OriginalGriff 9-Apr-19 10:08am
   
Not that I'm aware of - you'd probably have to ask at the Chrome forums, but I doubt it.
If nothing else, no Android Chrome browser could open IE as it isn't installed on Android tablets or phones ...
OriginalGriff 9-Apr-19 10:10am
   
Basically, I think you need to think long and hard about why you feel this could be a good idea - you are looking at a whole mess of security problems even if you can get it working.

That's why ActiveX was only ever added to IE, and disabled pretty damn quickly after it was added...

Why do you want / need to do this?
Rate this:
Please Sign up or sign in to vote.

Solution 3

Kindly search in Google before posting your question. Here is one of the links where you might find your answer. I am sorry, here in the following link, answer is negative.


how to launch a window application(.exe) from a web page with cross browser support[^]
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100