Nov 8, 2017

Visual Studio 2017 Installer stuck at Applying Microsoft VisualStudio Debugger JustInTime

While installing Visual Studio 2017 Installer may stuck at Applying Microsoft VisualStudio Debugger JustInTime

if you are using older version of the installer. To solve the issue:
Solution 1
1. Click On Cancel, after few minutes it will ask to update VS installer.
2. Update the Visual Studio Installer. 
3. Restart your PC. Installer will auto-continue.

Solution 2
1. Download Process Explorer
2. Kill the process PowerShell.exe under vs_installershell.exe
3. Installer will resume skipping JustInTime
4. After VS installation completes you have to manually install JustInTime  

Solution3

Package ‘Microsoft.VisualStudio.Debugger.JustInTime,version=15.0.26621.2’ failed to install


SOLUTION:

The solution was as simple as updating the System Variable __PSLockDownPolicy value to 1:
This is related to the PowerShell Constrained Language Mode, see the following article for more details: