So to run a Dot net application , we actually need to runa native
No, you don't need to do that - you might need to resort to a native
app to determine whether or not the .NET framework is installed. To
actually RUN the .NET app, you don't need this - the .NET app will run
just fine (or crash, if the framework is missing).
Could not microsoft just put in a small piece of code in the exe to
check for and then help in downloading the code.
Yes, they could - but that would be good ONLY in the very RARE case
where you don't have the .NET framework installed - once it's
installed, and everything's good to go, you would keep on checking for
a condition that's already fulfilled - pretty pointless IMHO.
It comes down to a matter of installation / deployment - in order to
properly run .NET apps, you need to make sure the .NET framework is
there and ready - for now, that's a bit of a pain, since most likely,
it's not there yet. In a couple of years, the .NET framework will be
delivered with all new WIndows versions, and you won't even have to
think about that anymore.
So for now - just make sure YOUR installation checks for the presence
of .NET, and if it is missing, offers to install it. This is
definitely a good feature for any installers out there - check for the
..NET framework and install if needed. But I really don't think it
should be part of all your .NET apps, and their app loader.
Marc
================================================================
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch