If "%ERRORLEVEL%"="3010" set REBOOTREQUIRED=1 Start /wait /d "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer" vs_installer.exe !args! -installPath "%%i" -passive -norestart offįor /f "usebackq delims=" %%i in (`vswhere -all -property installationPath`) do ( Run this within an elevated command prompt to avoid being prompted to elevate each time vs_installer.exe is launched. If typing on the command line only use one “%”. Note that the following sample is intended for use within a batch script. ![]() You can get the installation path for all instances and call the installer for each to disable the cache (only necessary once, but for simplicity of the script we’ll pass it for each instance) and modify – which will basically just remove package payloads – or re-enable the cache and repair the packages to re-download packages. ![]() If you have a lot of instances and want to clean all of them up easily from the command line – perhaps scripting it for users in an organization – you can combine tools such as vswhere or the VSSetup PowerShell module with the installer at %ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vs_installer.exe. With the ability to disable or move the package cache for Visual Studio 2017 and other products installed with the new installer, packages are removed for whatever instance(s) you are installing, modifying, or repairing.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |