home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 7 Games / 07-Games.zip / dmlnch11.zip / install.cmd < prev    next >
OS/2 REXX Batch file  |  1994-04-03  |  2KB  |  73 lines

  1. /* REXX - Install for DOOM Launcher for OS/2 V 1.1 */
  2. /* INSTALL.CMD Version 1.1                         */
  3. /* (C) Copyright 1994, by Kevin Royalty            */
  4.  
  5. Call RxFuncAdd 'SysLoadFuncs','REXXUTIL','SysLoadFuncs';
  6. Call SysLoadFuncs; 
  7.  
  8. say 'Enter the drive and path where DOOM Launcher is located'
  9. say 'ex: C:\DOOMLNCH'
  10. pull DLPath
  11.  
  12. rc=SysCreateObject("WPFolder","DOOM Launcher! "||'0A'X||"for OS/2 V 1.1","<WP_DESKTOP>",,
  13. "OBJECTID=<Folder>;"||,
  14. "HELPPANEL=15685;"||,
  15. "NOPRINT=YES;"||,
  16. "ICONPOS=17 19;"||,
  17. "ICONVIEW=NONGRID,"||,
  18. "NORMAL;"||,
  19. "TREEVIEW=LINES,"||,
  20. "NORMAL;"||,
  21. "DETAILSVIEW=MINI;"||,
  22. "ICONFONT=8.Helv;"||,
  23. "DETAILSFONT=8.Helv;"||,
  24. "TREEFONT=14.System;"||,
  25. "", 'UpdateIfExists'); 
  26.  
  27. If rc<>1 Then Say "Object: DOOM Launcher! ^for OS/2 V 1.1 could not be created/updated !"; 
  28.  
  29. rc=SysCreateObject("WPProgram","Registration "||'0A'X||"Information","<Folder>",,
  30. "HELPPANEL=15684;"||,
  31. "NOPRINT=YES;"||,
  32. "EXENAME=EPM.EXE;"||,
  33. "PARAMETERS=" || DLPath || "\register.txt;"||,
  34. "PROGTYPE=PM;"||,
  35. "STARTUPDIR=" || DLPath || ";"||,
  36. "", 'UpdateIfExists'); 
  37.  
  38. If rc<>1 Then Say "Object: Registration ^Information could not be created/updated !"; 
  39.  
  40. rc=SysCreateObject("WPProgram","README "||'0A'X||"FIRST","<Folder>",,
  41. "HELPPANEL=15684;"||,
  42. "NOPRINT=YES;"||,
  43. "EXENAME=E.EXE;"||,
  44. "PARAMETERS=" || DLPath || "\readme.1st;"||,
  45. "PROGTYPE=PM;"||,
  46. "STARTUPDIR=" || DLPath || ";"||,
  47. "", 'UpdateIfExists'); 
  48.  
  49. If rc<>1 Then Say "Object: README ^FIRST could not be created/updated !"; 
  50.  
  51. rc=SysCreateObject("WPProgram","DOOM Launcher! "||'0A'X||"Documentation","<Folder>",,
  52. "HELPPANEL=15684;"||,
  53. "NOPRINT=YES;"||,
  54. "EXENAME=VIEW.EXE;"||,
  55. "PARAMETERS=" || DLPath || "\doomlnch.inf;"||,
  56. "PROGTYPE=PM;"||,
  57. "STARTUPDIR=" || DLPath || ";"||,
  58. "", 'UpdateIfExists'); 
  59.  
  60. If rc<>1 Then Say "Object: DOOM Launcher! ^Documentation could not be created/updated !"; 
  61.  
  62.  
  63. rc=SysCreateObject("WPProgram","DOOM Launcher! "||'0A'X||"for OS/2 V 1.1","<Folder>",,
  64. "HELPPANEL=15684;"||,
  65. "NOPRINT=YES;"||,
  66. "EXENAME=" || DLPath || "\DOOMLNCH.EXE;"||,
  67. "PROGTYPE=DEFAULT;"||,
  68. "STARTUPDIR=" || DLPath || ";"||,
  69. "", 'UpdateIfExists'); 
  70.  
  71. If rc<>1 Then Say "Object: DOOM Launcher! ^for OS/2 V 1.1 could not be created/updated !"; 
  72.  
  73.