home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / w / windev.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1993-01-25  |  2KB  |  79 lines

  1. @echo off
  2. REM  Installation script for Windev on Windows 3.1 or NT.
  3.  
  4. if not "%1" == "" goto install
  5. @echo Usage: INSTALL destination-directory
  6. goto end
  7.  
  8. :install
  9. if not "%windir%" == "" goto setos
  10. set windir=C:\WINDOWS
  11.  
  12. :setos
  13. set destdir=%1\windev
  14. if exist windevpj.pif goto setwin3
  15. @echo Installing Windev for Windows NT
  16. set os=nt
  17. goto mkdirs
  18.  
  19. :setwin3
  20. @echo Installing Windev for Windows 3.1
  21. set os=win3
  22.  
  23. :mkdirs
  24. mkdir %destdir%
  25. mkdir %destdir%\%os%
  26.  
  27. REM --- O/S specific, common named files.
  28. echo Copying to %destdir%\%os% ...
  29. echo readme.txt...
  30. copy readme.txt %destdir%\%os%
  31. if not exist %destdir%\%os%\readme.txt goto copyerr
  32. echo windev.exe...
  33. copy windev.exe %destdir%\%os%
  34. if not exist %destdir%\%os%\windev.exe goto copyerr
  35.  
  36. if "%os%" == "nt" goto ntfiles
  37. REM --- Windows 3 specific files.
  38. echo stbar.dll...
  39. copy stbar.dll %destdir%\%os%
  40. if not exist %destdir%\%os%\stbar.dll goto copyerr
  41. echo Copying windevpj.pif to %windir%
  42. copy windevpj.pif %windir%
  43. if not exist %windir%\windevpj.pif goto copyerr
  44. goto shared
  45.  
  46. :ntfiles
  47. REM --- Windows NT specific files.
  48. echo projexec.exe...
  49. copy projexec.exe %destdir%\%os%
  50. if not exist %destdir%\%os%\projexec.exe goto copyerr
  51.  
  52. :shared
  53. REM --- Common files.
  54. echo Copying to %destdir% ...
  55. echo windev.hlp...
  56. copy windev.hlp %destdir%
  57. if not exist %destdir%\windev.hlp goto copyerr
  58. echo license.txt...
  59. copy license.txt %destdir%
  60. if not exist %destdir%\license.txt goto copyerr
  61. echo changes.txt...
  62. copy changes.txt %destdir%
  63. if not exist %destdir%\changes.txt goto copyerr
  64. echo features.wri...
  65. copy features.wri %destdir%
  66. if not exist %destdir%\features.wri goto copyerr
  67.  
  68. @echo ---------------------------------------------------------
  69. @echo Windev has been successfully installed in %destdir%
  70. @echo Please read %os%\readme.txt before starting use.
  71. @echo Use Program Manager to add windev.exe to a program group.
  72. @echo ---------------------------------------------------------
  73. goto end
  74.  
  75. :copyerr
  76. @echo File copy error, abandoning installation.
  77.  
  78. :end
  79.