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.

93 lines
4.1 KiB

  1. @if "%_echo%"=="" echo off
  2. setlocal
  3. rem %URTINSTALL%\delkey.exe HKEY_CURRENT_USER\SOFTWARE\Microsoft\COMPlus > nul 2>&1
  4. rem %URTINSTALL%\delkey.exe HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\COMPlus > nul 2>&1
  5. rem Don't muck with the registry for the framework
  6. rem %URTINSTALL%\delkey.exe HKEY_CURRENT_USER\SOFTWARE\Microsoft\.NETFramework > nul 2>&1
  7. rem %URTINSTALL%\delkey.exe HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework
  8. rem %URTINSTALL%\modkey.exe HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework "" > nul
  9. rem %URTINSTALL%\modkey.exe HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\InstallRoot %COMPLUS_InstallRoot%\ > nul
  10. rem %URTINSTALL%\modkey.exe HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\Dummy > nul
  11. rem %URTINSTALL%\modkey.exe HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\Dummy\FXCONFIGSHORTCUT 1 > nul
  12. rem Don't add the shim policy
  13. rem %URTINSTALL%\modkey.exe HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\Policy\%COMPLUS_MAJORVERSION% > nul
  14. rem %URTINSTALL%\modkey.exe HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\Policy\%COMPLUS_MAJORVERSION%\%URT_VERSION% "0-%URT_VERSION%" > nul
  15. rem %URTINSTALL%\modkey.exe HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\Policy\%COMPLUS_MAJORVERSION%\Version %COMPLUS_VERSION% > nul
  16. rem %URTINSTALL%\delkey.exe HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\Version %COMPLUS_VERSION% > nul
  17. REM %URTINSTALL%\modkey.exe HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\DbgManagedDebugger "cordbg.exe !a 0x%x"> nul
  18. REM %URTINSTALL%\modkey.exe HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\sdkInstallRoot %URTSDKTARGET%\ > nul
  19. %URTINSTALL%\modkey.exe HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MMC\Snapins\{18BA7139-D98B-43c2-94DA-2604E34E175D}\About "{9F6932F1-4A16-49d0-9CCA-0DCC977C41AA}" > nul
  20. %URTINSTALL%\modkey.exe HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MMC\Snapins\{18BA7139-D98B-43c2-94DA-2604E34E175D}\NameString ".NET Framework Configuration" > nul
  21. %URTINSTALL%\modkey.exe HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MMC\Snapins\{18BA7139-D98B-43c2-94DA-2604E34E175D}\StandAlone\ "" > nul
  22. %URTINSTALL%\modkey "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\Application\.NET Runtime\EventMessageFile" -r "%URTTARGET%\mscorrc.dll" > nul
  23. regedit /s %URTINSTALL%\mscorrc.reg
  24. regedit /s %URTINSTALL%\typelibstdole.reg
  25. REM --- Install managed .dlls into the GAC ---
  26. REM TODO
  27. REM for /f %i in (%URTINSTALL%\gacinstall.lst) do call :InstallToTheGAC %i
  28. call perl %URTINSTALL%\gacinstall.pl %URTINSTALL%\gacinstall.lst
  29. call %URTINSTALL%\gacinstallfx.bat
  30. REM Register mcoree.dll first because other dlls load this one and get out of sync
  31. rem regsvr32 /s /c %MSCOREE_DEST%\mscoree.dll
  32. rem Instead of regsvr32, use the supplied reg file instead
  33. regedit /s %URTINSTALL%\mscoree.reg
  34. REM call %URTINSTALL%\mkclrlst.bat %URTTARGET%\clrreg.lst reg
  35. REM TODO
  36. REM for /F %%i in (%URTTARGET%\clrreg.lst) do (
  37. REM regsvr32 /s /c %%i
  38. REM )
  39. REM del /f /q %URTTARGET%\clrreg.lst >nul 2>&1
  40. REM call perl %URTINSTALL%\clrreg.pl %URTTARGET%\clrreg.lst
  41. call perl %URTINSTALL%\clrreg.pl
  42. rem Do some additional registration
  43. regedit /s %URTINSTALL%\mscordbi.reg
  44. regedit /s %URTINSTALL%\mscorld.reg
  45. rem Shouldn't need to do this
  46. rem %URTINSTALL%\regtlb -n %URTTARGET%\mscoree.tlb
  47. rem %URTINSTALL%\regtlb -n %URTTARGET%\mscorlib.tlb
  48. rem %URTINSTALL%\regasm -nologo %URTTARGET%\System.EnterpriseServices.dll
  49. rem %URTINSTALL%\regtlb -n %URTTARGET%\System.EnterpriseServices.tlb
  50. %URTTARGET%\regasm -nologo %URTTARGET%\mscorcfg.dll
  51. %URTSDKTARGET%\bin\gacutil -silent -i %URTTARGET%\mscorcfg.dll
  52. %URTINSTALL%\catutil /product=netframeworkv1 /dll=%URTTARGET%\netfxcfg.dll
  53. rem We don't need this anymore
  54. rem regsvr32 /s /c %URTTARGET%\netfxcfgprov.dll
  55. mofcomp %URTTARGET%\netfxcfgprovm.mof
  56. mofcomp %URTTARGET%\netfxcfgprov.mfl
  57. endlocal
  58. goto :EOF
  59. :InstallToTheGAC
  60. if exist %URTTARGET%\%1 (
  61. echo Installing %1 into the GAC ... >> %COPYURT_LOGFILE%
  62. %URTSDKTARGET%\bin\gacutil -silent -i %URTTARGET%\%1 >> %COPYURT_LOGFILE%
  63. ) else (
  64. echo Failed to install %1 into the GAC ... >> %COPYURT_LOGFILE%
  65. )
  66. goto :EOF
  67. endocal