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.

80 lines
3.8 KiB

  1. @echo off
  2. call stopservices.bat
  3. call setpath.bat
  4. call make.bat
  5. @rem ---------------------------------------------------------------------
  6. echo Samples - Creating target install folder
  7. @rem ---------------------------------------------------------------------
  8. if not exist %sadir%\web\sample ( mkdir %sadir%\web\sample & if not %ERRORLEVEL%==0 goto abort )
  9. @rem ---------------------------------------------------------------------
  10. echo Samples - Installing Web Pages
  11. @rem ---------------------------------------------------------------------
  12. @copy %codedir%\web\sample.asp %sadir%\web\sample
  13. @copy %codedir%\web\sample_prop.asp %sadir%\web\sample
  14. @copy %codedir%\web\template_area.asp %sadir%\web\sample
  15. @copy %codedir%\web\template_area1.asp %sadir%\web\sample
  16. @copy %codedir%\web\template_area2.asp %sadir%\web\sample
  17. @copy %codedir%\web\template_area3.asp %sadir%\web\sample
  18. @copy %codedir%\web\template_fileupload.asp %sadir%\web\sample
  19. @copy %codedir%\web\template_file_post.asp %sadir%\web\sample
  20. @copy %codedir%\web\template_file_select.asp %sadir%\web\sample
  21. @copy %codedir%\web\template_property.asp %sadir%\web\sample
  22. @copy %codedir%\web\template_prop1.asp %sadir%\web\sample
  23. @copy %codedir%\web\template_prop2.asp %sadir%\web\sample
  24. @copy %codedir%\web\template_prop3.asp %sadir%\web\sample
  25. @copy %codedir%\web\template_prop4.asp %sadir%\web\sample
  26. @copy %codedir%\web\template_resource.asp %sadir%\web\sample
  27. @copy %codedir%\web\template_resource2.asp %sadir%\web\sample
  28. @copy %codedir%\web\template_resource3.asp %sadir%\web\sample
  29. @copy %codedir%\web\template_resource4.asp %sadir%\web\sample
  30. @copy %codedir%\web\template_resource_details.asp %sadir%\web\sample
  31. @copy %codedir%\web\template_tabbed.asp %sadir%\web\sample
  32. @copy %codedir%\web\template_wizard.asp %sadir%\web\sample
  33. @copy %codedir%\web\template_wizard1.asp %sadir%\web\sample
  34. @copy %codedir%\web\template_wizard2.asp %sadir%\web\sample
  35. @if not %ERRORLEVEL%==0 goto abort
  36. @rem ---------------------------------------------------------------------
  37. echo Samples - Installing Web Images
  38. @rem ---------------------------------------------------------------------
  39. @copy %codedir%\web\images\samples.jpg %sadir%\web\sample\images
  40. if not %ERRORLEVEL%==0 goto abort
  41. @rem ---------------------------------------------------------------------
  42. echo Samples - Installing Web CSS Sheet(s)
  43. @rem ---------------------------------------------------------------------
  44. @copy %codedir%\web\style\sample_styles.css %sadir%\web\style
  45. if not %ERRORLEVEL%==0 goto abort
  46. @rem ---------------------------------------------------------------------
  47. echo Samples - Installing Localization Resources
  48. @rem ---------------------------------------------------------------------
  49. if not exist %codedir%\resources\en\sample\sample.dll ( echo install_sample: resource file has not been compiled & goto abort )
  50. if not exist %sadir%\mui\0409 ( mkdir %sadir%\mui\0409 & if not %ERRORLEVEL%==0 goto abort )
  51. copy %codedir%\resources\en\sample\sample.dll %sadir%\mui\0409
  52. if not %ERRORLEVEL%==0 goto abort
  53. @rem ---------------------------------------------------------------------
  54. echo Samples - Loading REG entries
  55. @rem ---------------------------------------------------------------------
  56. regedit /s %codedir%\tabs.reg
  57. regedit /s %codedir%\sample_about.reg
  58. regedit /s %codedir%\sample_resource.reg
  59. regedit /s %codedir%\sample_css.reg
  60. goto end
  61. @rem ---------------------------------------------------------------------
  62. :abort
  63. echo install_sample: INSTALLATIONABORTED
  64. call startservices.bat
  65. exit /b 1
  66. @rem ---------------------------------------------------------------------
  67. :end
  68. call startservices.bat
  69. net stop elementmgr
  70. exit /b 0