anchor.diff:  :: 08/19/2015 Added .NET 4.5 check
   :: 11/02/2016 Update for Pro 1.3 / 1.3.1
   :: 06/07/2017 Setup to apply any .msp files in Pro .msi folder
  +:: 03/18/2018 Added CHECKFORUPDATESATSTARTUP to install command
   ::----------------------------------------------------------------
   :: This software is provisional and subject to revision; it has
   :: not been thoroughly reviewed or received USGS final approval.
  
positive.code: @echo on
  
  :: Install ArcGIS Pro for all users of this computer
  msiexec /i "%SRC%\Esri\ArcGISPro\ArcGISPro.msi"  ALLUSERS=1 INSTALLDIR=%INSTALLDIR% ^
    /l+ie "%LOG_PATH%_Pro.txt" /l+ie "%LOG_PATH%.txt"  %SILENT%
  
  :: patch updates (.msp files (if any) should be placed in folder with ArcGIS Pro msi
  pushd "%SRC%\Esri\ArcGISPro"
  for %%p in (*.msp) do %MSIEXEC% /p %%p REINSTALLMODE=omus %SL% 
  popd
  
  :: ArcGIS Pro Help (optional local install [web help is also available])
  msiexec /i "%SRC%\Esri\ArcGISProHelp\ArcGISProHelp.msi" ^
    /l+ie "%LOG_PATH%_Help.txt" %SILENT%
  
  :: Optional: Set registry key to block ArcGIS Pro update prompts
  %WINDIR%\system32\reg.exe add HKLM\SOFTWARE\ESRI\ArcGISPro\Settings ^
    /v CheckForUpdatesAtStartup /t REG_DWORD /d 0 /f 
  
negative.code: 
  :: Check for .NET 4.6.1 x64
  set x64key=HKLM\SOFTWARE\Microsoft\.NETFramework
  :: 4.6.1 x64
  %WINDIR%\system32\reg.exe query %x64key%  /f ".NETFramework,Version=v4.6.1" /k /s >NUL ^
    || ( echo. & echo ** Microsoft .NET Framework 4.6.1 ^(x64^) not installed! ** & goto dotnet_fail)  
  