tags:

views:

28

answers:

1

Is it possible to run an msi installation file remotely from an Asp.Net web server? I'd like to have a button labeled "download" where a visitor who browses to the web page and clicks the button can run an msi file to install a seperate windows application (in this case, a wpf application) onto their computer. In the event that the installation is incomplete, I wouldn't want to leave the msi file lying around on their desktop or computer. For some reason, every time I search for this information, I only find tutorials on deploying websites rather than how to deploy an application from a website.

Many thanks in advance!

Andrew

A: 

Look into ClickOnce (though it's IE and firefox (with plugin) only). Otherwise, if .Net is already installed and you can put everything in one executable, there's no installing needed. The .exe file will just run.

Joel Coehoorn
@Joel - Thanks for the response. I looked into ClickOnce, but it won't let you create a folder in the "Program Files" directory. It will run the application on install, which is cool, since this would allow me to add extra one-time setup code to the application. Plus, publishing with ClickOnce will create an .htm file that can be added to a website, which is pretty much what I'm looking for. The only problem is that it doesn't offer as many customization options as an .msi (I don't think, anyway...).
Andrew
Also, what do you mean when you say "The .exe will just run."? Can I do something in asp.net like Server.Transfer(Server.MapPath(exeVirtualPath)) in order to cause it to execute on the browser's machine? I've never done anything like that before, kinda new to this...
Andrew
@Joel - My bad, I don't know why I didn't understand what you said about the .exe file running. It makes sense. Still, is there a way to run a .msi file remotely from a website? I guess there might not be ...
Andrew