How to run an .exe from FireFox

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?
LVL 1
philtukeyAsked:
Who is Participating?
 
basicinstinctCommented:
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
 
Anuradha GoliSystems Development / Support SpecialistCommented:
Try installing addon for Firefox and restart firefox to open download
https://addons.mozilla.org/en-US/firefox/addon/opendownload/
0
 
philtukeyAuthor Commented:
Ok but this will be for 100 people and I do not want to deploy an addon on each persons computer.
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
basicinstinctCommented:
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
 
philtukeyAuthor Commented:
Thanks Basicinstinct. However I am not a programmer so the link you send me to makes no sense.
0
 
philtukeyAuthor Commented:
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
 
basicinstinctCommented:
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
 
basicinstinctCommented:
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
 
philtukeyAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.