anchor.diff:    %IF_VERBOSE% set "MSG=The local PATHEXT contains .%EXT%"
     call :Echo.OK " "
     %ECHO% !MSG!
  +)
  +
  +:# Finally, if any registry setting changed, broadcast that to the rest of the system
  +if "%NEED_BROADCAST%"=="1" (
  +  %ECHO% :# Notifying all windows of the system environment change
  +  :# Find a way to broadcast a WM_SETTINGCHANGE message
  +  set "CMD="
  +  for /f %%i in ("setx.exe") do set "SETX=%%~$PATH:i"
  +  if defined SETX ( :# If setx.exe is in the PATH, then use it. (Preferred, as this is faster)
  +    :# setx.exe updates _does_ broadcast a WM_SETTINGCHANGE to all apps
  +    :# Note: The XP version of setx.exe requires the option -m or -M, but fails with /M. The Win7 version supports all.
  +    set "VAR=PROCESSOR_ARCHITECTURE" &:# This system variable is always short, and is unlikely to ever change
  +    set ^"CMD=setx !VAR! -k "%MENVKEY%\!VAR!" -m^"
  +  ) else ( :# If powershell.exe is in the PATH, then use it to run the PS routine at the send of this script. (Slower)
  +    for /f %%i in ("powershell.exe") do set "POWERSHELL=%%~$PATH:i"
  +    if defined POWERSHELL set ^"CMD=powershell -c "Invoke-Expression $([System.IO.File]::ReadAllText('%SFULL%'))"^"
  +  )
  +  if defined CMD (
  +    %ECHO.XVD% !CMD!
  +    :# Redirect the "SUCCESS: Specified value was saved." message to NUL.
  +    :# Errors, if any, will still be output on stderr.
  +    %IF_EXEC% !CMD! >NUL
  +  ) else if "%QUIET%"=="0" ( :# Only happens in Windows XP or Windows 7 without setx.exe and PowerShell
  +    echo Warning: Could not find a way to broadcast the change to other applications.
  +    echo New shells will only have the updated settings after you log off and log back in.
  +  )
   )
   
   %RETURN%
  
positive.code:     %ECHO% :# Updating the InstallPath registration to: "%PYTHONBIN%\"
      :# Note: The double \\ in the end is necessary for reg.exe, else one \ would escape the "
      %EXEC% reg add "%KEY%" /d "%PYTHONBIN%\\" /f
    )
  )
  
  
negative.code: :# goto :MasterPath.Set
  
  :MasterPath.Set
  set "MORE_THAN_1KB=!MPATH:~1024!" &:# Defined if the new PATH is larger than 1 KB
  :# Gotcha: reg.exe and setx.exe interpret a trailing \" as escaping the "
  if "!MPATH:~-1!"=="\" set "MPATH=!MPATH!\"
  set "CMD="
  for /f %%i in ("setx.exe") do set "SETX=%%~$PATH:i"
  if not defined MORE_THAN_1KB ( :# If the PATH is less than 1KB long, then try using setx
    if defined SETX ( :# If setx.exe is in the PATH, then use it. (Preferred if within the 1KB limit)
      :# setx.exe updates the %PATHVAR%, and _does_ broadcast a WM_SETTINGCHANGE to all apps
      :# Note: The XP version of setx.exe requires the option -m or -M, but fails with /M. The Win7 version supports all.
      set ^"CMD=setx %PATHVAR% "!MPATH!" %SETXOPT%^"
    )
  )  
  if not defined CMD ( :# Fallback to updating the registry value manually using reg.exe.
    :# reg.exe updates the %PATHVAR%, but does _not_ broadcast a WM_SETTINGCHANGE to all apps
    :# Note: On XP, /f does not work if it is the last option.
    set ^"CMD=reg add "%MKEY%" /f /v %PATHVAR% /d "%MPATH%"^"
    set "NEED_BROADCAST=1"
  )
  if "%NOEXEC%"=="0" (	:# Normal execution mode
    :# Redirect the "SUCCESS: Specified value was saved." message to NUL.
  