How to install Visual Studio 2005 on XP with just SP1

Where I work there's a firewall application required in some parts of the network that doesn't play nicely with XP SP2.  So we're still on SP1 while the vendor sorts out the problem.  Meanwhile I still need to get work done, and I would much rathar be doing that work on Whidbey than Everett!

When trying to install Whidbey, it halts with a notice that SP2 is required to continue the installation.  So I discovered a hack to get the application installed on XP when SP2 isn't onboard.  Obviously this is in no way supported by Microsoft, but it does all appear to work, at least for Winforms and ASP.NET development.

  1. Copy your DVD or two CD set to a folder on your hard drive so you can edit one of the files.
  2. In the Setup folder is a file called vs_setup.pdi.  In its properties make sure that the Read Only attribute is not set.  Then open it with Notepad.
  3. Locate the fourth section, titled something like [Microsoft Visual Studio 2005 Professional Edition - ENU].
  4. The second line item there should be gencomp6.  Comment this line by placing a pound symbol in front of it, so that part of the file looks like this:

[Microsoft Visual Studio 2005 Professional Edition - ENU] gencomp95 #gencomp6 gencomp7

  1. Simply save the file, and run setup.exe.  Everything should work fine.
This article is part of the GWB Archives. Original Author: Lorin Thwaits

New on Geeks with Blogs

  • We Won The One Award I Actually Care About

    Full Scale made the Inc. 5000 for the fifth year straight, the 12th listing across my three companies. Here is why the one award you cannot buy is worth stopping for.

  • Your Customers Build the Features Now

    I let a tool I liked sit dead for a year rather than build the features I wanted. An MCP server meant I never had to, and your customers can do the same to your product.

  • Get the Size of a Directory in Linux the Easy Way

    du -sh for the quick answer, ncdu for the cleanup, df for the disk itself: every command for checking directory size in Linux, plus why du and df never agree.

  • Vim Search and Replace: The Ultimate Guide

    One :%s command replaces every match in a file before a find dialog would even open. The Vim substitute patterns worth the muscle memory: flags, ranges, capture groups, and multi-file edits.