I too avoided the registry. My MSI Setup first checks the to see if the versioned directory exists, and if it does, then verifies that mscorcfg.dll exists in that directory (and extracts the build number from that file).
Note that with my testing, I've found that the uninstall for the .net framework does not always remove the registry entries or the directory, but always removes the files. Dave. -----Original Message----- From: dotnet discussion [mailto:[EMAIL PROTECTED]] On Behalf Of Brad Wilson Sent: Tuesday, April 09, 2002 7:26 AM To: [EMAIL PROTECTED] Subject: Re: [DOTNET] How to determine if .NET framework is already installed? Graeme Foster wrote: > I don't need to run any .NET code to determine whether or not .NET is > installed. I'm looking for a registry key, file version, or something > that the *installer* can check, at install time, to see if it's there. Check the version of \WINDOWS\SYSTEM32\MSCOREE.DLL maybe? That seems less good, though, because that's a shared file between all SxS versions of .NET, so checking just that version may yield a file that's newer than you expected, which doesn't tell you whether the precise framework version you're after is installed. You'd probably just want to check for its existence and _then_ also check for the proper version folder. So, why are you more willing to trust a registry key than a folder? Is there something magically delicious about the registry? :) Brad - avoiding the registry like the plague since moving to .NET ... -- Read my web log at http://www.quality.nu/dotnetguy/ You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com. You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.