Launching a .exe from link?

Rahh

[H]ard|Gawd
Joined
Jan 14, 2005
Messages
1,607
I was wanting to put a link on my website that would launch an exe file like microsoft word (or the like) on the persons machine that would be clicking the link?

Can this be done?

Edit: I came across this LaunchinIE and was wondering if anyone has any experience with it or any software like it? Open to suggestions!!!
 

mikeblas

[H]ard|DCer of the Month - May 2006
Joined
Jun 26, 2004
Messages
12,776
Why do you want to do this? Just to start Word for them?

If your link leads to a file, the shell will try to find the program registered to work with that file extension. That is, if you link to a *.DOC file and the user has *.DOC files registered to be opened with WinWord.EXE, the shell will do so.
 

aringail

Weaksauce
Joined
May 9, 2005
Messages
65
In general it's not allowed to launch an executable from a web page. For obvious reasons. As a matter of fact any allowance of a web page to execute arbitrary code should be considered a major security hole.
 

Rahh

[H]ard|Gawd
Joined
Jan 14, 2005
Messages
1,607
This would be from a Internal Web. It would just be nice to add a link on our internal web to launch the software we are using I guess. I know putting a link to a .doc file would do that for word but thats not what I'm trying to accomplish. I will give the software I linked a try and see where that takes me.
 

mikeblas

[H]ard|DCer of the Month - May 2006
Joined
Jun 26, 2004
Messages
12,776
I think you've missed my point.

Linking to a *.DOC file will launch WinWord. That happens because, when WinWord installs, it registers itself as the handler for *.DOC files.

If you have some other internal application you'd like to launch, then have that application register itself for its file types at install time. Then, link the user to a file of that type. If you don't have control over the application you're launching, then your scenario fits into the scurity concern category: the browser can't allow you to run something the user might not be anticipating when they click on the link.
 

Rahh

[H]ard|Gawd
Joined
Jan 14, 2005
Messages
1,607
If you don't have control over the application you're launching, then your scenario fits into the scurity concern category: the browser can't allow you to run something the user might not be anticipating when they click on the link.

Unfortunatly that is the case, though I may be able to setup something because It's on the "Internal Web" that I want to do this. The program launchinIE is supposed to do what I'm looking for I think and am going to give it a shot. Security though is my concern.
 

ameoba

Supreme [H]ardness
Joined
Jan 9, 2001
Messages
6,413
Look at the installer for most downloadable Dell drivers. They open a README in IE when you unpack them that has a "run it" link at the bottom.
 

HorsePunchKid

[H]ard|Gawd
Joined
Nov 6, 2003
Messages
1,414
It's been a while since I've messed with this kind of thing, but the reason that works is because the README is on the local filesystem, right? That puts it in the "trusted" zone or whatever it's called, so IE puts the page in a much less restricted sandbox. Maybe that's all the OP needs to do: Get the users to put his web page on their "trusted sites" whitelist. Though if anyone I work with ever intentionally caused an executable to be launched on my computer through a web page, they would sure get an earful...
 

Hartlove

Limp Gawd
Joined
Aug 26, 2003
Messages
349
I just looked at my "local intranet" settings in IE, and noticed that intranet sites can link to a UNC path. Can your files be linked through UNC?
 

Rahh

[H]ard|Gawd
Joined
Jan 14, 2005
Messages
1,607
UNC maybe a work around for this since it is internal. Thanks for the tip!
 

nuclearfly

Limp Gawd
Joined
Aug 24, 2004
Messages
262
You can set the MIME type to the certain application. That way if it is a known type by MIME, it will open the appropriate app.

 
Top