force specific links to open in specific browser

Hello,

we have an application which requires the default browser to be Google Chrome but we have links which are sent which need to be opened in IE because they are clickonce applications.

i can install extensions onto everyone google chrome to allow this to work but we are a large company and i don't fancy installing 3rd party extensions onto each PC as a solution when they could become redundant and stop working after a period of time.

regardless i am trying to get link 1 to go to IE and link 2 to go to Chrome regardless where on the system it is clicked, for example (desktop, within an email or on the application itself).

example a: https://website.live.com:5443/main/(ending will be different so this needs to be a wilcard) to go to Chrome
example b: https://website.live.com:5443/client/runtime/(ending will be different so this needs to be a wilcard) to go to IE

please advise how this can be achieved.
LVL 2
peggiegregAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

EugeneZ ZhitomirskySQL SERVER EXPERTCommented:
0
ste5anSenior DeveloperCommented:
There is no generic way, regardless where you click or follow a link. It strongly depends on the environment.

For the Click-Once links, consider using micosoft-edge: in front of your links (micosoft-edge:https://yourlink). Then they would be opened by Edge (On win 10).

Another working hack: use different page extensions in the registry. Then you can direct them to different browser. But then your web sites must support these also.
0
peggiegregAuthor Commented:
@Eugene Z - thanks for the suggestion but i cannot see how i would achieve what i want to do? are you suggesting i put a script on every PC which runs the above shell.run commands? also does this work if the path is a wildcard?

the post says 'This is server side code , you should write in your C# code behind method for Click event of Link Button .'

i do not have experience in C# and do not have access to the server which is sending these links. i can only manage from client side or using GPO.
0
Become a Certified Penetration Testing Engineer

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

peggiegregAuthor Commented:
@ste5an - thanks for the answer, that is basically what i thought. i just cant believe it is not possible to define within windows where specific links go... i will see if any other suggestions can be made.
0
EugeneZ ZhitomirskySQL SERVER EXPERTCommented:
micosoft-edge: approach will not work for Chrome; etc
--
also - you do not need to install anything on users PC:
check these code sample"  how to call shell from web page"
this task needs coding "some" experience (ASP;VBS, etc)

https://forums.asp.net/t/1989563.aspx?When+I+run+my+application+I+want+my+web+browser+to+open+automatically+in+fullscreen+F11+mode+

https://www.codeproject.com/Questions/338570/how-to-run-a-browser-through-code
0
peggiegregAuthor Commented:
@Eugene Z

thanks for the other examples. this would work if we was deploying a button or script etc but we are not so i dont think this would work?

let me provide an example or a scenario which i would encounter.

1 - ApplicationServer sends e-mail to user.
2 - email within says 'your holiday request has been accepted, for more details please click this link:  https://website.live.com:5443/
3 - user clicks that link and instead of opening in the default browser it looks at the address and points to alternative browser.
0
EugeneZ ZhitomirskySQL SERVER EXPERTCommented:
you can try to put this in a page  "load'  "event" without any need to "click"
0
peggiegregAuthor Commented:
Hi Eugene,

i am very sorry if i am not understanding but how would i do this. can you provide with an example please?
0
peggiegregAuthor Commented:
is there a way to force a hyperlink to open in specific browser? i could get the system to send out the hyperlink which points to correct browser.

for example i thought the following hyperlink would work as this works within a shortcut: “C:\program files\internet explorer\iexplore.exe” https://www.google.com

but when you create that as a hyperlink it doesnt know what the "****" bit means and tries to search it also.

anyway around this?
0
ste5anSenior DeveloperCommented:
Well, it depends. But there is no simple, straight forward solution. Just because this is out of scope what web browser and web URLs do.

Speaking of Windows: The used browser depends on the registry settings, which decide by the protocol (schema) what browser to use. So implementing your own chrome://, ie://, ff:// is straight forward. But must be made on each client.

but when you create that as a hyperlink it doesnt know what the "****" bit means and tries to search it also.
This means also to fiddle in the registry. And use your written proxy program for all URLs, which then decides what application to start.. But this will have an significant performance impact.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Google

From novice to tech pro — start learning today.