Tuesday, April 24, 2012

Visual Studio crashes when trying to adding/edit a macro

Some days ago I wanted to add a macro to my new installation of MS Visual Studio 2010 and I received the following error message:

Cannot find one or more components. Please reinstall the application.

The installation of Visual Studion seems corrupt. After some digging I found the solution and only needed to repair the installation, and not to do a complete re-installation. Follow the instructions at this site if you experience the same problem.

If the link is broken, this is what to do:
  1. Delete the following file:
    * On a 64-bit operating system: "%ProgramFiles(x86)%\Microsoft Visual Studio 9.0\Common7\IDE\1033\Microsoft.VSDesignerUI.dll"
    * On a 32-bit operating system: "%ProgramFiles%\Microsoft Visual Studio 9.0\Common7\IDE\1033\Microsoft.VSDesignerUI.dll"
  2. On the Add or Remove programs page, select Uninstall/Change Visual Studio 2010 and then click Next.
  3. Select Add or Remove features.
  4. Clear and then re-select any of the features in the list. This causes the update state to be enabled.
  5. Finish the Setup wizard. Visual Studio Macro Tools should be installed.

No comments:

Post a Comment