If you want to work offline, you can move the package cache instead.Ĭurrently, you can do this only if you set the CachePath registry policy before you Move the package cacheĪ common system configuration is to have Windows installed on an SSD with a larger hard disk (or more) for development needs, such as sourceĬode, program binaries, and more. You can also set the KeepDownloadedPayloads registry policy to disable the cacheīefore you install, modify, or repair Visual Studio. "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vs_installer.exe" repair -passive -norestart -cache
Only packages that are required will be cached, so if you need to restoreĪll packages, you should repair Visual Studio before you disconnect from your network. If you want to re-enable the cache, pass -cache instead. If you modify or repair Visual Studio and packages are required, they will be downloaded automatically and removed after "%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vs_installer.exe" -nocacheĪny operation you do on any product will remove any existing packages for that product and will avoid saving any packages after theyĪre installed. Disable the package cacheīefore you install, modify, or repair Visual Studio or other products with the new installer, you can start the installer with the
The installer will download them when needed, so if you want to save or recover disk space, you can disable or move the package cache. With some drives or system set ups, however, you might not want to keep all those packages around. The package cache provides a source of installed packages in case you need to repair Visual Studio or other related products in cases