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.

79 lines
2.3 KiB

  1. @echo off
  2. if "%_echo%"=="1" echo on
  3. rem -----------------------------------------------------------------------------
  4. rem Copyright (c) Microsoft Corporation 2001
  5. rem
  6. rem build_install.bat
  7. rem
  8. rem Batch script to build the server MSM and MSI installs for BITS.
  9. rem
  10. rem build_install.bat [i386_path]
  11. rem
  12. rem i386_path is the location to get the BITS binaries from. The default is
  13. rem to get these from the VBL04 latest x86 release location.
  14. rem
  15. rem Note:
  16. rem You must include InstallShield and Common Files\InstallShield in your
  17. rem path for this to work correctly. For example, the following (or equivalent)
  18. rem must be in your path for iscmdbld.exe to execute properly:
  19. rem
  20. rem c:\Program Files\Common Files\InstallShield
  21. rem c:\Program Files\InstallShield\Professional - Windows Installer Edition\System
  22. rem -----------------------------------------------------------------------------
  23. set SourcePath="\\mgmtrel1\latest.tst.x86fre"
  24. set TargetPath="bins\i386"
  25. if not "%1"=="" (set SourcePath=%1)
  26. echo Get BITS binaries from %SourcePath%
  27. rem
  28. rem Get the BITS files that are included in the MSM
  29. rem
  30. rmdir /s /q bins
  31. if not exist bins (md bins)
  32. if not exist bins\i386 (md bins\i386)
  33. if exist %SourcePath%\bitsmgr.dll (
  34. copy %SourcePath%\bitsmgr.dll %TargetPath% || goto :eof
  35. copy %SourcePath%\bitssrv.dll %TargetPath% || goto :eof
  36. )
  37. if exist %SourcePath%\bitsmgr.dl_ (
  38. copy %SourcePath%\bitsmgr.dl_ %TargetPath% || goto :eof
  39. copy %SourcePath%\bitssrv.dl_ %TargetPath% || goto :eof
  40. expand %TargetPath%\bitsmgr.dl_ %TargetPath%\bitsmgr.dll
  41. expand %TargetPath%\bitssrv.dl_ %TargetPath%\bitssrv.dll
  42. )
  43. if exist %SourcePath%\bitsmgr.chm (
  44. copy %SourcePath%\bitsmgr.chm %TargetPath% || goto :eof
  45. ) else if exist %SourcePath%\bitsmgr.ch_ (
  46. copy %SourcePath%\bitsmgr.ch_ %TargetPath% || goto :eof
  47. expand %TargetPath%\bitsmgr.ch_ %TargetPath%\bitsmgr.chm
  48. ) else (
  49. copy ..\server\mmcexts\help\bitsmgr.chm %TargetPath% || goto :eof
  50. )
  51. rem
  52. rem Build custom action
  53. rem
  54. cd bitsrvc
  55. build -cZ
  56. cd ..
  57. rem
  58. rem Run InstallShield to build the server MSM
  59. rem
  60. iscmdbld /c UNCOMP -a "Product Configuration 1" -r "Release 1" /p bits-extensions-msm.ism || goto :eof
  61. rem
  62. rem Run InstallShield to build the server MSI
  63. rem
  64. iscmdbld /c UNCOMP -a "Product Configuration 1" -r "Release 1" /p bits-extensions-msi.ism