Thoughts about setup and deployment issues, WiX, XNA, the .NET Framework and Visual Studio
All postings are provided AS IS
with no warranties, and confer no rights. Additionally, views expressed
herein are my own and not those of my employer, Microsoft.
I am running Windows 7, and every time I restart the computer, an error message appears that tells me that I need to install the .NET Framework 2.0. When I try to download and install the .NET Framework 2.0 redistributable, setup fails and tells me that the .NET Framework 2.0 is already a part of my OS. How can I make this error message stop appearing every time I restart my computer?
Windows 7 comes with the .NET Framework 2.0 SP2, the .NET Framework 3.0 SP2, and the .NET Framework 3.5 SP1 installed as a part of the OS, and there is not a way to remove the .NET Framework 2.0 SP2 from Windows 7. That is why running the .NET Framework 2.0 redistributable fails on Windows 7.
In the past, when I’ve seen this type of error message appear on Windows 7, it has been caused by one of the following:
A missing .NET Framework 2.0 registry key
There is a way to repair the files that are a part of Windows by using SFC.exe, but that does not repair registry keys, so it won’t help in this case. In order to determine if any critical .NET Framework registry keys are missing from your computer, you can run the .NET Framework verification tool, choose to verify the .NET Framework 2.0, and see if it reports any errors during verification. If it reports any errors, you can open the log file for the verification tool and search for the string ***error*** to find more details about what is missing. If any registry keys are missing, you can manually add them using regedit.exe, or you can repair Windows to restore them.
An application that is using incorrect logic to detect whether or not the .NET Framework is installed.
In some cases, an application was created before Windows 7 shipped, and it contains incorrect logic for detecting the .NET Framework 2.0 if the .NET Framework 2.0 is installed as a part of the OS. If this is the case, I recommend checking for an updated version of the software on the manufacturer’s web site or looking for an FAQ on their web site to see if this is a known issue.
If you are not sure which application is causing this error message to appear, you can use the following steps to figure it out:
Note - the most common cause of this issue that I've run into so far is Lexmark printer software. If you don't find any applications by using the steps listed above, I suggest looking for any Lexmark software installed on your computer and see if uninstalling it helps eliminate this error message when you restart your computer.
<update date="3/29/2012"> Added a note about Lexmark printer software, which seems to be a common cause of this type of error based on my past experience. </update>
As announced earlier today on the Windows Phone Developer Blog, the final version of the Windows Phone SDK 7.1.1 Update has been released. The Windows Phone SDK 7.1.1 Update is a patch and not a standalone product, so you must install the Windows Phone SDK 7.1 before you can install the update. Here is some information to help you get started installing and using the Windows Phone SDK 7.1.1 Update:
What’s in the Window Phone SDK 7.1.1 Update:
Changes to the Windows Phone SDK 7.1.1 Update since the CTP:
Download links for the Windows Phone SDK 7.1 and the Windows Phone SDK 7.1.1 Update:
Documentation topics to help you get started using the Windows Phone SDK 7.1.1 Update: