Download Link of * .exe

1

I need to download a * .exe file via link in the tag href, I did this:

<a href="remoto.exe"><input type="button" id="botao" title="Suporte HSS" value="Suporte HSS"></a><br><br><br>

But always download the error. If I change to download an image the link works normally. Do you need any changes to download * .exe file?

    
asked by anonymous 10.10.2017 / 16:36

3 answers

2

If the error is something like:

  

Interrupted

or

  

Failed

or

  

network failure

There is no way to solve HTML, using the download attribute of HTML5 will not make it work, .exe usually goes down directly, this attribute has nothing to do with the problem. >

It is likely to be some configuration on your server, you can not analyze it with just a tool like WireShark or perhaps analyzing the Apache settings.

But it is more likely to be something on your computer, such as an antivirus that blocks, .exe extension, anti-virus usage on the company computer, it always blocks .exe .

  

I did a similar situation, I created a patch for employees to install the software update by themselves, they downloaded .exe , however it did not work, I went to check it and it was the same error that your

So be sure to try disabling:

  • antivirus
  • windowsdefender

And try to download again, it will probably work, however this is not a good way or a solution, after all it is not all computers that you will be able to do at the time of download.

The ideal would be to change the extension to something like .zip , this made the downloads no longer interrupted.

    
10.10.2017 / 18:09
1

You should add a download attribute to your tag

link

<a href="/images/myw3schoolsimage.jpg" download>
  Download
</a>

Another thing that caught my attention is that you are adding a link in an input type="button", which does not seem right.

If it does not work you can add a small form to generate the download button

<form method="get" action="SEUAQUIVO.exe"> 
  <button type="submit">Download!</button>
</form> 
    
10.10.2017 / 16:43
1

Places the download attribute in the <a> tag.

    
10.10.2017 / 16:43