Click here to Skip to main content
15,881,381 members
Please Sign up or sign in to vote.
1.00/5 (1 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 5:05am

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.
 
Share this answer
 
v2
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!
 
Share this answer
 
Comments
DevCodeproject1 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!
DevCodeproject1 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?
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[^]
 
Share this answer
 
Comments
Bach Huynh Son (Call me HB) 24-May-20 12:10pm    
Your solution is only working for IE, he's asking chrome

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900