Archive for October, 2006

Writing an Installer for ASP.NET Applications Part 1

I’m writing this up in the hopes that it will someday help someone avoid going through what I have for the last several days. I will attempt to describe how to use Visual Studio 2005 to create a Windows Installer msi file that will install asp.net files, create a virtual directory in IIS, make sure that ASP.NET is installed and enabled for IIS, and also make sure that the script mappings for ASP.NET are installed. I’m using C# for coding where needed.

Just to cut to the chase, the real challenge is figuring out and correcting the state of ASP.NET and IIS. Depending on the order of installing IIS and .NET, and probably with some other unknown factors thrown in, IIS may be all set up with ASP.NET and ready to go or it may not have anything from ASP.NET installed at all. ASP.NET may be installed but the script mappings might not be in place, or maybe the script mappings are there. IIS 6.0 adds a twist in that you can have everything installed but the ASP.NET extensions might not be enabled - because, you know, usually when you install something you don’t want to actually be able to use it. Read the rest of this entry »

Published in: ASP.NET, None | on October 20th, 2006 | 5 Comments »