This page shows the source for this entry, with WebCore formatting language tags and attributes highlighted.

Title

Limited drive-space chronicles #2: Why is Visual Studio installed on my machine?

Description

If you're like us at Encodo, you moved to SSDs years ago...and never looked back. However, SSDs are generally smaller because the price (still) ramps up quickly as you increase size. We've almost standardized on 512GB, but some of us still have 256GB drives. Unfortunately, knowing that we all have giant hard drives started a trend among manufacturers to just <i>install everything</i>, just in case you might need it. This practice didn't really cause problems when we were still using by-then terabyte-sized HDs. But now, we are, once again, more sensitive to unnecessary installations. If you're a Windows .NET developer, you'll feel the pinch more quickly as you've got a relatively heavyweight Visual Studio installation (or three...) as well as Windows 8.1 itself, which weighs in at about 60GB after all service packs have been installed. Once you throw some customer data and projects and test databases on your drive, you might find that you need, once again, to free up some space on your drive. I wrote a similar post last year and <a href="{app}view_article.php?id=401">those tips & tricks</a> still apply as well. <h>System Cleanup is back</h> One additional tip I have is to use <kbd>Win</kbd> + <kbd>S</kbd> to search for "Free up disk space by deleting unnecessary files"<fn> and run that application in "clean up system files" mode: the latest version will throw out as much Windows Update detritus as it can, which can clean up gigabytes of space. <img attachment="clean_up_system_files.png" align="left"><img attachment="garbage.png" align="left"><img attachment="windows_update_cleanup.png" align="left"> <clear><h>Remove Old Visual Studios</h> The other measure you can take is to remove programs that you don't use anymore: for .NET developers that means you should finally toss out Visual Studio 2010---and possibly even 2013, if you've made the move to the new and improved 2015 already.<fn> Removing these versions also has the added benefit that extensions and add-ons will no longer try to install themselves into these older Visual Studios anymore. However, even if you <i>do</i> remove VS2010, for example, you might find that it just magically reappears again. Now, I'm not surprised when I see older runtimes and redistributables in my list of installed programs---it makes sense to keep these for applications that rely on them---but when I see the entire VS2010 SP1 has magically reappeared, I'm confused. <img src="{att_link}vs2010_in_program_and_features.png" href="{att_link}vs2010_in_program_and_features.png" align="none" caption="VS2010 in Programs and Features" scale="50%"> Imagine my surprise when I installed SQL Server Management Studio 2016---the November 2015 Preview---and saw the following installation item: <img src="{att_link}sql_server_management_studio_2015_installs_vs2010.png" href="{att_link}sql_server_management_studio_2015_installs_vs2010.png" align="none" caption="SQL Server Management Studio installation" scale="50%"> However, if you do remove this item again, then SQL Server Management Studio will no longer run (no surprise there, now that we know that it installed it). However, if you're just doing cleanup and don't know about this dependency<fn>, you might accidentally break tools. So be careful; if you're too aggressive, you'll end up having to re-install some stuff.<fn> <hr> <ft>The reason I write that "it's back" is that for a couple of versions of Windows, Microsoft made it an optional download/feature instead of installing it by default.</ft> <ft>Be careful about removing Visual Studio 2013 if you have web projects that still rely on targets installed with VS2013 but not included in VS2015. I uninstalled 2013 on my laptop and noticed a warning about an MS target that the compiler could no longer find.</ft> <ft>The fact that Windows still can't tell you about dependencies is a story for another day. We should have had a package manager on Windows years ago. And, no, while Choco is a lovely addition, it's not quite the full-fledged package manager that aptitude is on Ubuntu.</ft> <ft>Speaking from experience. Could you tell?</ft>