The .NET blog

Installing the .NET framework along with your application

September 2, 2008

One of my biggest concerns when starting to build .NET applications, was the lack of framework installations around the world. Microsoft were promising to push it through Windows Update and Windows XP SP2, but that part didn’t really work for them until Windows Vista was released, which included both .NET 2.0 and .NET 3.0. However, since there are still quite a few Windows XP machines out there, and even worse, Windows 98 and Windows Me machines, you really can’t expect everyone to have the required version of the .NET framework installed.

One alternative is to use an expensive product which will bundle your application together with at least parts of the framework, but it usually IS very expensive, and it will result in a pretty big file, which you have to distribute. That might be good enough in your scenario, but for me, I wanted to be able to distribute only my own files.

If you’re using a very fancy installer, it might support the installation of the .NET framework from the beginning, but personally, I use the very neat and very lightweight Inno Setup. It’s free, easy to use, it supports command line operations, has a lot of options and a scripting language for you to extend your setups with, and it produces fast and very well compressed EXE setup files. I really do recommend it.

Since Inno Setup supports scripting, this guy Andrew made a very cool extension, which will automatically download and install the .NET framework to the clients computer, if it’s not already present. You can read more about it here and find the mentioned script here. I think that it’s a very elegant solution to a problem that a lot of .NET developers will face, while we still wait for the framework to be present on every computer in the world :)

Filed under: General — admin @ 11:51 am

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment




© net-tutorials.com 2006 - 2008