views:

18

answers:

1

I was looking at Microsoft for a setup package for .NET 1.0 that includes SP3, so I don't have to install the framework first and then the service pack. But I didn't find any. Then I looked for the newer versions of the .NET framework and noticed that service packs are always an extra download/setup.

It seems there is no full setup including latest SP for any .NET version. Is this true? If yes, is it possible to create one on your own?

+1  A: 

I'm not sure I have ever seen a redistributable package that includes .Net 1.0 and Service Packs so you might have to go down the route of managing your prerequisites.

The problem you will have is that any program written in .NET will require .NET Framework to already be installed. Otherwise you will get an error message as soon as you attempt to run your application.

You will need to create a bootstrapper program, written for example in C++, that can perform the checks for .NET. IF .NET is missing you can get your bootstrapper to install .NET 1.0, and then any SP you desire.

Once your bootstrapper has prepared the environment, it can simply launch your main .NET application.

I have done something very similar, I have a C++ component that checks and ensures Windows Installer 3.1 and that at least .NET 2.0 is installed. If either of these is missing I automatically install them before passing control to my main .NET application.

There are lots of good articles for checking which version of .net frameworks are installed. Usually all it takes it a RegistryKey check.

http://blogs.msdn.com/b/astebner/archive/2004/09/14/229574.aspx http://stackoverflow.com/questions/198931/how-do-i-tell-if-net-3-5-sp1-is-installed

Ben Cawley