home *** CD-ROM | disk | FTP | other *** search
/ On Hand / On_Hand_From_Softbank_1994_Release_2_Disc_1_1994.iso / 00091 / s / sconfig.scr < prev    next >
Text File  |  1993-09-13  |  5KB  |  130 lines

  1. * SCONFIG.SCR
  2. * This script is invoked when Relay is invoked via Setup. It leads the user
  3. * through the configuration dialog boxes for the features they've chosen to
  4. * install.
  5.         on error
  6.         set drive &RDRIVE
  7.         &PARM1 = &1     ;* type of installation (NORMAL, UPGRADE or UPDATE)
  8.         &PARM2 = &2     ;* run Online Registration? (REG or NOREG)
  9.         &PARM3 = &3     ;* run SYS Converter? (SYS)
  10.         &AFLAG = N      ;* flag for Async
  11.         &TFLAG = N      ;* flag for TN3270 options
  12.         &AUTOFLAG = N   ;* flag to denote that they may have to update AUTOEXEC
  13.         if not exists &RDRIVE.\DATAFILE.DAT goto DONE
  14.         open &RDRIVE.\DATAFILE.DAT as #1 for input
  15.         loop READ *
  16.           read file #1 &DATALINE
  17.           if not found close #1; goto DONE
  18.           &DATALINE = &trim(&upper(&DATALINE))
  19.           if (&DATALINE = +SERIAL) &AFLAG = Y
  20.             then gosub SERIAL; then goto READ
  21.           if (&DATALINE = +COAX) gosub COAX; goto READ
  22.           if (&DATALINE = +TIC) gosub TIC; goto READ
  23.           if (&DATALINE = +GATEWAY) gosub GATE; goto READ
  24.           if (&TFLAG = Y) goto READ
  25.           if (&DATALINE = +TN3270) or (&DATALINE = +TELNET) gosub TCPIP
  26.             then &TFLAG = Y; then goto READ
  27. -READ
  28.  
  29. * Configure Asynchronous options...
  30. -SERIAL
  31.         display dialogbox OKCANCEL "Relay/PC Gold Setup" "Relay/PC Gold is now bringing up the configuration dialog for Asynchronous Dialup Support. Choose CANCEL if you do not wish to configure."
  32.         if (&rc > 0) return
  33.         select menu configuremodems
  34.         gosub WAIT
  35.         return
  36.  
  37. * Configure Coax Adapters...
  38. -COAX
  39.         display dialogbox OKCANCEL "Relay/PC Gold Setup" "Relay/PC Gold is now bringing up the configuration dialog for 3270 Coax Support. Choose CANCEL if you do not wish to configure."
  40.         if (&rc > 0) return
  41.         select menu configurecoaxadapters
  42.         gosub WAIT
  43.         return
  44.  
  45. * Configure Tic...
  46. -TIC
  47.         &AUTOFLAG = Y
  48.         display dialogbox OKCANCEL "Relay/PC Gold Setup" "Relay/PC Gold is now bringing up the configuration dialog for Token-Ring Support. Choose CANCEL if you do not wish to configure."
  49.         if (&rc > 0) return
  50.         select menu configureticaddress
  51.         gosub WAIT
  52.         return
  53.  
  54. * Configure 3270 Gateways...
  55. -GATE
  56.         &AUTOFLAG = Y
  57.         display dialogbox OKCANCEL "Relay/PC Gold Setup" "Relay/PC Gold is now bringing up the configuration dialog for 3270 Gateway Support. Choose CANCEL if you do not wish to configure."
  58.         if (&rc > 0) return
  59.         select menu configure3270gateways
  60.         gosub WAIT
  61.         return
  62.  
  63. * Configure TCP/IP...
  64. -TCPIP
  65.         &AUTOFLAG = Y
  66.         display dialogbox OKCANCEL "Relay/PC Gold Setup" "Relay/PC Gold is now bringing up the configuration dialog for TCP/IP Support. Choose CANCEL if you do not wish to configure."
  67.         if (&rc > 0) return
  68.         select menu configureTCP/IP
  69.         gosub WAIT
  70.         return
  71.  
  72. -WAIT
  73.         loop BOXDOWN *
  74.           wait 2
  75.           if (&dialogview = NONE) return
  76. -BOXDOWN
  77.  
  78. * Configuration is complete - launch SYS Converter if user specified to
  79. -DONE
  80.         quiet erase &RDRIVE.\DATAFILE.DAT
  81.         if (&PARM1 = NORMAL) then &TEXT = "installation"
  82.         if (&PARM1 = UPGRADE) then &TEXT = "upgrade"
  83.         if (&PARM1 = UPDATE) then &TEXT = "update"
  84.         if (&PARM2 = REG) goto REGISTER
  85.  
  86. * Tell them that the installation/update/upgrade is complete
  87.         display dialogbox OK "Relay/PC Gold Setup" "Your &TEXT of Relay/PC Gold is now complete!"
  88.  
  89. * If the user installed TIC, Gateway or TCP/IP features, notify them that they
  90. * may need to make changes to their AUTOEXEC.BAT and CONFIG.SYS files in order
  91. * for those features to work properly.
  92.         if (&AUTOFLAG = Y)
  93.           then display dialogbox OK "Relay/PC Gold Setup" "You may need to modify your AUTOEXEC.BAT &LF and CONFIG.SYS files in order to use some &LF of the features you have installed. &LF Please refer to the README file for more details."
  94.  
  95. * Ask user if they want to run Online Registration (only if they installed ASYNC)
  96. * and only if this is a first time installation
  97.         if (&AFLAG = N) goto SYS
  98.         if (&PARM1 = UPDATE) goto SYS
  99.         display dialogbox OKCANCEL "Relay/PC Gold Setup" "Would you like to register now?"
  100.         &HRC = &retcode
  101.         if (&HRC = 2) goto SYS
  102.  
  103. * Launch online registration application
  104. -REGISTER
  105.         global &CONT; &CONT = N
  106.         launch &RDRIVE.\REGISTER.EXE
  107.         &HRC = &retcode
  108.         if (&HRC > 0) goto SYS
  109.         wait until (&CONT = Y) or (&CONT = E)
  110.         if (&CONT = E) goto SYS
  111.         select menu controlmenuminimize
  112.         quiet execute WRLYREG1
  113.         wait until (&CONT = D)
  114.  
  115. -SYS
  116.         if (&PARM3 <> SYS) quiet stop
  117.         display dialogbox OKCANCEL "Relay/PC Gold Setup" "If you have a previous version of Relay, you may convert that Directory of Computers to the new 6.0 format. Press OK to run the SYS Convert Program."
  118.         if (&rc > 0) quiet stop
  119.         global &START
  120.         &START = N
  121.         launch &RDRIVE.\SYSCONV.EXE
  122.         &HRC = &retcode
  123.         if (&HRC > 0) quiet stop
  124.         wait until (&START = Y)
  125.         execute GOLDDIR6 'UNLOAD' '' '&CONVPATH'
  126.         &START = D
  127.         wait 10
  128.         quiet stop
  129.  
  130.