none
A selected drive is no longer valid in Visual Studio 2010

    Question

  • I have VS 2010 Premium RTM and I want to add Visual Basic to my installation. However it won't install as "A selected drive is no longer valid" pops out. I searched the internet and found only solution relevant to VS 2008 SP1 but none for VS 2010.

    Installation log reads that it chokes on " VS70pgui: ***ERRORLOG EVENT*** : Unable to retrieve the install directory for Silverlight4Registry in COptionsPage::IsGoodAllComponenentsPath".

    What to do - I really need VB for my work.

    Log:

     

    [05/03/10,17:04:08] Diskspace_check: C:\|38498
    [05/03/10,17:04:08] VS70pgui: Feature Component Name: Microsoft Visual Studio 2010 Premium State: 1
    [05/03/10,17:04:08] VS70pgui: Feature Component Name: Visual Basic State: 1
    [05/03/10,17:04:08] VS70pgui: Feature Component Name: Visual C++ State: 0
    [05/03/10,17:04:08] VS70pgui: Feature Component Name: Itanium Compilers and Tools State: 0
    [05/03/10,17:04:08] VS70pgui: Feature Component Name: X64 Compilers and Tools State: 0
    [05/03/10,17:04:08] VS70pgui: Feature Component Name: Visual C# State: 1
    [05/03/10,17:04:08] VS70pgui: Feature Component Name: Visual F# State: 1
    [05/03/10,17:04:08] VS70pgui: Feature Component Name: Visual Web Developer State: 1
    [05/03/10,17:04:08] VS70pgui: Feature Component Name: Graphics Library State: 1
    [05/03/10,17:04:08] VS70pgui: C78
    [05/03/10,17:04:08] VS70pgui: Mapping summary:0000C78
    [05/03/10,17:04:08] Setup.exe: ISetupManager::GetFullComponents()
    [05/03/10,17:04:08] TargetDriveSize: 0x25
    [05/03/10,17:04:08] Setup.exe: AddGlobalCustomProperty
    [05/03/10,17:04:08] VS70pgui: ***ERRORLOG EVENT*** : Unable to retrieve the install directory for Silverlight4Registry in COptionsPage::IsGoodAllComponenentsPath
    [05/03/10,17:04:08] vs70uimgr: Entering DisplayMessage() method.
    [05/03/10,17:04:08] vs70uimgr: DisplayMessage_START:A selected drive is no longer valid.  Please review your installation path settings before continuing with setup.
    [05/03/10,17:04:09] vs70uimgr: DisplayMessage_END:A selected drive is no longer valid.  Please review your installation path settings before continuing with setup.
    [05/03/10,17:04:10] VS70pgui: A selected drive is no longer valid.  Please review your installation path settings before continuing with setup.

    Monday, May 03, 2010 3:14 PM

Answers

  • I also had SL 4 Tools beta and Windows Phone Dev Tools installed and uninstalling them didn't help. But as I installed the final release of SL 4 Tools I was able to add/remove features for Visual Studio afterwards.
    -- MCPD Web Applications
    • Marked as answer by YiChun Chen Friday, June 25, 2010 10:43 AM
    Tuesday, May 18, 2010 11:25 AM
  • Based on this thread, I opened a bug in Microsoft Connect:

    http://connect.microsoft.com/VisualStudio/feedback/details/557841/error-while-adding-features-to-an-existing-installation
    • Marked as answer by YiChun Chen Tuesday, May 11, 2010 3:44 AM
    Monday, May 10, 2010 1:33 PM
  • Hi Ondrejsv,

    Thank you for your post.

    Based on the log, it seems that the installer is retrieving the install directory for Silverlight4Registry.

    It looks like that your issue could be related to Silverlight. Have you ever installed any Silverlight related tools? If yes, please remove and reinstall it to have a try.

    Hope this helps! If you have any concern, please feel free to let me know.

    Best regards,
    Yichun Chen
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    • Marked as answer by YiChun Chen Tuesday, May 11, 2010 3:44 AM
    • Edited by YiChun Chen Friday, June 25, 2010 10:42 AM typo
    Tuesday, May 04, 2010 8:14 AM

All replies

  • Hi Ondrejsv,

    Thank you for your post.

    Based on the log, it seems that the installer is retrieving the install directory for Silverlight4Registry.

    It looks like that your issue could be related to Silverlight. Have you ever installed any Silverlight related tools? If yes, please remove and reinstall it to have a try.

    Hope this helps! If you have any concern, please feel free to let me know.

    Best regards,
    Yichun Chen
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    • Marked as answer by YiChun Chen Tuesday, May 11, 2010 3:44 AM
    • Edited by YiChun Chen Friday, June 25, 2010 10:42 AM typo
    Tuesday, May 04, 2010 8:14 AM
  • Where did you find the log?  I am having a similar problem, trying to add Visual Web Developer.
    Friday, May 07, 2010 9:35 PM
  • MichaelAmes, the log is located on %temp%\dd_install_vs_vstscore_100.txt.

    I'm having the same problem too ("Unable to retrieve the install directory for Silverlight4Registry in COptionsPage::IsGoodAllComponenentsPath"), while trying to add Visual C++. I'm using Visual Studio 2010 Ultimate (RTM).

    I had installed Silverlight 4 Tools and Windows Phone Developer Tools CTP (April Refresh), but uninstalling they (and all software that could be related to Silverlight 4) don't solve the problem.

    • Marked as answer by YiChun Chen Tuesday, May 11, 2010 3:44 AM
    • Unmarked as answer by YiChun Chen Friday, June 25, 2010 10:41 AM
    Friday, May 07, 2010 10:37 PM
  • I am having the same issue trying to install F#. This is very frustrating.

    VS2010 Premium

    Sunday, May 09, 2010 3:50 PM
  • Hi

     

    I have the same problem, and nothing seems to help. I have uninstalled every Silverlight related product, SDK, patch, etc... Still the same issue. I have checked the registry as well, havent found any relevant stuff there, so i'm out of ideas. I don't want to uninstall the whole Visual Studio package i have on my computer as that would take days of installing back and forth. 

     

    Please help! This is a big problem!

     

    Monday, May 10, 2010 11:51 AM
  • Based on this thread, I opened a bug in Microsoft Connect:

    http://connect.microsoft.com/VisualStudio/feedback/details/557841/error-while-adding-features-to-an-existing-installation
    • Marked as answer by YiChun Chen Tuesday, May 11, 2010 3:44 AM
    Monday, May 10, 2010 1:33 PM
  • @Felipe: Thank you for your kindly help on this concern.

    Hi all,

    You might track the case that Felipe happened on the Connect Portal. Visual Studio Product Team will help you to track the root cause of it.

    Thank you for all of your feedback and help here.

    Have a nice week.

    Best regards,
    Yichun Chen
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Tuesday, May 11, 2010 3:44 AM
  • I also had SL 4 Tools beta and Windows Phone Dev Tools installed and uninstalling them didn't help. But as I installed the final release of SL 4 Tools I was able to add/remove features for Visual Studio afterwards.
    -- MCPD Web Applications
    • Marked as answer by YiChun Chen Friday, June 25, 2010 10:43 AM
    Tuesday, May 18, 2010 11:25 AM
  • I was having the same issue and didn't want to reinstall everything.  I installed the final release of SL 4 Tools and that worked!  Thanks Jozef!
    Wednesday, May 19, 2010 4:45 PM
  • Uninstalling didn't work for me, but as soon as I re-installed the SL4 Tools, I was able to run through the installation as expected.

    Thanks!


    Matt Ruwe
    Tuesday, May 25, 2010 7:26 PM
  • May I say thanks for the advice - after spending days getting my machine installed and configured (and then starting a project that needed C++) I nearly cried when I saw this message - thankyou everyone for the solution.
    Saturday, June 05, 2010 4:06 AM
  • I have a very similar problem. However, on that same line in the log, mine reads:

    [07/04/10,14:21:52] VS70pgui: ***ERRORLOG EVENT*** : Unable to retrieve the install directory for Visual C++ Post RTM features in COptionsPage::IsGoodAllComponenentsPath

    I was trying to add Visual Web Developer to my VS installation.

    Any idea what I should try removing/reinstalling?

    Sunday, July 04, 2010 12:38 PM
  • Jalfd - if you have Silverlight 4 Tools installed (including KB976272), please install the latest release (http://www.microsoft.com/downloads/details.aspx?FamilyID=40ef0f31-cb95-426d-9ce0-00dcfabf3df5&displaylang=en).  The new KB982218 will fix the general issue seen in this thread.
    Thursday, July 15, 2010 12:59 AM
  • Nothing mentioned in this page helped me fix the problem. For one thing, all the download links to SL 4.0 Tools seem to be broken. The log message is exactly as described here, but I tried uninstalling SL 4.0 Tools (Final Release) and reinstalling it didn't help either.

    Any other ideas?

    Tuesday, December 21, 2010 11:17 AM
  • Hi Hadi,

    Where did you download the SL 4.0 Tools from? Latest version can be obtained from: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b3deb194-ca86-4fb6-a716-b67c2604a139&displaylang=en

    Also please ensure that you have KB982218 which should have been installed with SL 4.0 Tools.

    Tuesday, December 21, 2010 9:16 PM
  • Hi, I tried downloading the silverlight tools with the last link you provided, but that version didn't seem to include the hotfix that you mentioned in your previous post (KB982218).  I also tried searching for the KB982218 knowledge base article, and the download link there was broken, as is every other link I've been able to find to the hotfix.  Everywhere that I've been able to find reports of people fixing this problem by installing silverlight tools, the link provided has been broken.  Please provide a working link to a version of the silverlight tools which will actually fix this.  Thankyou.
    Monday, May 16, 2011 1:58 PM
  • When you say the links are broken what exactly is your experience? I was able to download the exe from http://www.microsoft.com/downloads/en/details.aspx?FamilyID=b3deb194-ca86-4fb6-a716-b67c2604a139&displaylang=en

    Have you installed the Visual Studio 2010 SP1?  If so you shouldn't need to install the Silverlight 4 Tools.

    Tuesday, May 17, 2011 12:00 AM
  • That link is to the version that I said didn't seem to include the hotifx, and didn't work for me.  In what is now your third last post here, you provided a different link which is the one that seems to have worked for other people in the past.  That link takes you to an error page, which redirects to a Bing search after a few seconds.

    In all my research about this problem, I saw a lot of reports of a similar problem with Visual Studio 2008, where people had to remove service pack 1, then add the features they were trying to install, and then re-install service pack 1.  I hadn't seen any reports of installing Service Pack 1 fixing this problem for Visual Studio 2010 (or even any suggestions to try it until now).  So I didn't want to install it, only to find that I then had to uninstall it again later.  But if you say that should fix the problem, I'll try that and let you know how it goes.

    Tuesday, May 17, 2011 8:34 AM
  • Yes, installing SP1 fixed it.  Thanks for your help.
    Tuesday, May 17, 2011 9:54 AM