Tips on installing Visual Studio 2010 SP1 - Jon Galloway

Tips on installing Visual Studio 2010 SP1

UPDATED 3/14/2011 with Web Platform Installer links

Visual Studio SP1 went up on MSDN downloads (here) on March 8, was released publicly March 10 here, and is available via the Web Platform Installer in two flavors:

You can find out more about Visual Studio 2010 SP1 via the release announcements:

There's a lot of info on what's in Visual Studio 2010 SP1 in Scott Hanselman's post when the beta was released here: Visual Studio Explosion! - VS2010 SP1 *BETA* Released and Context

I started on this post with tips on installing VS2010 SP1 when I realized I’ve been writing these up for Visual Studio and .NET framework SP releases for a while (e.g. VS2008 / .NET 3.5 SP1 post, VS2005 SP1 post). Looking back the years of Visual Studio SP installs (and remembering when we’d get up to SP6 for a Visual Studio release), I’m happy to see that it just keeps getting easier. Service Packs are a lot less finicky about requiring beta software to be uninstalled, install more quickly, and are just generally a lot less scary. If I can’t have a jetpack, at least my future provided me faster, easier service packs.

Disclaimer: These tips are just general things I've picked up over the years. I don't have any inside knowledge here. If you see anything wrong, be sure to let me know in the comments. You may want to check the readme file before installing - it's short, and it's in that new-fangled HTML format.

On with the tips!

Before starting, uninstall Visual Studio features you don't use

Visual Studio service packs (and other Microsoft service packs as well) install patches for the specific features you’ve got installed. This is a big reason to always do a custom install when you first install Visual Studio, but it’s not difficult to update your existing installation. Here’s the quick way to do that:

Tap the windows key and type “add or remove programs” and press enter (or click on the “Add or remove programs” link if you must).
Modifying Visual Studio 2010 Installation

 

Type “Visual Studio 2010” in the search box in the upper right corner, click on the Visual Studio program (the one with the VS infinity looking logo) and click on Uninstall/Change.
2011-03-09 10h59_46

Click on Add or Remove Features

Modifying Visual Studio 2010 Installation

The next part’s up to you – what features do you actually use? I’ve been doing primarily ASP.NET MVC development in C# lately, so I selected Visual C# and Visual Web Developer.

Remember that you can install features later if needed, and can also install the express versions if you want. Selecting everything just because it’s there - or you paid for it – means that you install updates for everything, every time.

When you’ve made your changes, click on the Update button to uninstall unused features.

VS2010 - Small Install

Shut down all instances of Visual Studio

It probably goes without saying that you should close a program down before installing it, partly to avoid the file-in-use-reboot-after-install horror.

Additional "hunch / works on my machine" quality tip: On one computer I saw a note in the setup log about Visual Studio a prompt for user input to close Visual Studio, although I never saw the prompt. Just to  be sure, I'd personally open up Task Manager and kill any devenv.exe processes I saw running, as it couldn't hurt.

Use the web installer

I use the Web Installers whenever possible. There’s no point in downloading the DVD unless you’re doing multiple installs or won’t have internet access. The DVD IS is 1.5GB, since it needs to be able to service every possible supported installation option on both x86 and x64.

The web installer is 776 KB (smaller than calc.exe), so you can start the installation right away. Like other web installers, the real benefit is that it only installs the updates you need (hence the reason for step 1 – uninstalling unused components). Instead of 1.5GB, my download was roughly 530MB.

If you’re installing from MSDN (this link takes you right to the Visual Studio installs), select the first one on the list:

2011-03-09 12h43_34

The first step in the installation process is to analyze the machine configuration and tell you what needs to be installed. Since I've trimmed down my features, that's a pretty short list. The time's not far off where I may not install SQL Server on my dev machines, just using SQL Server Compact - that would shorten the list further.

2011-03-09 13h06_20

When I hit next, you can see that the download size has shrunk considerably.

2011-03-09 13h07_20

When I start the install, note that the installation begins while other components are downloading - another benefit of the web install.

2011-03-09 13h09_26

On my mid-range desktop machine, the install took 25 minutes.

What if it takes longer?

According to Heath Stewart (Visual Studio installer guru), average SP1 installs take roughly 45 minutes. An installation which takes hours to complete may be a sign of a problem: see his post Visual Studio 2010 Service Pack 1 installing for over 2 hours could be a sign of a problem.

Why so long?

Yes, even 25 minutes is a while. Heath's got another blog post explaining why the update can take longer than the initial install (see: A patch may take as long or longer to install than the target product) which explains all the additional steps and complexities a patch needs to deal with, as well as some mitigation steps that deployment authors can take to mitigate the impact.

Other things to know about Visual Studio 2010 SP1

Installs over Visual Studio 2010 SP1 Beta

That's nice. Previous Visual Studio versions did a number of annoying things when you installed SP's over beta's - fail with weird errors, get part way through and tell you needed to cancel and uninstall first, etc. I've installed this on two machines that had random beta stuff installed without tears.

That Readme file you didn't read

I mentioned the readme file earlier (http://go.microsoft.com/fwlink/?LinkId=210711 ). Some interesting things I picked up in there:

2.1.3. Visual Studio 2010 Service Pack 1 installation may fail when a USB drive or other removeable drive is connected

2.1.4. Visual Studio must be restarted after Visual Studio 2010 SP1 tooling for SQL Server Compact (Compact) 4.0 is installed

2.2.1. If Visual Studio 2010 Service Pack 1 is uninstalled, Visual Studio 2010 must be reinstalled to restore certain components

2.2.2. If Visual Studio 2010 Service Pack 1 is uninstalled, Visual Studio 2010 must be reinstalled before SP1 can be installed again

2.4.3.1. Async CTP If you installed the pre-SP1 version of Async CTP but did not uninstall it before you installed Visual Studio 2010 SP1, then your computer will be in a state in which the version of the C# compiler in the .NET Framework does not match the C# compiler in Visual Studio. To resolve this issue: After you install Visual Studio 2010 SP1, reinstall the SP1 version of the Async CTP from here.

Description of what's in Visual Studio 2010 SP1

There's a KB article which describes Visual Studio 2010 SP1, including the issues that are fixed and the technology improvements that are added in Visual Studio 2010 SP1: http://support.microsoft.com/kb/983509

Hardware acceleration for Visual Studio is disabled on Windows XP

Visual Studio 2010 SP1 disables hardware acceleration when running on Windows XP (only on XP). You can turn it back on in the Visual Studio options, under Environment / General, as shown below. See Jason Zander's post titled Performance Troubleshooting Article and VS2010 SP1 Change.

Published Wednesday, March 9, 2011 3:08 PM by Jon Galloway

Comments

# re: Tips on installing Visual Studio 2010 SP1

I guess the next tip would be how to slipstream a new install with SP1?

Wednesday, March 9, 2011 8:17 PM by Eric Williams

# re: Tips on installing Visual Studio 2010 SP1

I think I've found a bug already. I use External Tools to generate Subsonic classes and this utilises the $(ProjectDir) argument. However, since I switched over to using IIS Express for a particular project the ProjectDir no longer maps to the current project directory, it maps to "C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\" instead. It actually maps to "http:/\\" which I guess defaults back to the VS installation directory.

Is this a bug? Anyone else see this? Where should I register this bug if it one?

Thursday, March 10, 2011 5:01 AM by James

# re: Tips on installing Visual Studio 2010 SP1

And what'll happen after SP1, one decides to install additional components, like F# or C++? re-run SP1 installer?

Thursday, March 10, 2011 5:32 AM by Aaron Seet

# re: Tips on installing Visual Studio 2010 SP1

I believe section 2.4.3.1 is incorrect - it at least implies that the *existing* CTP is compatible with SP1; as far as I can tell from what I've read elsewhere on the web, it isn't... or at least, it won't be stable.

From what I understand, we should wait for an async CTP refresh for SP1.

Thursday, March 10, 2011 5:33 AM by Jon Skeet

# re: Tips on installing Visual Studio 2010 SP1

Great article!

If I remove features that I do not need and then install SP1, then add them later (e.g. F# - I want to take a look/use but just don't have the time at the moment)... will I need to reapply SP1?

Lastly, possibly unrelated, but I have been having problems installing MVC 3 (blogged on blog.williamhilsum.com/.../error-0x80070643-installing-aspnet-mvc.html ) which is driving me mad as I really want to start MVC3/Razor.

All I have done is (in this order)

1. Install VS a while ago

2. Install Web Matrix beta a while ago

3. Install VS SP1 yesterday

4. Tried to install MVC 3 - it failed

5. Removed Web Matrix Beta as I thought may be a conflict

And it still fails... Looking in event log shows that each time it fails I get the following:

Application: WebConfigCA.exe

Framework Version: v4.0.30319

Description: The process was terminated due to an unhandled exception.

Exception Info: System.ArgumentException

Stack:

  at System.Web.Configuration.VirtualDirectoryMapping..ctor(System.Web.VirtualPath, System.String, Boolean, System.String)

  at System.Web.Configuration.VirtualDirectoryMapping..ctor(System.String, Boolean)

  at WebConfigCA.Program.GetWebConfig(System.String)

  at WebConfigCA.Program.RemoveAssemblyReferences(System.String, System.String[])

  at WebConfigCA.Program.Main(System.String[])

At the moment, I am thinking of just reinstalling Windows, but I would really like to avoid this.

I do not think I have done anything out of the ordinary apart from WebMatrix Beta and was just wondering if there is anyway to fix this?

Thursday, March 10, 2011 9:49 AM by wil2

# re: Tips on installing Visual Studio 2010 SP1

Thursday, March 10, 2011 11:28 AM by Jon Galloway

# re: Tips on installing Visual Studio 2010 SP1

One more - for people doing a fresh install of VS 2010 be sure to install the Windows Phone tools before installing SP1. Otherwise you get an error when starting VS stating that "SP1 hasn't been applied to all components of VS; please reapply SP1" and then need to go through the SP1 install process again (which does fix the issue).

Thursday, March 10, 2011 12:56 PM by James Cadd

# re: Tips on installing Visual Studio 2010 SP1

Great!

Some great updates in the service pack here!

Friday, March 11, 2011 6:13 AM by OwenDavies

# re: Tips on installing Visual Studio 2010 SP1

SP1 also turns off Automatic Outlining (at least for .ASPX markup files).   That was might nice of MSFT to turn that off for us.

Friday, March 11, 2011 8:44 AM by Jerry T

# re: Tips on installing Visual Studio 2010 SP1

I'm not certain if this is still an issue, but the Beta for SP1 wouldn't install for me until I'd removed all of the hotfixes I'd applied to Visual Studio.

Friday, March 11, 2011 6:46 PM by Em Jay

# re: Tips on installing Visual Studio 2010 SP1

Nice article - but what's with all the insipid comments?   For heavens sake the signal to noise ratio is off the chart with all the nonsense comments - sadly that includes this one ...

Tuesday, March 15, 2011 12:42 PM by Arthur Dent

# re: Tips on installing Visual Studio 2010 SP1

can't use the web pi behind a proxy that needs authentication! bummer!

is there a way to download the service pack - not just the webpi?

Wednesday, March 16, 2011 3:56 AM by mrblitz

# re: Tips on installing Visual Studio 2010 SP1

It took many years to get intellisense in SQL, and now thanks to this SP, it's gone. This was a known issue but they shipped it anyway. Now 3 months later we still don't have a fix.

Really nice.

Sunday, June 19, 2011 6:55 PM by mj

# re: Tips on installing Visual Studio 2010 SP1

I am working at a client site and they have some computers with premium (mine) and most with professional vs 2010.  After checking in code to TFS and letting others developers check out the solution they were unable to open it.  I'm logged into a virtual machine and I installed vs 2010 ultimate, and it still would not open it.  I am Using this link with the Web Platform Installer as since I'm using MVC3 Tooling Update, Nuget , IIS Express etc... so that is good that it is rolled up.  It is taking forever to install (Step 1 of 15).  

Tuesday, July 26, 2011 4:53 PM by Tom Stickel

# re: Tips on installing Visual Studio 2010 SP1

Fresh Install w2008r2 sp1 64 bit

Fresh Install VS2010

Trying to apply sp1, gets stopped installing silverlight sdk

Any solution that doesn't involve spending hours and hours, like for example having VS2010 with service pack 1 applied ?

Thanks

Monday, October 3, 2011 3:09 PM by xaviguardia

# re: Tips on installing Visual Studio 2010 SP1

Hi I am trying to install VS2010 Pro. I have vb6 and vc++6 installed already on my windows7. So when i tried to install VS2010 on top of them it says installation is complete but it does not really install the software

Friday, August 17, 2012 9:22 AM by AP

# re: Tips on installing Visual Studio 2010 SP1

I am in fact thankful to the owner of this web site

who has shared this impressive paragraph at here.

Tuesday, January 22, 2013 7:31 PM by Martinez

# re: Tips on installing Visual Studio 2010 SP1

Have you ever considered about including a little bit more than just your articles?

I mean, what you say is fundamental and everything.

However just imagine if you added some great graphics or videos to give your posts more, "pop"!

Your content is excellent but with pics and videos, this website could

certainly be one of the best in its niche. Great blog!

Tuesday, February 5, 2013 3:21 PM by Mccants

# re: Tips on installing Visual Studio 2010 SP1

I savour, lead to I found just what I used to be looking for.

You have ended my 4 day long hunt! God Bless you man.

Have a great day. Bye

Wednesday, February 6, 2013 12:21 PM by Nunez

# re: Tips on installing Visual Studio 2010 SP1

I have been browsing on-line greater than three hours

these days, yet I never discovered any fascinating article like yours.

It's lovely value enough for me. Personally, if all website owners and bloggers made excellent content as you did, the web will likely be much more useful than ever before.

Tuesday, February 19, 2013 12:43 AM by Dutton

# re: Tips on installing Visual Studio 2010 SP1

I'm impressed, I have to admit. Seldom do I encounter a blog that's both

educative and interesting, and let me tell you, you have

hit the nail on the head. The problem is an issue that too

few men and women are speaking intelligently about. Now i'm very happy that I found this during my search for something regarding this.

Friday, March 1, 2013 9:36 PM by Oliphant

# re: Tips on installing Visual Studio 2010 SP1

Every weekend i used to visit this web site, because i

wish for enjoyment, as this this site conations in fact good funny stuff

too.

Saturday, March 2, 2013 8:11 AM by Pino

# re: Tips on installing Visual Studio 2010 SP1

This piece of writing will help the internet users for setting up new website or even

a blog from start to end.

Monday, March 4, 2013 2:59 PM by Holliman

# re: Tips on installing Visual Studio 2010 SP1

Try to get both soluble and insoluble doc" has a constitute. according to local Fable, people began cultivating the plant afterward noticing chlorogenic acerb when rosted. green coffee beans are not yet Roast and Hence they receive a footling odor. Not getting enough sopor volition too press release gherkin 22-week study of the outcome of green coffee Bean plant educe on exercising weight personnel casualty. We are mislay your exercising weight, then Gren Cofee Bean plant Extract weightiness exit is the Best alternative for you.

Tuesday, March 5, 2013 8:49 PM by Pellegrino

# re: Tips on installing Visual Studio 2010 SP1

What i do not understood is if truth be told how you're no longer actually much more smartly-preferred than you might be right now. You are very intelligent. You understand therefore significantly on the subject of this subject, produced me in my view imagine it from numerous varied angles. Its like women and men are not fascinated except it's something to do with Lady gaga! Your individual stuffs great. At all times care for it up!

Wednesday, March 20, 2013 4:17 PM by Rodriguez

# re: Tips on installing Visual Studio 2010 SP1

Do you mind if I quote a few of your articles as long as I provide credit and sources back to your site? My blog is in the exact same niche as yours and my users would really benefit from some of the information you present here. Please let me know if this alright with you. Many thanks!

Sunday, March 31, 2013 4:13 AM by Vieira

# re: Tips on installing Visual Studio 2010 SP1

My partner and I stumbled over here from a different page and thought I should check things out. I like what I see so now i’m following you. Look forward to looking into your web page again.

Monday, April 1, 2013 9:34 PM by vlueubmf@yahoo.com

# re: Tips on installing Visual Studio 2010 SP1

The carbonation can lead to type 2 diabetes. So in order to keep your hands out of the box and divide it among the number of British men admitted to hospital for anorexia has doubled in the past year.

Friday, April 5, 2013 12:43 AM by Fortier

# re: Tips on installing Visual Studio 2010 SP1

Great beat ! I wish to apprentice at the same time as you amend your web site, how could i subscribe for a weblog site? The account helped me a applicable deal. I have been a little bit familiar of this your broadcast provided vibrant clear concept

Friday, April 12, 2013 9:08 PM by Cotter

# re: Tips on installing Visual Studio 2010 SP1

I tend not to create many responses, however I browsed some of the comments here  Tips on installing Visual Studio 2010 SP1. I actually do have 2 questions for you if you don't mind. Is it simply me or does it appear like a few of these comments look like they are written by brain dead individuals? :-P And, if you are writing on additional sites, I would like to follow you. Would you list of every one of all your social networking sites like your linkedin profile, Facebook page or twitter feed?

Sunday, April 14, 2013 4:10 PM by Mattison

# re: Tips on installing Visual Studio 2010 SP1

I am genuinely grateful to the owner of this website who has shared this wonderful piece of writing at at this place.

Sunday, April 14, 2013 4:22 PM by Chance

# re: Tips on installing Visual Studio 2010 SP1

My family always say that I am wasting my time here at web, however I know I am getting knowledge every day by reading thes good articles or reviews.

Sunday, April 14, 2013 5:41 PM by Hughey

# re: Tips on installing Visual Studio 2010 SP1

That is a really good tip particularly to those fresh to the blogosphere. Simple but very precise info… Many thanks for sharing this one. A must read post!

Thursday, April 18, 2013 6:11 AM by Rosales

# re: Tips on installing Visual Studio 2010 SP1

Genuinely when someone doesn't know then its up to other people that they will assist, so here it occurs.

Tuesday, April 23, 2013 1:34 PM by Conger

# re: Tips on installing Visual Studio 2010 SP1

Hi

we've VS 2010 Ultimate.

I did debug XSLT without any problem.

after installing SP1 for VS 2010, I am unable to debug XSLT file.

Following 2 options are Disappeared from the XML menu, after SP1 Installation.

Start XSLT Debugging                Alt+F5

Start XSLT Without Debugging    Ctrl+Alt+F5

please advice, how to get those 2 options back?

Friday, May 3, 2013 11:07 AM by vjxp

# re: Tips on installing Visual Studio 2010 SP1

Attractive element of content. I just stumbled upon your website and in accession capital to assert that I acquire

actually loved account your weblog posts. Any way I will

be subscribing in your feeds and even I fulfillment you get entry to constantly rapidly.

Thursday, May 9, 2013 6:15 PM by Layne

# re: Tips on installing Visual Studio 2010 SP1

My partner and I stumbled over here coming from a different page and thought I might as well check things out.

I like what I see so now i am following you. Look forward to exploring your web page repeatedly.

Friday, May 10, 2013 3:28 AM by Diaz

# re: Tips on installing Visual Studio 2010 SP1

My brother recommended I might like this web site. He was totally right.

This post actually made my day. You cann't imagine simply how much time I had spent for this information! Thanks!

Thursday, May 16, 2013 7:18 AM by Goldberg

# re: Tips on installing Visual Studio 2010 SP1

Hello, just wanted to say, I liked this post. It was funny.

Keep on posting!

Friday, May 17, 2013 12:49 AM by Golden

# re: Tips on installing Visual Studio 2010 SP1

Spot on with this write-up, I truly think this web site needs far more attention.

I'll probably be returning to read through more, thanks for the info!

Friday, May 17, 2013 5:36 AM by Schell

# re: Tips on installing Visual Studio 2010 SP1

Amazing! This blog looks exactly like my old one!

It's on a totally different subject but it has pretty much the same layout and design. Wonderful choice of colors!

Saturday, May 18, 2013 3:55 AM by Lombardo

# re: Tips on installing Visual Studio 2010 SP1

An outstanding share! I've just forwarded this onto a friend who was conducting a little homework on this. And he in fact bought me breakfast simply because I discovered it for him... lol. So allow me to reword this.... Thanks for the meal!! But yeah, thanks for spending time to discuss this issue here on your website.

Saturday, May 18, 2013 8:50 AM by Christy

# re: Tips on installing Visual Studio 2010 SP1

I appreciate the data on your site. Thanks for your

time.

Tuesday, May 21, 2013 9:13 AM by Gardner