anchor.diff:      %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
  +    set "NEED_BROADCAST=1"
     )
   )
   
  
positive.code:       	>NUL !CHGCMD!
          call :CheckError !ERRORLEVEL!
        )
      )
    )
    if !FIRED!==no ( :# Else one of the commands matches
  
negative.code:   %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%
  