Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

84 lines
2.2 KiB

  1. @if "%_echo%"=="" echo off
  2. set URTBASE=%RazzleToolPath%\%PROCESSOR_ARCHITECTURE%\managed
  3. set COMPLUS_InstallRoot=%URTBASE%\urt
  4. @rem
  5. @rem If a specific URT install was requested, do that. Otherwise, install
  6. @rem both the 1.0 and 1.1 variants. Install 1.0 last so we default
  7. @rem to 1.0 for the time being.
  8. @rem
  9. REM The 2.0 number is a guess... Need to fix
  10. set URT_VER_2_0=v2.0.4600
  11. set URT_VER_1_1=v1.1.4322
  12. set URT_VER_1_0=v1.0.3705
  13. if NOT "%COMPLUS_VERSION%" == "" goto InstallUrt
  14. set COMPLUS_MAJORVERSION=v1.1
  15. set URT_VERSION=4322
  16. set COMPLUS_VERSION=%COMPLUS_MAJORVERSION%.%URT_VERSION%
  17. call :InstallUrt
  18. set COMPLUS_MAJORVERSION=v1.0
  19. set URT_VERSION=3705
  20. set COMPLUS_VERSION=%COMPLUS_MAJORVERSION%.%URT_VERSION%
  21. call :InstallUrt
  22. set PATH=%path%;%COMPLUS_InstallRoot%\%COMPLUS_VERSION%
  23. goto :eof
  24. :InstallUrt
  25. setlocal
  26. set PATH=%path%;%COMPLUS_InstallRoot%\%COMPLUS_VERSION%
  27. set URTINSTALL_LOGFILE=%TEMP%\urtinstall.log
  28. set MSCOREE_DEST=%systemroot%\system32
  29. set URTSDKTARGET=%URTBASE%\sdk
  30. set URTTARGET=%URTBASE%\urt\%COMPLUS_VERSION%
  31. set URTINSTALL=%URTBASE%\urtinstall
  32. if "%_FORCE_URT_INSTALL%" == "1" goto DoInstall
  33. REM Check to see if we've already installed the runtime
  34. REM
  35. REM We'll check this by seeing if the private GAC has been created already
  36. REM
  37. if EXIST %URTTARGET%\assembly\gac\system goto :eof
  38. :DoInstall
  39. echo Razzle will now install version %COMPLUS_VERSION% of the URT.
  40. echo Please be patient during this time (and don't open another
  41. echo razzle window 'til it's done!).
  42. REM TODO
  43. REM Only copy over mscoree if we have a newer version
  44. :CheckAnotherVersion
  45. perl %URTINSTALL%\testversion.pl %URTTARGET%\mscoree.dll %MSCOREE_DEST%\mscoree.dll
  46. if errorlevel 1 goto DoneWithCopy
  47. if errorlevel 0 goto DoneWithCopy
  48. REM if the error level was -1, let's replace the shim
  49. del %MSCOREE_DEST%\mscoree.dll.old >nul 2>&1
  50. rename %MSCOREE_DEST%\mscoree.dll mscoree.dll.old >nul 2>&1
  51. copy /y %URTTARGET%\mscoree.dll %MSCOREE_DEST%
  52. :DoneWithCopy
  53. call %URTINSTALL%\regurt.cmd
  54. call %URTINSTALL%\prejit.cmd
  55. goto :eof
  56. REM TODO
  57. REM SXS hasn't really been tested, so be paranoid for now.
  58. REM Just quietly exit ...
  59. REM
  60. :DoUninstallMessage