简体   繁体   中英

I have installed VS 2017. But the installer can't find it, which results in that I can't update and uninstall them

This is my Visual Studio UI and installer:

Then, I try to open the installer from Visual Studio. But it shows an error message:

I think that there is no specific path of the vs in its config files. However, I failed to find it. Please share your advice and a solution for this. Thanks.

Let's try this way - Open CMD with admin privilage and go to this path

cd /dc:\\program files (x86)\\microsoft visual studio\\installer

Depend on which version of visual studio you have installed (Enterprise, Community or Professional) type :

for Enterprise

vs_installershell.exe repair --installPath="C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise"

for Community

vs_installershell.exe repair --installPath="C:\Program Files (x86)\Microsoft Visual Studio\2017\Community"

for Professional

vs_installershell.exe repair --installPath="C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional"

here is the source it has worked for some users

https://developercommunity.visualstudio.com/content/problem/313423/missing-option-value-installpath.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM