Click here to Skip to main content
Click here to Skip to main content

Installing Visual Studio 2005 Service Pack 1

By , 18 Dec 2006
 

Introduction

Visual Studio 2005 Service Pack 1 is a significant upgrade that should be installed at your earliest convenience. If you're like me, your friends will report absolutely flawless upgrade experiences while you sit and struggle. This article compiles a list of resources you may need for installation.

Please leave comments below if you have ideas or additional resources and I will incorporate them. I'm not affiliated with Microsoft so this is just from my personal experience.

Prerequisites

  • Visual Studio 2005

What's new in SP1

This list is growing. If you have links or information, please provide it in the comments and I'll add it here.

Installation

  1. Disable Software Restriction Enforcement
    1. Click Start -> Control Panel
    2. Open Administrative Tools
    3. Open Local Security Settings
    4. Click Software Restriction Policies
      If no software restrictions are defined, right click the Software Restriction Policies node and select New Software Restriction Policy
    5. Double click Enforcement
    6. Select "All users except local administrators"
    7. Click OK
    8. Reboot the machine
  2. (Optional) Disable the Patch Cache

    You can eliminate 1.3 GB of disk I/O, and cut the installation time significantly, by temporarily disabling the Patch Cache.

    • Download the patch.
    • Save the following to a batch file in the same directory you saved the SP1 install file:

    reg export HKLM\Software\Policies\Microsoft\Windows\Installer 
                                installer.reg
    reg add HKLM\Software\Policies\Microsoft\Windows\Installer /v 
                MaxPatchCacheSize /t REG_DWORD /d 0 /f
    net stop msiserver
    start /wait VS80sp1-KB926601-X86-ENU.exe
    reg delete HKLM\Software\Policies\Microsoft\Windows\Installer /v 
                MaxPatchCacheSize /f reg import installer.reg
    net stop msiserver
    del /q installer.reg 2>nul
    

    • Run the batch file
    • (Optional) Uninstall Visual C++
      The upgrade will apparently run much faster without C++. I haven't tested it, but you may want to consider uninstalling C++ and then reinstalling VC++ Express Edition if the day ever comes that you need C++.
    • Download Visual Studio 2005 Service Pack 1 and attempt an upgrade. If you're lucky it will work and you don't need the rest of this article. If not, see the list of troubleshooting links at the bottom.

The upgrade may not be easy! SP1 takes anywhere from 20 minutes to 1 hour to install. Ultimately, I had to uninstall Visual Studio 2005, reinstall, then apply the service pack. My VS2005 installation didn't just uninstall either. I had to manually remove files.

Once you finally have it installed, your Help > About dialog in VS2005 should look like this:

Troubleshooting

SP1 Release Notes Microsoft
Installation takes a long time or appears to start over Paul Wilson
Tips on optimizing the upgrade Scott Guthrie
Manual Uninstall: "Setup is unable to determine a valid ordering for the installation. See the error log for further details" when trying to uninstall Visual Studio 2003 or 2005 Microsoft
Silent install and other optimization tips Heath Stewart
"Software Restriction Policy..." Heath Stewart
Disabling Patch Cache Heath Stewart

About Benjamin Allfree

Benjamin Allfree runs Launchpoint Software Inc., a technology-agnostic company specializing in unparalleled custom software solutions. Benjamin spends most of his time researching architecture and new technology.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Ben Allfree
United States United States
Member
No Biography provided

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
Questionwindows become smaller and graphic problem...memberAka013 Feb '12 - 17:50 
after install update VS2005 SP 1 KB926601... any solution? now I'm trying to remove it but don't find a method to remove it, or I have to remove VS2005 and install it back?
GeneralMy vote of 5memberdylanberry17 May '11 - 8:03 
Essential when presented with installation issues!
GeneralFurther improvementsmemberAlex_Raider7 Sep '07 - 5:07 
1. Know where your temp folders and what in it
rightclick on "my computer" - > select popup menu "properties" -> advanced tab -> environment variables button. Then examine folders and clear. Temp folders should be placed on drives with enough free space
 
2. tune system for having large amount of virtual memory
 
3. See Heath Stewart's Blog
http://blogs.msdn.com/heaths/archive/2006/11/28/save-time-and-space-for-vs-2005-sp1-by-disabling-the-patch-cache.aspx
for further batch script improvement, he added /qn switch for silent install
also read microsoft knowledge base article for installer options
 
reg export HKLM\Software\Policies\Microsoft\Windows\Installer installer.reg
reg add HKLM\Software\Policies\Microsoft\Windows\Installer /v MaxPatchCacheSize /t REG_DWORD /d 0 /f
net stop msiserver
start /wait VS80-KBnnnnnn-X86-mmm.exe /qn
reg delete HKLM\Software\Policies\Microsoft\Windows\Installer /v MaxPatchCacheSize /f
reg import installer.reg
net stop msiserver
del /q installer.reg 2>nul
 
State of the Art!
Alex Raider / Flash inc.

GeneralBatch script improvementmemberabulka21 Mar '07 - 11:33 
I found that the script failed on the line
 
reg delete HKLM\Software\Policies\Microsoft\Windows\Installer /v MaxPatchCacheSize /f reg import installer.reg
 
saying Error: Too many command line parameters". The script continued OK and processed the rest of the commands in the batch file, so the whole shortcut (no cache files) installation process worked OK. Anyway I manually deleted the MaxPatchCacheSize key using regedit. You can split the line into two, it seems, to avoid this error:
 
reg delete HKLM\Software\Policies\Microsoft\Windows\Installer /v MaxPatchCacheSize /f
reg import installer.reg

 
thus the batch file becomes
 
reg export HKLM\Software\Policies\Microsoft\Windows\Installer installer.reg
reg add HKLM\Software\Policies\Microsoft\Windows\Installer /v MaxPatchCacheSize /t REG_DWORD /d 0 /f
net stop msiserver
start /wait VS80sp1-KB926601-X86-ENU.exe
reg delete HKLM\Software\Policies\Microsoft\Windows\Installer /v MaxPatchCacheSize /f
reg import installer.reg
net stop msiserver
del /q installer.reg 2>nul

 
P.S. I lost 1 gig of disk space after the install, though on another macine it was 1.7.
GeneralRe: Batch script improvementmemberBen Allfree21 Mar '07 - 11:55 
Thanks for this, excellent contribution.
 
Wow 1 gig. Better buy a 2 gig disk Wink | ;)
JokeI report...memberBartosz Bien19 Dec '06 - 9:45 
...an absolutely flawless upgrade experience. Cool | :cool:
 

GeneralRe: I report...memberBen Allfree19 Dec '06 - 17:02 
Ha! Laugh | :laugh:
 
Did you do steps #1 & #2 in the article or did you just run the installer?
GeneralRe: I report...memberBartosz Bien22 Dec '06 - 23:19 
It just shamelessly installed. Wink | ;)
However, the installation took quite a long time, so perhaps #2 could have helped if I had applied it.
 

GeneralWriting a good articlememberWalderMort19 Dec '06 - 2:02 
If your going to label an article "Installing Visual Studio 2005 Service Pack 1", perhaps you could write the content about the same topic. It's of no use to anybody to say "download and attempt to install", perhaps a list of reasons why to upgrade, and a list of visual ques during the install.
GeneralRe: Writing a good articlememberBen Allfree19 Dec '06 - 5:06 
Hi,
 
Great point.
 
Perhaps there is a better wording for it, but the first step is to try to install it. If nothing goes wrong, you don't need this article.
 
This article is really getting panned, but thanks for the comment! Smile | :)
 
Ben
 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web03 | 2.6.130523.1 | Last Updated 19 Dec 2006
Article Copyright 2006 by Ben Allfree
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid