Source code of Windows XP (NT5)
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.

72 lines
3.6 KiB

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