Solved

How to run an .exe from FireFox

Posted on 2012-04-11
11
841 Views
Last Modified: 2012-08-13
I am trying to launch a network share .exe in a local intranet. Using a href="file location" seems to work great in IE, however I cannot get the file to run in FireFox. I created a simple image that when clicked on is supposed to launch this .exe.

Anyone have any ideas?
0
Comment
Question by:philtukey
  • 4
  • 4
11 Comments
 
LVL 12

Expert Comment

by:Anuradha Goli
ID: 37834921
Try installing addon for Firefox and restart firefox to open download
https://addons.mozilla.org/en-US/firefox/addon/opendownload/
0
 
LVL 1

Author Comment

by:philtukey
ID: 37834927
Ok but this will be for 100 people and I do not want to deploy an addon on each persons computer.
0
 
LVL 23

Expert Comment

by:basicinstinct
ID: 37834928
the ONE TRUE WAY to launch desktop applications (.exe files) from ALL browsers (including internet explorer) is to create a custom protocol handler.

ANY other way is going to cause you problems.

All you need is here: http://msdn.microsoft.com/en-us/library/aa767914(v=vs.85).aspx
0
 
LVL 1

Author Comment

by:philtukey
ID: 37834936
Thanks Basicinstinct. However I am not a programmer so the link you send me to makes no sense.
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
LVL 23

Accepted Solution

by:
basicinstinct earned 500 total points
ID: 37835181
don't be daunted, in its simplest form you can actually get it going with nothing more than one registry key.

at the worst you would need to write a simple batch file.

i have implemented highly complex protocol handler scenarios which required programming but your case sounds quite simple.

it may be as simple as this...

Save the code below as "gasp.reg"

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\gasp]
@="URL:our launcher protocol"
"URL Protocol"=" "

[HKEY_CLASSES_ROOT\gasp\DefaultIcon]
@="\"C:\\temp\\test.bat\",0"

[HKEY_CLASSES_ROOT\gasp\shell]

[HKEY_CLASSES_ROOT\gasp\shell\open]

[HKEY_CLASSES_ROOT\gasp\shell\open\command]
@="\"C:\\temp\\test.bat\""

Open in new window



Change C:\\temp\\test.bat to the actual path to your .exe (make sure to use double backslash instead of single)

> Now run the .reg file to create the registry entry.

Now create a link in your web page just like a mailto link, for example:

<a href="gasp:foobar">run our app</a>

click it.

Normally you would want to pass some args to your app but doesn't sound like you are doing that.

Obviously you can change the protocol to be something besides "gasp".
0
 
LVL 1

Author Comment

by:philtukey
ID: 37916729
I've requested that this question be deleted for the following reason:

This is a firefox Issue which can only be fixed by Firefox
0
 
LVL 23

Expert Comment

by:basicinstinct
ID: 37916730
Phil

I'm disappointed you didn't get the protocol handler working.

Also your closing comment is wrong:

This is a firefox Issue which can only be fixed by Firefox

Well it's not going to be "fixed" by firefox because firefox isn't broken. A web browser is not MEANT to be able to break out of its sandbox and interact with the desktop. There is nothing to fix.

What's more there IS a way to do exactly what you want to do, it's called a custom protocol handler - it's what I told you about. It's not very hard - in it's simplest form it just requires a new registry key.
0
 
LVL 23

Expert Comment

by:basicinstinct
ID: 37931282
Hmm, I chose option #5: philtukey, tell me where you got stuck with the custom protocol and i'll help you.

Failing that I'm happy to have this question deleted which is what philtukey wanted, I didn't object to that, what I did object to was the REASON given for the deletion which couldn't be more wrong.

The answers I have given here are not some random thing I googled and presented as my own ideas. Philtukey says he needs to get this going for 100 people, well I have got it working in an organisation with over 5000 people spread over every capital city in the nation, and not just launching one .exe but a whole suite of them.

Failing option #5 I suggest option #2, delete no refund.
0
 
LVL 1

Author Comment

by:philtukey
ID: 37939313
Thank you Basicinstinct for your help, however I am not blindly posting that "This is a firefox Issue which can only be fixed by Firefox". This is based on days of research. I do not want to go messing around with registries....

"Now run the .reg file to create the registry entry.

Now create a link in your web page just like a mailto link, for example:

<a href="gasp:foobar">run our app</a>"

It should not take modifying any part of the registry to have a simple executable run in Firefox like it does in IE. I based my closing/deleting statement on quite a few articles, here are a couple of them

http://steelwhitetable.org/2007/07/19/running-executables-from-firefox
"Firefox doesn’t support opening Windows executable files (i.e. files with an .exe extension); you have to save it, then manually run it. I missed the ability to execute a program directly from a browser (as Internet Explorer allows)."

http://support.mozilla.org/en-US/questions/813720?s=running+executables+in+Firefox&r=10&e=es&as=s

http://support.mozilla.org/en-US/questions/763646

Thank you!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now