home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 3 Comm / 03-Comm.zip / lw22.zip / INSTALL.CMD < prev    next >
OS/2 REXX Batch file  |  1994-04-20  |  4KB  |  115 lines

  1. /* LiveWire 2.2 installation program */
  2.  
  3. /* Install REXX system functions */
  4. call rxfuncadd sysloadfuncs, rexxutil, sysloadfuncs
  5. call sysloadfuncs
  6.  
  7. /* Determine the path to LiveWire */
  8. parse source . . argv0 .
  9. temp = reverse(argv0)
  10. temp = substr(temp, pos('\', temp))
  11. if length(temp) > 3 then temp = substr(temp, 2)
  12. CurrentPath = reverse(temp)
  13.  
  14. /* Begin installation */
  15. ECHO OFF
  16. call SysCls
  17. Say "LiveWire 2.2 Release Install Program"
  18. Say "Copyright 1994 Les Novell"
  19. Say ""
  20. Say "This installation script assumes that it is running from the directory"
  21. Say "on your hard drive where you want LiveWire 2.2"
  22. Say ""
  23. Say "This installation program will remove all old LiveWire configuration files"
  24. Say "(except dialing directories), create the .\PROTOCOL directory,"
  25. Say "and install a desktop folder for LiveWire."
  26. Say ""
  27. Say "Press [ENTER] to perform installation, or [CTRL-BREAK] to halt"
  28. Pull A
  29.  
  30. call SysCls
  31. Say "Beginning installation..."
  32. Say ""
  33. Say "Removing any residual configuration files..."
  34. "ERASE LW.CFG LW.ICI LW.MAC LW.MHF LW.XLT VT100.EMU 2>NUL"
  35. Say ""
  36. Say "Creating directory PROTOCOL..."
  37. Say "  LiveWire will search this directory for installable file transfer"
  38. Say "  protocols, including the path."
  39. "MKDIR PROTOCOL 2>NUL"
  40. Say ""
  41. Say "Creating a desktop folder for LiveWire"
  42. Say "  The desktop folder will contain the program and related"
  43. Say "  documentation. It will be located in the upper left-hand"
  44. Say "  corner of your desktop. Move it wherever you like."
  45. Say ""
  46.  
  47. /* Create the LiveWire folder */
  48. setting="OBJECTID=<LIVEWIRE22_FOLDER>;";
  49. ret = SysCreateObject("WPFolder", "LiveWire Communications", "<WP_DESKTOP>", setting, "U")
  50.  
  51. /* Create Registration object */
  52. setting="OBJECTID=<LIVEWIRE22_REG>;"||,
  53.      "EXENAME="||CurrentPath||"\LW22.EXE;"||,
  54.          "ICONFILE="||CurrentPath||"\LWREG.ICO;"||,
  55.      "STARTUPDIR="CurrentPath";"||,
  56.      "PARAMETERS=REGISTER;"||,
  57.      "PROGTYPE=WINDOWABLEVIO;"
  58. ret = SysCreateObject("WPProgram", "Register LiveWire", "<LIVEWIRE22_FOLDER>", setting, "R")
  59.  
  60. /* Create README object */
  61. setting="OBJECTID=<LIVEWIRE22_README>;"||,
  62.      "EXENAME=E.EXE;"||,
  63.      "PARAMETERS=READ.ME;"||,
  64.      "STARTUPDIR="CurrentPath";"||,
  65.      "PROGTYPE=PM;"
  66. ret = SysCreateObject("WPProgram", "Read Me First", "<LIVEWIRE22_FOLDER>", setting, "R")
  67.  
  68. /* Create DOCUMENTATION object */
  69. setting="OBJECTID=<LIVEWIRE22_DOCS>;"||,
  70.      "EXENAME=VIEW.EXE;"||,
  71.      "PARAMETERS=LW22.INF;"||,
  72.      "STARTUPDIR="CurrentPath";"||,
  73.      "PROGTYPE=PM;"
  74. ret = SysCreateObject("WPProgram", "LiveWire 2.2 Manuals", "<LIVEWIRE22_FOLDER>", setting, "R")
  75.  
  76. /* Create FAQ object */
  77. setting="OBJECTID=<LIVEWIRE22_FAQ>;"||,
  78.      "EXENAME=VIEW.EXE;"||,
  79.      "PARAMETERS=LWFAQ.INF;"||,
  80.      "STARTUPDIR="CurrentPath";"||,
  81.      "PROGTYPE=PM;"
  82. ret = SysCreateObject("WPProgram", "Frequently Asked Questions", "<LIVEWIRE22_FOLDER>", setting, "R")
  83.  
  84. /* Create ORDER.FRM object */
  85. setting="SHADOWID="||CurrentPath||"\ORDER.FRM;"
  86. ret = SysCreateObject("WPShadow", "How to order LiveWire 2.2", "<LIVEWIRE22_FOLDER>", setting, "R")
  87.  
  88. /* Create Program object */
  89. setting="OBJECTID=<LW_EXE>;"||,
  90.      "EXENAME="||CurrentPath||"\LW22.EXE;"||,
  91.          "ICONFILE="||CurrentPath||"\LWPRG.ICO;"||,
  92.      "STARTUPDIR="CurrentPath";"||,
  93.      "PROGTYPE=WINDOWABLEVIO;"
  94. ret = SysCreateObject("WPProgram", "LiveWire 2.2 Program", "<LIVEWIRE22_FOLDER>", setting, "R")
  95.  
  96. /* Create Host Mode object */
  97. setting="OBJECTID=<LIVEWIRE22_HOST>;"||,
  98.      "EXENAME="||CurrentPath||"\LW22.EXE;"||,
  99.      "PARAMETERS=/Shost.cmd;"||,
  100.          "ICONFILE="||CurrentPath||"\LWHST.ICO;"||,
  101.      "STARTUPDIR="CurrentPath";"||,
  102.      "PROGTYPE=WINDOWABLEVIO;"
  103. ret = SysCreateObject("WPProgram", "LiveWire 2.2 Host Mode", "<LIVEWIRE22_FOLDER>", setting, "R")
  104.  
  105. /* Create PM File Transfer Monitor object */
  106. setting="OBJECTID=<LIVEWIRE22_XFERMONITOR>;"||,
  107.      "EXENAME="||CurrentPath||"\LWXFER.EXE;"||,
  108.      "STARTUPDIR="CurrentPath";"||,
  109.      "PROGTYPE=PM;"
  110. ret = SysCreateObject("WPProgram", "File Transfer Monitor", "<LIVEWIRE22_FOLDER>", setting, "R")
  111.  
  112. Say "Installation complete."
  113. Say "To configure LiveWire, double click on the LiveWire icon."
  114. Say ""
  115.