Visual studio 2017 installer won't run after extracting

前端 未结 19 1781
遥遥无期
遥遥无期 2020-12-03 11:28

visual studio 2017 community.exe won\'t run after extracting to the temp.

OS: windows 10 x64bit

Setup : community version

in the temp folder bootstra

19条回答
  •  不知归路
    2020-12-03 11:55

    I had the same problem also (with a Dell labtop) and SHClark's didn't work for me. Here is what I did:

    I used the command line to create a local cache of the files you need to complete an offline install

    [ctrl] [shift] [enter] for the cmd prompt to run as admin

    1) typed

    d:\vs_community.exe --layout h:\vs2017layout --add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --lang en-US
    

    once it was done downloading to h:\vs2017layout,

    2) opened h:\vs2017layout\vs_setup.exe finally got it to open after extracting but ran into this error:

    The name of the file cannot be resolved by the system
    

    so I created a link for the c:\ProgramData\Microsoft\Visual Studio folder using the following command at windows cmd promt:

    mklink /D "C:\ProgramData\Microsoft\VisualStudio" "g:\ProgramData\Microsoft\VisualStudio"
    

    It worked after that. Not sure if the second error was related to the first. Hope this helps.

提交回复
热议问题