anchor.diff:  goto eof
   
   :InstallFiles
  +if not exist "%MDDDebuggerDir%" mkdir "%MDDDebuggerDir%"
   echo Installing Files
   set CopyError=
   for %%f in (%FilesToInstall%) do call :CopyFile "%~dp0%%f" "%MDDDebuggerDir%"
  
positive.code: net session >nul 2>&1
  if NOT "%ERRORLEVEL%"=="0" echo ERROR: Must be called from an elevated command prompt.& exit /b -1
  
  set VSVersion=14.0
  set BackupDir=%LOCALAPPDATA%\Microsoft\VisualStudio\%VSVersion%\MDDDebuggerBackup\
  set MDDDebuggerDir=%ProgramFiles%\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\MDD\Debugger\
  if not exist "%MDDDebuggerDir%" echo ERROR: Dev14 C++ MDD Tools are not installed on this computer.& exit /b -1
  
  set FilesToInstall=Microsoft.MICore.dll Microsoft.MIDebugEngine.dll Microsoft.MIDebugEngine.pkgdef Microsoft.MIDebugPackage.dll Microsoft.MIDebugPackage.pkgdef Microsoft.AndroidDebugLauncher.dll Microsoft.AndroidDebugLauncher.pkgdef Microsoft.IOSDebugLauncher.dll Microsoft.IOSDebugLauncher.pkgdef Microsoft.JDbg.dll
  
  
negative.code: 
  :RestoreBackup
  if not exist "%BackupDir%" echo ERROR: No backup exists.& exit /b -1
  if not exist "%MDDDebuggerDir%" mkdir "%MDDDebuggerDir%"
  echo Restoring from backup
  call :CleanDebuggerDir
  set CopyError=
  