Can we safely remove C:\ProgramData\Microsoft\VisualStudioSecondaryInstaller folder?

10

As many people know, Windows systems like to store many redundant files. Are the C:\ProgramData\Microsoft\VisualStudioSecondaryInstaller folder and its 1.2GB contents, created by the Visual Studio 2015 installer, redundant too or are they needed for deinstallation/updates/anything else?

Destroy666

Posted 2015-10-10T18:16:17.160

Reputation: 101

Answers

3

The best way to check if this folder is necessary for operation of the software is to move it to another place and see what happens. If software runs normally even though the folder is no longer in previous place then it is not needed.
Probably those files are just temporary installer files, many developers have this annoying habit of unpacking files into obscure places and leaving them to take up unnecessary space.

Dawid Stróżak

Posted 2015-10-10T18:16:17.160

Reputation: 75

Yes, but I currently don't want to test deinstallation, which may be the only thing that will stop working. – Destroy666 – 2015-10-10T19:16:26.523

Destroy666, if something doesn't work, you can go to the install and do "repair", which will put things back. – zumalifeguard – 2015-10-21T05:06:57.197

I know, but I might not have the VS2015 installer file at that point. Anyways, I've already removed the biggest installers (ADK, NDK, Xamarin) and noticed no issue so far. – Destroy666 – 2015-10-21T18:17:00.657

2

Officially you should not remove this folder, as per the MSDN forum mentioned in Koenyn's answer.

However it seems to be "safe" (for some definition of safe) to free up some space by moving certain parts of it to another disk e.g. an external HDD.

It appears that these installers are placed for potential future use on-demand if you want to use certain features of Visual Studio - if you know you're never ever going to want to use certain features of Visual Studio in future, then you could move certain items elsewhere to free up space on your C: drive.

For example after installing Visual Studio 2015 I moved the following to a separate drive:

  • AndroidSDK*
  • Win10_Emulator_*
  • VSEmu_Android*

because I knew I wouldn't be doing any mobile dev for Android or Windows Phone.

This freed up 8GB out of the 16GB present in my VisualStudioSecondaryInstaller folder.

sparrowt

Posted 2015-10-10T18:16:17.160

Reputation: 2 013

0

VisualStudioSecondaryInstaller (10.1 GB) purpose?

I found this post on MSDN. Short answer is no, don't delete that folder.

According to the site

C:\ProgramData\Microsoft\VisualStudioSecondaryInstaller is created by default, it contains many important components (Such as Android SDK, JavaSDK, UWP components etc), it provides the compiler and different language templates and chche for your to run program normally.
[...]
It couldn't be deleted, if you delete the folder, it will cause the packages missing or corrupted, you may not run VS normally.." – Koenyn Jun 15 '17 at 13:00

Koenyn

Posted 2015-10-10T18:16:17.160

Reputation: 101