Visual Studio Community 2015 is the free edition of Visual Studio, so I decided to install it on my computer. Setup contains lots of components, so installation running considerable amount of time was expected, but after 3 hours, it was only 30% finished. Another hour later, the setup was still trying to install the same package. It seemed that the installation got stuck. In this post I will share how I tried to solve the problem and what eventually worked.
The problem I had was deciding what to do next. There were many options to choose from. I could:
- Try to run install again
- Go to Programs and Features > Visual Studio Community > Change > Repair
- Go to Programs and Features > Visual Studio Community > Change > Uninstall
- Restore the system using System Restore that was created before the installation began and then try again
- Restart the computer and try again
Before I could make a decision what to do, I had to cancel the setup, but even that got stuck.
I had to go to Task Manager to end the installation by stopping
First, I tried to go with a second option where I chose the Repair option. That didn’t do much. Running it as Administrator also didn't do the trick. I was getting the message:
I tried Third option using Uninstall but it gave me the same message.
Next I decided to restart the computer and try again. After restart, the Windows did load without any issues except that the Visual Studio Community Installation setup automatically opened, giving me the option of Uninstall or Repair. I chose Repair.
Finally, the installation completed with no issues at all. Finally, issues with Visual Studio has been solved…or so I thought.
Strange Errors in Visual Studio
Visual Studio seemed to work just fine, but when I wanted to create ASP.NET 4.5.2 Webforms project, I got this strange error:
I tried to create a blank solution which worked without errors, but when I wanted to add a new project to the solution, I received a different error:
If I looked into the solution using Windows Explorer, I noticed the files were created for the project, so I tried to add an existing project to the solution, but that didn’t help either. I again received the above "Visual C# 2015 compiler could not be created" error.
Looking on the web, I noticed those errors are not rare and there were plenty of suggestions, on how to fix them. The most frequent suggestions were:
- Running Visual Studio from command prompt with
- Delete Visual Studio folder in
- Modify some registry
Unfortunately nothing of the above worked for me.
What did work
What finally worked was uninstalling the Visual studio, restarting the computer and install it again.
This time the installation succeeded and VS Community is still working with no issues.
So to recap. After stuck setup, restart the computer, then in Visual Studio Setup choose Uninstall instead of Repair, restart computer again (just to be on the safe side), run VS setup once more and hope for the best. But there is another way to try to install Visual Studio, which is discussed next.
Another Solution that worked - download ISO and install it offline
Commentator Abbas Banu Vohra mentioned another solution that involves installing Visual Studio using command prompt. Basically what we do is first download ISO version of the Visual Studio Community, extract it and then instead of installing, we use setup to first download the files directly to hard drive by using command line arguments. I recently had to reinstall Visual Studio and again got stuck during install, so I tried this solution and it worked flawlessly, just be aware that ISO is 7GB of size, and the downloaded setup files will be around 22GB.
Steps are as follows:
- Get the ISO version of the Community Edition. You should find it HERE under "Visual Studio Downloads" section. Select Community 2015 and choose ISO format as shown below:
- After saving the 7GB big ISO file
vs2015.3.com_enu.iso, extract it with archive utility like WinRar or 7-zip.
- In the extracted files, there should be
vs_community.exefile. We will run this file in command prompt. Easiest way to do this is to go to the folder where
vs_community.exeis located with Windows Explorer and then simply type CMD inside Address bar. This will open CMD on that folder.
- We will use /layout Directory parameter of
vs_community.exefile. This will copy installation files to the folder you specified in Directory.
- Once in CMD console, type
vs_community /layout yourdirectory(for example, vs_community /layout c:\vs2015)
- If you don't have fast internet connection, you could try using
/nowebargument in addition to
/Layout. This should prevent downloading 15GB of the "Optional items" from the internet. Note that by using
/nowebargument, optional items needed for installation during setup will be downloaded / acquired from the web, which might cause the original problem of being stuck.
- Setup window will show up as shown below:
- After clicking on Download button, It will start to download / acquire all the setup files to that specified folder.
- Note that most of the download will finish rather quickly since they are located in extracted ISO file but acquiring the Optional Items at the end of the progress bar (around 15GB) can take some time as they will be downloaded from the internet. Using
/NoWebargument will prevent that as mentioned in step 6.
- After all items are downloaded, click on Complete button.
- Now go to the folder of the downloaded files (folder that you specified in
/layoutargument) and run
vs_community.exe. Now, the setup will install offline by using the downloaded media in your hard drive.
Here are some additional tips, that might help you diagnose the problem with the installation.
How to determine if the installation is stuck or not
If you are unsure if setup is just stuck or the component takes a while to install, check the processes in Task Manager. The number of processes will continue to change. Some of the processes that will come and go during installation:
So if you think the installation is stuck, monitoring processes in Task Manager might help you determine if that is indeed the case.
Checking the installation log files
Another way to analyze the setup is to check out the installation logs. In Windows 7, these files are located at
Each component has its own installation log file. All filenames start with
Visual Studio setup needs to install a lot of components, so it may take a while to finish but sometimes the setup can get stuck. First, we need to determine if the installation is really stuck. If it is, we can try different things to solve the problem. We can simply try Restart and Uninstall or we could download ISO and install it offline.
If you found this post useful, consider sharing it on social networks. If you solved this issue in any other way, drop a comment and let us know.