Share via


"Invalid Drive" Visual Studio installation

Question

Monday, December 26, 2016 2:09 PM

Hello 

Can't seem to figure this out, It won't allow me to change installation location in the installer.

Heres a picture: https://imgur.com/a/pQo0Z

E:\ Is my USB Drive (I thought that I could make the program portable, apparently not)

If anybody else encountered this issue let me know.

Also let me know if you got a solution for this.

Regards.

~ Navid

All replies (2)

Monday, December 26, 2016 11:46 PM

Hi Navid,

You might install Visual Studio into E:\Navid_Files (USB HDD). 
But I'm afraid it cannot be used with other PC where VS is not installed, 
for it don't have any information about VS.

If you want to install VS into E drive, try this:
  1. run cmd.exe as administrator
  2. change directory to where VS installer(e.g. vs_community.exe) is saved
  3. vs_community.exe /uninstall /force
  4. vs_community.exe /CustomInstallPath E:\Navid_Files\VisualStudio
  
Regards,
Ashidacchi


Tuesday, December 27, 2016 3:38 AM

Hi Navid,

Thank you for posting in MSDN forum.

Actually, the VS couldn't be installed separately with System drive, the reason it requires space on the System drive is because it needs to install system components.

For this error information, try the following steps:

1. Find Registry (regedit) installation path like "E:\Program Files (x86)\Microsoft Visual Studio 14.0\ with Match whole string only checkbox checked.

2. Find key something like IstallDir.  delete it .

3. Try with VisualStudio Uninstaller to uninstall Visual Studio.

4. Run the VS installer as administrator,  choosing the C: drive as the installation location.

It would narrow download some potential installation problem.

Best Regards,

MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].