Mike Taulty's Blog
Bits and Bytes from Microsoft UK
Visual Studio 2010 Sp1– “A Selected Drive is No Longer Valid”

Blogs

Mike Taulty's Blog

Elsewhere

Archives

With the arrival of “The Beast” I did a new installation of Visual Studio 2010 Ultimate.

Usually, when I install a laptop I download every installer that I’m ever going to need and I put them all on an external hard-drive should I ever need them again and I then run them from that hard-drive. That way, I build a catalogue of what I’ve installed.

This time, I decided to be all modern. I figured that all the software that I use is out there on the internet anyway and I can easily just install it any time I wanted it ( yes, I know – hopelessly naive Smile ).

And so when it came to installing Visual Studio 2010, I just went to MSDN and installed via the Web Installer and then I applied Service Pack 1.

All was fine until I came to add another bit of VS 2010 Sp1 and I went to Control Panel/Programs and Features and modified the Visual Studio 2010 installation only to find that it came up with a dialog;

image

saying “A selected drive is no longer valid”.

Now, in all honesty I hadn’t the foggiest clue what the installer was talking about because I installed from the web. However, a bit of web searching led me to the installer log file which I believe is present in;

%TEMP%\dd_install_vs_vstscore_100.txt

and in there it said (at the bottom of the log file);

[07/22/11,09:29:23] VS70pgui: ***ERRORLOG EVENT*** : Unable to retrieve the install directory for Visual Studio Async CTP in COptionsPage::IsGoodAllComponenentsPath
[07/22/11,09:29:23] vs70uimgr: Entering DisplayMessage() method.
[07/22/11,09:29:23] vs70uimgr: DisplayMessage_START:A selected drive is no longer valid.  Please review your installation path settings before continuing with setup.
[07/22/11,09:32:44] vs70uimgr: DisplayMessage_END:A selected drive is no longer valid.  Please review your installation path settings before continuing with setup.
[07/22/11,09:32:44] VS70pgui: A selected drive is no longer valid.  Please review your installation path settings before continuing with setup.

Aha – so maybe it’s the Visual Studio 2010 Async CTP that’s breaking it?

I dropped back into Add/Remove programs and found the 2 components of the Async CTP ( you have to go into the “installed updates” section and search for Async – this is documented in the Async CTP uninstallation notes ) and removed them and then rebooted.

With that done, I went back to Visual Studio 2010’s Add/Remove features dialog and it all worked fine although I must admit that it spent a lot longer on this dialog than I would have liked it to;

image

and it made me wonder whether it was downloading the whole VS 2010 ISO image again – I’m not sure that I’d go with this web installer again in the future Winking smile

And then I installed the Async CTP again – case solved Smile


Posted Fri, Jul 22 2011 11:17 AM by mtaulty
Filed under: , ,

Comments

Dan Moyer wrote re: Visual Studio 2010 Sp1– “A Selected Drive is No Longer Valid”
on Fri, Jul 22 2011 5:31 PM

A very timely post for me.  

Saw a similar problem last night related to trying to get a VS LightSwitch solution to work, in which I tried reinstalling VS SP1.   I saw the same useless error dialog message you posted-- but now I see, via your post, where to look to see if a more useful error message of the root cause.

FWIW, I recently built a new system.  Using a SSD for the C drive.  Using D: for location of MyDocuments and installed program files to conserve space on the SSD drive.  

Unfortunately, past experience has been when changing from default installation drive, sometimes problems occur because you're not using the 'standard / default' installation paths, and installed software sometimes assumes a 'standard / default' installation path.

I think this kind of system configuration may be behind some of my problems, so I'm moving to a Virtual Machine where I can work and test in a 'standard / default' configuration.

Mahen wrote re: Visual Studio 2010 Sp1– “A Selected Drive is No Longer Valid”
on Thu, Aug 4 2011 2:57 PM

Similar thing happened to me, but with the following listing in the log file:

Unable to retrieve the install directory for  in COptionsPage::IsGoodAllComponenentsPath

So I'm not even sure which item is in conflict...