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.

159 lines
3.0 KiB

  1. @setlocal
  2. @echo off
  3. setlocal
  4. set sku=%1
  5. if "%sku%"=="" (
  6. goto Usage
  7. )
  8. goto %sku%
  9. rem ################################################################################
  10. :Personal_32
  11. set PROD=p
  12. set PLAT=i
  13. set CABINET=pchdt_p3.cab
  14. set BUILDDIR=sku_per
  15. goto build
  16. :Professional_32
  17. set PROD=w
  18. set PLAT=i
  19. set CABINET=pchdt_w3.cab
  20. set BUILDDIR=sku_wks
  21. goto build
  22. :Server_32
  23. set PROD=s
  24. set PLAT=i
  25. set CABINET=pchdt_s3.cab
  26. set BUILDDIR=sku_srv
  27. goto build
  28. :Blade_32
  29. set PROD=b
  30. set PLAT=i
  31. set CABINET=pchdt_b3.cab
  32. set BUILDDIR=sku_bld
  33. goto build
  34. :SmallBusinessServer_32
  35. set PROD=l
  36. set PLAT=i
  37. set DATAFILE=pchdt_l3.cab
  38. set BUILDDIR=sku_sbs
  39. goto build
  40. :AdvancedServer_32
  41. set PROD=e
  42. set PLAT=i
  43. set CABINET=pchdt_e3.cab
  44. set BUILDDIR=sku_ent
  45. goto build
  46. :DataCenter_32
  47. set PROD=d
  48. set PLAT=i
  49. set CABINET=pchdt_d3.cab
  50. set BUILDDIR=sku_dtc
  51. goto build
  52. :Professional_64
  53. set PROD=w
  54. set PLAT=m
  55. set CABINET=pchdt_w6.cab
  56. set BUILDDIR=sku_wks
  57. goto build
  58. :AdvancedServer_64
  59. set PROD=e
  60. set PLAT=m
  61. set CABINET=pchdt_e6.cab
  62. set BUILDDIR=sku_ent
  63. goto build
  64. :DataCenter_64
  65. set PROD=d
  66. set PLAT=m
  67. set CABINET=pchdt_d6.cab
  68. set BUILDDIR=sku_dtc
  69. goto build
  70. rem ################################################################################
  71. :build
  72. set REDIST=%sdxroot%\admin\pchealth\redist
  73. set CORE=%sdxroot%\admin\pchealth\core\target\obj\i386
  74. set EXE=%sdxroot%\admin\pchealth\helpctr\target\obj\i386
  75. if not exist %EXE%\atrace.dll copy %CORE%\atrace.dll %EXE%
  76. rem ################################################################################
  77. set COMPTOINSTALL=-install CORE -install UPLOADLB -install HELPCTR -install SYSINFO -install NETDIAG -install DVDUPGRD -install LAMEBTN -install RCTOOL
  78. rem #-install WMIXMLT
  79. rem ################################################################################
  80. rd/sq HelpCtr 2>nul
  81. md HelpCtr 2>nul
  82. echo Creating setup for Whistler (standalone)...
  83. perl generateinf.pl %COMPTOINSTALL% -dir HelpCtr -signfile HelpCtr\SetupImage.lst
  84. perl generateinf.pl %COMPTOINSTALL% -standalone -docopy -dir HelpCtr
  85. del/q %TEMP%\createdb.log >nul 2>nul
  86. del/q %TEMP%\hss.log >nul 2>nul
  87. pushd %REDIST%\common
  88. build /3
  89. popd
  90. pushd %REDIST%\%BUILDDIR%
  91. build /3
  92. popd
  93. if not exist %_NTTREE%\HelpAndSupportServices\%DATAFILE% (
  94. echo "Setup image creation failed!! Look at %_NTTREE%\builds_logs\hss.log"
  95. goto end
  96. )
  97. copy %_NTTREE%\HelpAndSupportServices\%CABINET% HelpCtr
  98. pushd HelpCtr
  99. copy PCHealth.inx+PCHealth.txt tmp1.INF
  100. prodfilt tmp1.INF tmp2.INF +%PROD%
  101. prodfilt tmp2.INF PCHealth.INF +%PLAT%
  102. del tmp1.INF
  103. del tmp2.INF
  104. popd
  105. exit /B
  106. :Usage
  107. echo " Usage: createHelpCtrSA <sku>
  108. echo "
  109. echo " Valid SKUs:
  110. echo "
  111. echo " Personal_32
  112. echo " Professional_32
  113. echo " Server_32
  114. echo " AdvancedServer_32
  115. echo " DataCenter_32
  116. echo " Professional_64
  117. echo " AdvancedServer_64
  118. echo " DataCenter_64
  119. exit /B