Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Downloading .exe file

Posted on 2000-04-22
11
Medium Priority
?
199 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
What is a Denial of Service (DoS)?

A DoS is a malicious attempt to prevent the normal operation of a computer system. You may frequently see the terms 'DDoS' (Distributed Denial of Service) and 'DoS' used interchangeably, but there are some subtle differences.

 
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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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…
This tutorial will discuss the log-in process using WhizBase. In this article I assume you already know HTML. I will write the code using WhizBase Server Pages, so you need to know some basics in WBSP (you might look at some of my other articles abo…
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

722 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