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.

145 lines
3.7 KiB

  1. @echo off
  2. REM
  3. REM Copies the binaries used in the NT4 DSClient setup cab
  4. REM Some of the binaries come from the NT4 SP7 source tree
  5. REM Others come from the Windows2000 SP source tree
  6. REM They should all be placed in .\binaries\<loc>
  7. REM
  8. REM
  9. REM Set the location to usa if it wasn't passed in
  10. REM
  11. IF "%1" == "" (
  12. Echo No locale specified, defaulting to usa
  13. set LOC=usa
  14. ) ELSE (
  15. set LOC=%1
  16. )
  17. IF "%2" == "" (
  18. Echo no build number specified, defaulting to propagate test build
  19. set BUILD=Test
  20. ) ELSE (
  21. set BUILD=%2
  22. )
  23. REM
  24. REM Propogate the files from the appropriate sources
  25. REM to the .\release\<loc> directory
  26. REM
  27. set HELP_SRC=.\help\%LOC%
  28. set IEXPRESS_LOC=.\iexpress
  29. IF %MERRILL_LYNCH% == 1 (
  30. set RELEASE_LOC=.\release\ml
  31. set BINARIES_LOC=.\binaries\ml
  32. set PACKAGE_SRC=.\package\ml
  33. ) ELSE (
  34. set RELEASE_LOC=.\release\%LOC%
  35. set BINARIES_LOC=.\binaries\%LOC%
  36. set PACKAGE_SRC=.\package\%LOC%
  37. )
  38. REM some binaries are not localized and should be picked up from usa location
  39. set USA_LOC=.\binaries\usa
  40. REM
  41. REM Delete any existing files in the release directory
  42. REM
  43. Echo Cleaning directory in %RELEASE_LOC%
  44. rd /s /q %RELEASE_LOC%
  45. Echo Creating %RELEASE_LOC%
  46. md %RELEASE_LOC%
  47. REM Some of binaries are not localized yet; use the USA bin for now.
  48. copy %USA_LOC%\*.* %RELEASE_LOC%
  49. REM
  50. REM Copy the binaries to the release location
  51. REM
  52. Echo Copying binaries from %BINARIES_LOC% to %RELEASE_LOC%
  53. copy %BINARIES_LOC%\wldap32.dll %RELEASE_LOC%\
  54. copy %BINARIES_LOC%\activeds.tlb %RELEASE_LOC%\
  55. copy %BINARIES_LOC%\dnsapi.dll %RELEASE_LOC%\
  56. copy %BINARIES_LOC%\cmnquery.dll %RELEASE_LOC%\
  57. copy %BINARIES_LOC%\dsfolder.dll %RELEASE_LOC%\
  58. copy %BINARIES_LOC%\ntdsapi.dll %RELEASE_LOC%\
  59. copy %BINARIES_LOC%\netapi32.dll %RELEASE_LOC%\
  60. copy %BINARIES_LOC%\activeds.dll %RELEASE_LOC%\
  61. copy %BINARIES_LOC%\adsldp.dll %RELEASE_LOC%\
  62. copy %BINARIES_LOC%\adsldpc.dll %RELEASE_LOC%\
  63. copy %BINARIES_LOC%\adsmsext.dll %RELEASE_LOC%\
  64. copy %BINARIES_LOC%\adsnt.dll %RELEASE_LOC%\
  65. copy %BINARIES_LOC%\dsprop.dll %RELEASE_LOC%\
  66. copy %BINARIES_LOC%\dsquery.dll %RELEASE_LOC%\
  67. copy %BINARIES_LOC%\dsuiext.dll %RELEASE_LOC%\
  68. copy %BINARIES_LOC%\secur32.dll %RELEASE_LOC%\
  69. if NOT %MERRILL_LYNCH% == 1 (
  70. copy %BINARIES_LOC%\netlogon.dll %RELEASE_LOC%\
  71. copy %BINARIES_LOC%\wkssvc.dll %RELEASE_LOC%\
  72. copy %BINARIES_LOC%\mup.sys %RELEASE_LOC%\
  73. )
  74. copy %BINARIES_LOC%\Wabinst.exe %RELEASE_LOC%\
  75. copy %BINARIES_LOC%\dscsetup.dll %RELEASE_LOC%\
  76. copy %BINARIES_LOC%\setup.exe %RELEASE_LOC%\
  77. REM
  78. REM Help files
  79. REM
  80. Echo Copying help files...
  81. copy %HELP_SRC%\dsclient.chm %RELEASE_LOC%\
  82. copy %HELP_SRC%\dsclient.hlp %RELEASE_LOC%\
  83. REM
  84. REM Copy the files needed to make the CAB
  85. REM
  86. Echo Copying cab creation files...
  87. copy %PACKAGE_SRC%\dsclient.sed %RELEASE_LOC%\
  88. copy %PACKAGE_SRC%\dsclient.inf %RELEASE_LOC%\
  89. copy %PACKAGE_SRC%\adsix86.sed %RELEASE_LOC%\
  90. copy %PACKAGE_SRC%\adsix86.inf %RELEASE_LOC%\
  91. copy %PACKAGE_SRC%\EULA.doc %RELEASE_LOC%\
  92. copy %PACKAGE_SRC%\EULA.txt %RELEASE_LOC%\
  93. REM
  94. REM Copy iexpress into the loc directory
  95. REM
  96. Echo Copying iexpress...
  97. copy %IEXPRESS_LOC%\* %RELEASE_LOC%\
  98. REM
  99. REM Use IExpress to make the cab
  100. REM
  101. Echo Creating adsix86.exe cab...
  102. cd %RELEASE_LOC%
  103. if exist adsix86.exe del /f adsix86.exe
  104. start /wait iexpress.exe /M /N /Q adsix86.sed
  105. if not exist adsix86.exe (
  106. Echo iexpress.exe failed to generate adsix86.exe.
  107. goto errend_CABGEN
  108. )
  109. Echo Creating dsclient.exe cab...
  110. if exist dsclient.exe del /f dsclient.exe
  111. start /wait iexpress.exe /M /N /Q dsclient.sed
  112. if not exist dsclient.exe (
  113. Echo iexpress.exe failed to generate dsclient.exe.
  114. goto errend_CABGEN
  115. )
  116. :errend_CABGEN
  117. cd ..\..