Adding features to Visual Studio 2008 may fail to load setup components

Adding features to Visual Studio 2008 may fail to load setup components

  • Comments 7

When attempting to add features to Visual Studio 2008 after it has already been installed, you may see an error that reports,

A problem has been encountered while loading the setup components. Canceling setup.

Fix

Updated: a hotfix has been uploaded to Code Gallery to address this issue. As stated on the page,

Please be aware this Hotfix has not gone through full Microsoft product regression testing nor has it been tested in combination with other Hotfixes.

You may still use the original workaround posted below.

Workaround

You can choose to either remove older patches installed for Visual Studio 2008, or install Visual Studio 2008 Service Pack 1.

To remove older patches,

Windows Vista and Server 2008

  1. Click on Start
  2. Click on Control Panel
  3. Click on Programs
  4. Click on View installed updates
  5. Scroll to the grouping for Microsoft Visual Studio 2008
  6. For each patch,
    1. Select the patch
    2. Click the Uninstall button

Windows XP and Server 2003

  1. Click on Start
  2. Click on Control Panel
  3. Click on Add and Remove Programs
  4. Make sure View Updates is checked
  5. Scroll to Microsoft Visual Studio 2008
  6. For each patch nested beneath it,
    1. Select the patch
    2. Click the Remove button

Whether you have uninstalled older patches or installed VS2008 SP1, after finished run setup from the Programs menu and not from the installation media to add additional features.

Windows Vista and Server 2008

  1. Click on Start
  2. Click on Control Panel
  3. Click on Programs
  4. Click on Uninstall a program
  5. Select Microsoft Visual Studio 2008
  6. Click the Uninstall/Change button

Windows XP and Server 2003

  1. Click on Start
  2. Click on Control Panel
  3. Click on Add and Remove Programs
  4. Select Microsoft Visual Studio 2008
  5. Click the Uninstall/Change button

Description

This problem is caused when older patches added new Windows Installer features to the product to support servicing scenarios. Patches KB944899v2 and newer – including VS2008 SP1 - update the setup components to remove this incompatibility.

Because the setup components must be updated, only the cached setup components on the hard disk can be replaced. Running setup from Add/Remove Programs (ARP) runs the locally cached setup components in order to add new features without causing the error described. Running setup from the installation media will use the incompatible setup components causing the error to occur again.

Leave a Comment
  • Please add 5 and 6 and type the answer here:
  • Post
  • pfff, given up, after removing the listed newer update as indicated here and selecting visual 2008 and selecting Change / REmove of M.V. Studio 2008 Prof. Edi. - ENU, selecting Add / remove features did not show the failed SQL component as an option to install. And is indicated here, running setup from the media did not work either...

  • Updating to sp1 then going to the programs and features and updating through that menu worked for me.  Note that after updating to sp1 I went to the dvd and tried the VS install again and this didn't work, guess I should have read the entire post.

  • Tried this but still doesn't work.

    I wanted to add Visual Basic to my Team Suite installation. Team Suite was totally up to date (including SP1) but whatever route I tried to add the VB 'feature' it failed.

    Only one solution helped: reinstall everything... :(

  • Excellent, finaly, this was the information I needed after 2 hours of uninstalling stuff (http://msdn.microsoft.com/en-us/vs2008/bb968856.aspx).

    Thanks.

  • Thanks Stewart,

    for your valuable solution, after spending so many hours and trying so many combination for the solution i succeeded with only your solution by removing visual studio team 2008 updates.

    win-7-64 bit- visual studio 2008- install/uninstall : solution : Uninstall updates for vs08 = works fine

    Thanks.

  • uninstalling updates helped me..

  • Thanks .. and keep up the good work

Page 1 of 1 (7 items)