Results 1 to 6 of 6

Thread: Hyperlink to Exe file

  1. #1
    Senior Member codenamevirus's Avatar
    Join Date
    Jun 2005
    Location
    Faridabad, Haryana, India
    Posts
    298

    Exclamation Hyperlink to Exe file

    Hi

    I have created a HTML page, which has a link to an exe file.
    The code is very small and normal as below:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head>
    <title>Welcome ABC</title>
    </head>
    <body>
    WELCOME ABC
    <a href="setup.exe" target="_self">Please click to download</a>
    </body>
    </html>


    As you can see that there's a hyperlink to a setup.exe file located in the same folder as the html file. But, when i click on this link, i get an error "Page cannot be found" with the following details:

    "HTTP Error 404 - File or directory not found.
    Internet Information Services (IIS)"

    I am using IIS 6.0 on windows server 2003, after googling I found out that there's some problem because of the MIME types and added the "EXE" Mime type with "application\octet-stream" to the folder containing the exe file (the root folder in my case), as mentioned here "http://support.microsoft.com/default.aspx?scid=kb;en-us;326965"

    But, even after doing this, I am still not able to download the exe file using the hyperlink.
    Can you please tell me, what I am doing wrong, or if I have missed anything? or what could be done to allow downloading the exe file from the link!

    Thanks
    Last edited by codenamevirus; March 25th, 2009 at 08:09 PM. Reason: more information added
    CodeNameVirus

  2. #2
    Junior Member
    Join Date
    Dec 2008
    Posts
    14
    hi.
    check rights for that file. what kind of users that can get access to that file.

  3. #3
    Senior Member codenamevirus's Avatar
    Join Date
    Jun 2005
    Location
    Faridabad, Haryana, India
    Posts
    298
    Quote Originally Posted by kvadrat View Post
    hi.
    check rights for that file. what kind of users that can get access to that file.
    Hi
    I checked the permissions and security and allowed everyone to read this file.
    But still the problem exists.
    what to do?

    ------------------------
    New update:
    I gave full rights to everyone also now, but still not working.
    Last edited by codenamevirus; March 26th, 2009 at 06:11 AM. Reason: Update to the post
    CodeNameVirus

  4. #4
    Junior Member
    Join Date
    Apr 2009
    Posts
    6
    surely its because of the target="_self", I've had this kinda thing working before by just usign the a href, without the target. it then gives you the option to run or download the file.

  5. #5
    THE Bastard Sys***** dinowuff's Avatar
    Join Date
    Jun 2003
    Location
    Third planet from the Sun
    Posts
    1,253
    This may be completely wrong since I haven't written HTML in years, but try changing target="_self" to target="_parent"
    09:F9:11:02:9D:74:E3:5B8:41:56:C5:63:56:88:C0

  6. #6
    Junior Member
    Join Date
    Apr 2009
    Posts
    8
    Your HTML looks fine, I think the IIS configuration might be to blame here.

    Checkout: http://blogs.msdn.com/david.wang/arc...-6-Part-2.aspx

Similar Threads

  1. Basic Hosts File Banner Ad-Blocking Tutorial
    By xierox in forum Other Tutorials Forum
    Replies: 0
    Last Post: March 5th, 2005, 05:34 AM
  2. The history of the Mac line of Operating systems
    By gore in forum Operating Systems
    Replies: 3
    Last Post: March 7th, 2004, 08:02 AM
  3. Newbies, list of many words definitions.
    By -DaRK-RaiDeR- in forum Newbie Security Questions
    Replies: 9
    Last Post: December 14th, 2002, 08:38 PM
  4. executable files
    By rcgreen in forum The Security Tutorials Forum
    Replies: 1
    Last Post: October 4th, 2002, 05:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •