IIS support EXE file download configuration method, with a diagram, take a look.
How to set up a file in IIS to download an EXE suffix, the. exe file cannot be downloaded by default.
In IIS, the. exe file cannot be downloaded by default and is prompted to not find the file when downloading. This is to improve the security of the website and its visitors to some extent. However, if we do need to be built on the IIS Web site to provide exe file downloads, how should be implemented?
In the HTTP protocol, each resource (the content that the URI points to) has a MIME type (that is, the so-called mimetype). In IIS, the file formats that can be downloaded are defined in the MimeType list, and no defined file suffixes can be downloaded.
Having understood this principle, we can add the. exe suffix to the MIME type list, so that you can download the EXE-formatted file.
The specific settings are as follows:
Open IIS Manager, right-click the site where you want to set the file to download EXE format, and select Properties. In the pop-up dialog box, select the HTTP Headers tab and click the MIME Type button at the bottom right of the tab to open the MIME Type dialog box. Then, in the MIME Type dialog box, select New, with the extension:. Exe,mime type you can fill it out here, and then make sure you go all the way.
In this way, the site, exe file can be downloaded.
If you want all sites on IIS to be able to download the exe file, right-click the Web site node under IIS and select Properties. Then set the MIME type.