InstalledCheck .NET 2.0 x64

Jul 26, 2010 at 10:57 PM
Edited Jul 26, 2010 at 10:59 PM
I have an InstalledCheck for the .Net Framework 2.0 for x64. When I run setup.exe for the first time the .NET Framework 2.0 is installed. When I run setup.exe a second time, InstalledCheck should recognize that the .NET Framework is installed. What actually happens is that the .NET Framework is redownloaded from the web and then, when it attempts to install it, the repair dialog comes up. What should happen is InstalledCheck should recognize that the .NET Framework is installed. I have been through the documentation on InstalledCheck numerous times, have looked through all of the samples provided and have searched the web. I cannot seem to find a correct solution to why the InstalledCheck isn't working. The following is my code for the InstalledCheck: <installedcheck path="SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727" fieldname="Version" fieldvalue="2.1.21022" defaultvalue="False" fieldtype="REG_SZ" comparison="version" rootkey="HKEY_LOCAL_MACHINE" wowoption="WOW64_64" type="check_registry_value" description="Installed Check" /> Any help is appreciated. Thanks, Katelyn
Coordinator
Jul 27, 2010 at 2:30 AM

What does the log file say about this installed check?

Jul 27, 2010 at 3:48 PM
2010-07-26 10:37:21 Checking whether registry value 'SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727\Version' exists 2010-07-26 10:37:21 Opening 64-bit registry view (KEY_WOW64_64KEY) 2010-07-26 10:37:21 *** No registry key found: SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727\Version, default value: false 2010-07-26 10:37:21 -- Microsoft .NET Framework 2.0 SP1 (x64) (Microsoft .NET Framework 2.0 SP1 (x64)): NOT INSTALLED This is the same whether the .NET Framework 2.0 is already installed or not.
Coordinator
Jul 28, 2010 at 10:41 AM

Look in registry, what keys do you have under NDP?

Maybe you've actually packaged .NET framework 2.0 and not 2.0 SP1? This is what I get on XP 64 with the same configuration and .NET 2.0 SP1 installed.

2010-07-28 06:39:12 Checking whether registry value 'SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727\Version' exists
2010-07-28 06:39:12 Opening 64-bit registry view (KEY_WOW64_64KEY)
2010-07-28 06:39:12 Registry value: 2.2.30729
2010-07-28 06:39:12 -- Microsoft .NET Framework 2.0 SP1 (x64) (Microsoft .NET Framework 2.0 SP1 (x64)): INSTALLED

Jul 28, 2010 at 2:46 PM
That was exactly the issue. Thanks for your help.