Change all location settings in the Registry below
Visual Studio 2010
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0
Visual Studio 2008
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0
HKEY_CURRENT_USER\Software\Microsoft\MSDN\9.0
Microsoft SQL Server Management Studio
HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL Server
HKEY_CURRENT_USER\Software\Microsoft\MSDN\8.0