Avatar of soffcec
soffcec
Flag for Iceland asked on

Running exe files on IIS on Windows 2012

When I open my website eg. http://somesite.dot/myprogram.exe
The the server sends the file myprogram.exe for downloading instead of running it on the webserver.
I have been running those programs on 2003 server but I don´t know for sure how to do it on 2012
Windows Server 2012Microsoft IIS Web Server

Avatar of undefined
Last Comment
soffcec

8/22/2022 - Mon
Mark Bullock

You can try either of these methods in the HTML file I attached as an example. I tested them in IE 11.

1. Use the file protocol instead of http. In IE11 I get a prompt to run or save.

2. I saw a solution on Microsoft's support site to use an IFRAME with a list of programs in the directory you want. Double-click on the .exe file you want to run.
My example assumes you have a program called putty.exe in \Program Files. You would probably change the path to a shared fileserver.
test.html
exeRunner.png
soffcec

ASKER
I think you are misunderstanding me.
The server is supposed to run myprogram.exe and send me the results to my webbrowser, just like running .php, where I also have problem. I have no problem running .html files.
ASKER CERTIFIED SOLUTION
soffcec

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
soffcec

ASKER
This is solved.  Enabled CGI-Exe in Handler Mappings.
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck