Visual Studio 2015 Enterprise安装、卸载及启动故障求助
Hey there, sorry to hear you're stuck with this super frustrating restart loop when trying to launch VS 2015! I’ve dealt with similar installation glitches before, so let’s walk through some targeted fixes that should get you up and running.
Step 1: Perform a complete cleanup of VS 2015 residues
Regular uninstalls often leave behind broken components or registry entries that cause this loop. Let’s do a deep clean:
- Use the official Visual Studio Uninstaller tool: Run it as administrator, select "Visual Studio 2015 Enterprise", and choose the "Full cleanup" option to wipe all related files and settings.
- Manually clean the registry:
- Open
regedit(press Win+R, typeregedit, hit Enter) - Navigate to
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\14.0and delete this entire key (back up the registry first via File > Export!) - Do the same for
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\14.0
- Open
- Delete leftover folders:
C:\Program Files (x86)\Microsoft Visual Studio 14.0C:\ProgramData\Microsoft\VisualStudio\Packages
Step 2: Fix system dependencies and pending restart flags
The error often stems from broken system components or stuck restart markers:
- Install all Windows updates: Go to Settings > Update & Security, install every critical and optional update, then restart your PC.
- Reinstall .NET Framework 4.6.2: VS 2015 relies heavily on this version. Download it from Microsoft’s official site, run the installer, and restart once done.
- Clear pending restart markers in the registry:
- Open
regeditagain - Go to
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager - Delete the
PendingFileRenameOperationsentry if it exists - Check
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicingand delete anyRebootPendingkeys (again, back up first!)
- Open
Step 3: Reinstall VS 2015 properly
Now that your system is cleaned up, let’s reinstall correctly:
- Download a fresh copy of the VS 2015 Enterprise ISO from Microsoft’s site, and verify its MD5 checksum to ensure the file isn’t corrupted.
- Mount the ISO, right-click the setup.exe, and select Run as administrator.
- Choose "Custom installation" and only select the components you actually need (avoiding unnecessary tools that might cause conflicts).
- Disable your antivirus and firewall temporarily during installation—they often interfere with VS’s component setup.
Bonus: Check your log file for specific errors
Looking at your provided log, if you spot entries like failed MSI installations (e.g., VC++ Redistributable, Windows SDK components), you can manually download and install those specific components first, then retry the VS setup. For example, if a log line mentions vc_redist.x64.exe failing, grab that exact version from Microsoft’s site and install it before running VS setup.
If none of these steps work, share a snippet of the most critical error lines from your log, and we can dig deeper!
内容的提问来源于stack exchange,提问作者Panos_Koro

