home *** CD-ROM | disk | FTP | other *** search
/ Computer Buyer 1996 August / DKMMSAMP.iso / support / dossetup / dossetup.bat next >
DOS Batch File  |  1996-02-22  |  4KB  |  85 lines

  1. @echo off
  2. echo Dorling Kindersley Multimedia Backup Installer (From CDROM Version)...
  3. echo Version 1.0
  4. echo.
  5. REM First check if install windows path is valid & current drive = cd drive.
  6. set windowspath=c:\windows
  7. if not "%1"=="" set windowspath=%1
  8. if not exist \dkcode\ole2.dl_ goto ErrorLogCDFirst
  9. if not exist %windowspath%\win.com goto ErrorWinPath
  10.  
  11. REM Now expand all the files from the CD to the windows directory.
  12. expand \dkcode\MPLAYER.EX_ %windowspath%\MPLAYER.EXE
  13. expand \dkcode\MPLAYER.HL_ %windowspath%\MPLAYER.HLP
  14. expand \dkcode\MPLAYER.RE_ %windowspath%\MPLAYER.REG
  15. expand \dkcode\OLE2.RE_ %windowspath%\OLE2.REG
  16. expand \dkcode\CLEANUP.RE_ %windowspath%\CLEANUP.REG
  17.  
  18. REM Now expand all the files from the CD to the windows system directory.
  19. expand \dkcode\ACMCMPRS.DL_ %windowspath%\system\ACMCMPRS.DLL
  20. expand \dkcode\AVICAP.DL_ %windowspath%\system\AVICAP.DLL
  21. expand \dkcode\AVIFILE.DL_ %windowspath%\system\AVIFILE.DLL
  22. expand \dkcode\COMPOBJ.DL_ %windowspath%\system\COMPOBJ.DLL
  23. expand \dkcode\CTL3D.DL_ %windowspath%\system\CTL3D.DLL
  24. expand \dkcode\DCISVGA.DR_ %windowspath%\system\DCISVGA.DRV
  25. expand \dkcode\DISPDIB.DL_ %windowspath%\system\DISPDIB.DLL
  26. expand \dkcode\DVA.38_ %windowspath%\system\DVA.386
  27. expand \dkcode\ICCVID.DR_ %windowspath%\system\ICCVID.DRV
  28. expand \dkcode\IMAADPCM.AC_ %windowspath%\system\IMAADPCM.ACM
  29. expand \dkcode\IR21.DL_ %windowspath%\system\IR21.DLL
  30. expand \dkcode\IR32.DL_ %windowspath%\system\IR32.DLL
  31. expand \dkcode\IYVU9.DL_ %windowspath%\system\IYVU9.DLL
  32. expand \dkcode\MAP_WIN.HL_ %windowspath%\system\MAP_WIN.HLP
  33. expand \dkcode\MCIAVI.DR_ %windowspath%\system\MCIAVI.DRV
  34. expand \dkcode\MCIOLE.DL_ %windowspath%\system\MCIOLE.DLL
  35. expand \dkcode\MSACM.DL_ %windowspath%\system\MSACM.DLL
  36. expand \dkcode\MSACM.DR_ %windowspath%\system\MSACM.DRV
  37. expand \dkcode\MSADPCM.AC_ %windowspath%\system\MSADPCM.ACM
  38. expand \dkcode\MSRLE.DR_ %windowspath%\system\MSRLE.DRV
  39. expand \dkcode\MSVIDC.DR_ %windowspath%\system\MSVIDC.DRV
  40. expand \dkcode\MSVIDEO.DL_ %windowspath%\system\MSVIDEO.DLL
  41. expand \dkcode\OLE2.DL_ %windowspath%\system\OLE2.DLL
  42. expand \dkcode\OLE2CONV.DL_ %windowspath%\system\OLE2CONV.DLL
  43. expand \dkcode\OLE2DISP.DL_ %windowspath%\system\OLE2DISP.DLL
  44. expand \dkcode\OLE2NLS.DL_ %windowspath%\system\OLE2NLS.DLL
  45. expand \dkcode\OLE2PROX.DL_ %windowspath%\system\OLE2PROX.DLL
  46. expand \dkcode\STDOLE.TL_ %windowspath%\system\STDOLE.TLB
  47. expand \dkcode\STORAGE.DL_ %windowspath%\system\STORAGE.DLL
  48. expand \dkcode\TYPELIB.DL_ %windowspath%\system\TYPELIB.DLL
  49. expand \dkcode\WING.DL_ %windowspath%\system\WING.DLL
  50. expand \dkcode\WING32.DL_ %windowspath%\system\WING32.DLL
  51. expand \dkcode\WINGDE.DL_ %windowspath%\system\WINGDE.DLL
  52. expand \dkcode\WINGDIB.DR_ %windowspath%\system\WINGDIB.DRV
  53. expand \dkcode\WINGPAL.WN_ %windowspath%\system\WINGPAL.WND
  54.  
  55. REM Now run the Windows program to set ini settings & merge registry files...
  56. REM N.B. it will also exit Windows when done...
  57. %windowspath%\win.com \support\dossetup\iniupd.exe
  58.  
  59. REM Check that Windows exited still logged onto the CD drive letter...
  60. if not exist \dkcode\ole2.dl_ goto BadExitWinDrv
  61.  
  62. REM Now run the normal setup to add icons & copy the program files...
  63. %windowspath%\win.com \setup.exe
  64. goto End
  65.  
  66. :ErrorLogCDFirst
  67. echo You must log onto your CD drive letter first.
  68. echo.
  69. echo E.g. if your CD drive letter is "e" type "e:" [return] before running dossetup.
  70. echo.
  71. goto End
  72.  
  73. :ErrorWinPath
  74. echo Type: "a:dossetup [your windows directory here] [return]"
  75. echo.
  76. echo E.g. if windows is in "c:\windows" type "dossetup c:\windows" and then [return]
  77. echo.
  78. goto End
  79.  
  80. :BadExitWinDrv
  81. echo Now re-load windows and run the setup program as specified in the instructions.
  82. echo.
  83.  
  84. :End
  85.