Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Downloading .exe file

Posted on 2000-04-22
11
Medium Priority
?
200 Views
Last Modified: 2013-12-25
Hi,

I wrote a .exe program and want to let people download it on my web site.

<a href="myprogram.exe">Download</a>

However, when I click "download" link, there is no window popping out to ask me if I want to open or save the file. I wonder if I need to do any setup in the web server.

I am currently using IIS4 to serve the site.
0
Comment
Question by:jthsu
11 Comments
 
LVL 23

Accepted Solution

by:
chensu earned 300 total points
ID: 2742304
Change the MIME type mapping so that the EXE entension maps "application/octet-stream".

For more information, see
http://www.microsoft.com/TechNet/iis/mimeiis.asp
0
 

Author Comment

by:jthsu
ID: 2742928
Hi,

I tried this and added .exe in the file list. However, it's still not working. What else can I do?

thanks,
0
 
LVL 23

Expert Comment

by:chensu
ID: 2744073
How did you add? Did you edit the MIME map of IIS 4? Have you tried other systems? What happened when you clicked the hyperlink on the client side?
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
LVL 16

Expert Comment

by:maneshr
ID: 2745453
you might have to replace the hyperlink with a script of some kind. (Eg.
<a href="/cgi-bin/some_script">....

i have a PERL script that will do that for you.

pl let me know if you would like to have the same.
0
 

Author Comment

by:jthsu
ID: 2748470
Hi Chensu, I think I followed whatever you said and add .exe into MIME. However, when I click the link, there is still no response(the whole page will just hang for 1 minute and then time out.)

I don't mind whatever I have to use as long as I can solve this problem asap. Thanks!!
0
 
LVL 23

Expert Comment

by:chensu
ID: 2748562
What happens if you rename your .exe to .zip or something else?
0
 

Author Comment

by:jthsu
ID: 2749788
If I rename it to .zip, the download window will pop out!

But it might confuse the users because users have to rename the file to .exe in order to use it.

I wonder if there any way to avoid this...

thanks
0
 
LVL 23

Expert Comment

by:chensu
ID: 2749847
Try changing the .exe MIME type mapping to application/zip.
0
 

Author Comment

by:jthsu
ID: 2750033
You mean in IIS, I should remove the previous setting and add new .exe mapping, right?

I have tried that. It goes back to the original situation. Still doesn't work...
0
 
LVL 23

Expert Comment

by:chensu
ID: 2750212
Something wrong. Can you try other computers?
0
 
LVL 11

Expert Comment

by:mouatts
ID: 2784688
When you added it to the mime-type list where did you do it.

If you did it at machine level it won't work as those settings only come into play when you create a new web site.


I would also suspect that it would cause problems if you did it at site level because I'm not convinced that .exe CGIs would be executed afterwards.

What you should do is chuck the exe in its own directory and mod the mime map of the virtual directory. (As a safeguard I would also ensure that this directory has only read access).

HTH

Steve

0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Suggested Courses

885 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