Solved

Downloading .exe file

Posted on 2000-04-22
11
192 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 100 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
 
LVL 16

Expert Comment

by:maneshr
Comment Utility
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
Comment Utility
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
What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

 
LVL 23

Expert Comment

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

Author Comment

by:jthsu
Comment Utility
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
Comment Utility
Try changing the .exe MIME type mapping to application/zip.
0
 

Author Comment

by:jthsu
Comment Utility
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
Comment Utility
Something wrong. Can you try other computers?
0
 
LVL 11

Expert Comment

by:mouatts
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

In this tutorial I will show you how to provide a dynamic RTF document on your website generated with data from your database. For this tutorial you will need Microsoft Word or WordPad, WhizBase and Microsoft Access. In this tutorial I will show …
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

762 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

11 Experts available now in Live!

Get 1:1 Help Now