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.

74 lines
1.3 KiB

  1. @echo off
  2. setlocal
  3. set mode=%1
  4. if "%mode%"=="all" (
  5. set CREATE_INX=1
  6. set CREATE_LST=1
  7. goto doit
  8. )
  9. if "%mode%"=="inf" (
  10. set CREATE_INX=1
  11. set CREATE_LST=0
  12. goto doit
  13. )
  14. if "%mode%"=="image" (
  15. set CREATE_INX=0
  16. set CREATE_LST=1
  17. goto doit
  18. )
  19. echo "Usage: createsetup image|inf|all"
  20. exit /B
  21. rem ################################################################################
  22. :doit
  23. set INX=%sdxroot%\MergedComponents\SetupInfs
  24. set REDIST=%sdxroot%\admin\pchealth\redist
  25. rem ################################################################################
  26. set COMPTOINSTALL=-install CORE -install UPLOADLB -install HELPCTR -install SYSINFO -install NETDIAG -install DVDUPGRD -install LAMEBTN -install RCTOOL
  27. rem ################################################################################
  28. echo.
  29. if "%CREATE_INX%"=="1" (
  30. echo Creating setup INF for Whistler...
  31. pushd %INX%
  32. sd edit PCHealth.inx
  33. sd edit usa\PCHealth.txt
  34. popd
  35. perl generateinf.pl %COMPTOINSTALL% -inf %INX% -inftxt %INX%\usa -signfile %TEMP%\SetupImage.lst
  36. )
  37. if "%CREATE_LST%"=="1" (
  38. echo Creating setup image for Whistler...
  39. pushd %REDIST%
  40. sd edit SetupImage.lst
  41. popd
  42. perl generateinf.pl %COMPTOINSTALL% -inf %TEMP% -inftxt %TEMP% -signfile %REDIST%\SetupImage.lst
  43. )
  44. echo.