home *** CD-ROM | disk | FTP | other *** search
/ Out-Of-The-Net / Out-Of-The-Net.iso / t / install-net&web < prev    next >
Text File  |  1996-06-05  |  26KB  |  1,069 lines

  1. ;$VER: Net&Web-Install 1.04 (21.5.96)
  2. ;Installation sript - Richard
  3. ;*catch any errors and pass dos errors to a message screen
  4. ;*if a dos problem occured
  5.  
  6. (onerror
  7. (USER 2)
  8.  
  9. (IF (> @ioerr 0)
  10.     (Message ("\n\nA Dos Error %ld has occured" @ioerr)
  11.     "\n\n\n\nPlease consult your Workbench manual"
  12.     (" for further details, or type Fault %ld from a shell." @ioerr))
  13. )
  14. )
  15.  
  16. (set default-dest @default-dest)
  17.  
  18. (SET default-user @user-level)
  19.  
  20. (if (<> (exists "MUI:Libs/muimaster.library" (noreq)) 1)
  21.  
  22.     (
  23.     (user 2)
  24.     (Message "\n\nError MUI not installed. Run the MUI installation script before running this script.")
  25.     (exit (quiet))
  26.  
  27.     )
  28.  
  29. )
  30.  
  31. (if (<> (exists "SYS:Rexxc/rx" (noreq)) 1)
  32.  
  33.     (
  34.  
  35.     (user 2)
  36.     (Message "\n\nError AREXX is not correctly installed on this machine. Please reinstall Workbench so that AREXX is properly installed.")
  37.     (exit (quiet))
  38.  
  39.     )
  40.     
  41.     (
  42.  
  43.     (If (OR (= (exists "SYS:WBStartup/Rexxmast") 1) (= (exists "SYS:System/Rexxmast") 1) )
  44.  
  45.         (
  46.         (run "SYS:System/Rexxmast")
  47.         )
  48.  
  49.         (
  50.         (user 2)
  51.         (Message "\n\nError AREXX is not correctly installed on this machine. Please reinstall Workbench so that AREXX is properly installed.")
  52.         (exit (quiet))
  53.         )
  54.  
  55.     )
  56.     )
  57. )
  58.  
  59. (welcome)
  60.  
  61. ;*set version - true if greater than version 37
  62. (SET WBVer (< 2424832 (getversion "exec.library" (resident))))
  63.  
  64. (set processor
  65. (database "cpu")
  66. )
  67.  
  68. (set n 0)
  69. (while (set FILETOCOPY (select n "delete" "rename" "edit" ""))
  70.     (
  71.     (set n (+ n 1))
  72.     (copyfiles
  73.     (source "Net&Web1:")
  74.     (dest "RAM:")
  75.     (pattern FILETOCOPY)
  76.     (nogauge)
  77.     )
  78.     )
  79. )
  80.  
  81. (Working "Performing a thorough system check on your\nAmiga, this may take a few minutes.")
  82.  
  83. (run "SYS:Rexxc/rx Net&web1:CheckWorkbench SYS: RAM:WBERRORFILE NEW")
  84.  
  85. (USER 2)
  86.  
  87. (run "Net&web1:wait 2")
  88.  
  89. (IF (= (exists "ENV:ERRORVALUE") 1)
  90.  
  91.     (
  92.  
  93. (SET ERRORVALUE (GETENV "ERRORVALUE"))
  94.  
  95. (IF (OR (<= ERRORVALUE 0) (<= ERRORVALUE 1))
  96.     (
  97.     (run "run Net&Web1:more RAM:WBERRORFILE")
  98.     (Message "Problems have been found with your Workbench.\n\nFiles are either missing or are the incorrect version for this computer's Kickstart.\n\nThese are serious errors that MUST be fixed before the installation can proceed.\n\nThe way to fix these errors is to install the correct and COMPLETE Workbench for your Amiga.\n\nYou may select either Proceed or Abort to exit the installation.")
  99.     (exit (quiet))
  100.     )
  101. )
  102.  
  103. (IF (= ERRORVALUE 2)
  104.     (
  105.     (run "run Net&Web1:more RAM:WBERRORFILE")
  106.     (Message "Some problems have been found with your Workbench.\n\nThe files listed are too old/new for the Kickstart(ROMs) in your machine. These are serious errors that should be fixed.\n\nPlease reinstall Workbench or fix the appropriate files.\n\nYou may continue the installation however, if you experience problems when running the package, we would recommend that you reinstall Workbench.")
  107.     (exit (quiet))
  108.     )
  109. )
  110.  
  111. (IF (= ERRORVALUE 3)
  112.     (
  113.     (run "run Net&Web1:more RAM:WBERRORFILE")
  114.     (Message "Some problems have been found with your Workbench.\nThe files listed are too new/old for the Kickstart in your machine.\n\nThese errors may not be a problem.\n\nHowever if you experience problems when running the package, we would recommend that you reinstall Workbench.\n\nSelect proceed to continue.")
  115.     )
  116. )
  117.  
  118.     )
  119.  
  120. )
  121.  
  122. (PROCEDURE NAME&PASSWORD
  123.  
  124. (user 2)
  125.  
  126. (SET NODENAME
  127.     (askstring
  128.     (Prompt "Enter the nodename(Demon/CIX) or login name (Frontier) for your account")
  129.     (help @askstring-help)
  130.     (default "nodename or login name")
  131.     )
  132. )
  133.  
  134. (SET PASSWORD
  135.     (askstring
  136.     (Prompt "Enter the password for your account\n\n**Note:** This is case sensitive i.e. XYzzy42 is not the same as xyzzy42")
  137.     (help @askstring-help)
  138.     (default "Enter your login password")
  139.     )
  140. )
  141.  
  142.  
  143. (set n
  144. (askbool
  145. (Prompt ("Your Nodename: %s\n Your password: %s\n\n Are these correct?" NODENAME PASSWORD))
  146. (Help "These entries must be correct for internet access to work, please check that they are correct.\n*Important*\nMake sure you note down your NODENAME and password")
  147. (Choices "Yes" "No")
  148. (default 1)
  149. )
  150. )
  151.  
  152. (user @user-level)
  153.  
  154. )
  155.  
  156. (SET n 0) 
  157. (while (= n 0)
  158. (NAME&PASSWORD)
  159. )
  160.  
  161. (debug NODENAME PASSWORD)
  162.  
  163. (PROCEDURE MODEMPORT
  164.  
  165. (user 2)
  166.  
  167. (SET SERIALPORT
  168.     (askchoice
  169.     (Prompt "Is the modem connected to the 9-pin Surf Squirrel serial, the Amiga's 25-pin serial port, or another \"extra\" serial port.\nPlease check now!\nIf your modem is not connected, turn off your Amiga, connect the modem and re-run the installation.")
  170.     (help @askstring-help)
  171.     (Choices "Surf Squirrel serial port" "Amiga serial port" "Other serial port")
  172.     (default 1)
  173.     )
  174. )
  175.  
  176. (IF (= SERIALPORT 0)
  177.     (
  178.     (set BAUD "115200")
  179.     (set SERIALDRIVER "squirrelserial.device")
  180.     )
  181. )
  182.  
  183. (IF (= SERIALPORT 1)
  184.     (
  185.  
  186.     (If (= processor "68000")
  187.     (set BAUD "19200")
  188.     (set BAUD "38400")
  189.     )
  190.     (set SERIALDRIVER "serial.device")
  191.  
  192.     )
  193. )    
  194.  
  195. (IF (= SERIALPORT 2)
  196.     (
  197.  
  198.     (PROCEDURE SRDRIVER
  199.     (SET SERIALDRIVER
  200.     (Askfile
  201.     (Prompt "Select the serial driver from the DEVS: directory to use with your serial port")
  202.     (help "Select the serial driver to use\nThis file must be in DEVS:")
  203.     (default "DEVS:")
  204.     )
  205.     )
  206.     )
  207.  
  208.     (SRDRIVER)
  209.     (while (AND (<> (substr SERIALDRIVER 0 5) "DEVS:") (<> (exists ("DEVS:%s" (substr SERIALDRIVER 5))) 1) 1)
  210.     (SRDRIVER)
  211.     )
  212.     
  213.     (SET SERIALDRIVER (substr SERIALDRIVER 5))
  214.  
  215.     (set BAUD 
  216.     (askchoice 
  217.     (Prompt "Select baud rate to use:")
  218.     (help "Enter the baud rate")
  219.     (choices "2400" "4800" "9600" "19200" "38400" "57600" "115200")
  220.     (default 3)
  221.     )
  222.     )
  223.  
  224.     (SET BAUD (SELECT BAUD "2400" "4800" "9600" "19200" "38400" "57600" "115200")) 
  225.  
  226.     )
  227. )    
  228.  
  229. (debug BAUD SERIALDRIVER)
  230.  
  231. (working "Checking modem and serial driver")
  232.  
  233. (DELETE "ENV:ModemResult")
  234.  
  235. (run ("SYS:Rexxc/rx Net&Web1:TestModem.rx %s ENV:ModemResult" SERIALDRIVER))
  236.  
  237. (user @user-level)
  238.  
  239. )
  240.  
  241. (MODEMPORT)
  242.  
  243. (While (< (getsize "ENV:ModemResult") 1)
  244. (
  245. (user 2)
  246. (Message ("Modem Test Failed using the serial device:\n\n%s\n\nPlease check that the modem is plugged in, turned on, and you are using the correct serial port." SERIALDRIVER))
  247. (MODEMPORT)
  248. (user @user-level)
  249. )
  250. )
  251.  
  252. (PROCEDURE GETNUMBER
  253. (user 2)
  254.  
  255. (run "RAM:delete ENV:po#?")
  256.  
  257.     (SET LOCALNUMBER
  258.         (Askstring
  259.         (Prompt "About to look-up your access numbers, please enter your local dialing code. e.g. If your phone number is 01525 718181 then your local code is 01525.")
  260.         (help "You must enter a code as this is used to find your local access number.")
  261.         (default "01234")
  262.         )
  263.     )
  264.  
  265.     (IF (= PROVIDER 0)
  266.     (run ("SYS:Rexxc/rx Net&Web1:PoPLookUp.rx Net&Web1:Demon-PoPList %s DEMON" LOCALNUMBER))
  267.     )
  268.  
  269.     (IF (= PROVIDER 2)
  270.     (run ("SYS:Rexxc/rx Net&Web1:PoPLookUp.rx Net&Web1:CIX-PoPList %s CIX" LOCALNUMBER))
  271.     )
  272.  
  273.     (if (= (exists "env:popnumber7") 1)
  274.     (
  275.  
  276.     (SET PHONENUMBER7 (getenv "popnumber7"))
  277.     (SET POPLOCATION7 (getenv "pop7"))
  278.     (SET PHONENUMBER6 (getenv "popnumber6"))
  279.     (SET POPLOCATION6 (getenv "pop6"))
  280.     (SET PHONENUMBER5 (getenv "popnumber5"))
  281.     (SET POPLOCATION5 (getenv "pop5"))
  282.     (SET PHONENUMBER4 (getenv "popnumber4"))
  283.     (SET POPLOCATION4 (getenv "pop4"))
  284.     (SET PHONENUMBER3 (getenv "popnumber3"))
  285.     (SET POPLOCATION3 (getenv "pop3"))
  286.     (SET PHONENUMBER2 (getenv "popnumber2"))
  287.     (SET POPLOCATION2 (getenv "pop2"))
  288.     (SET PHONENUMBER1 (getenv "popnumber1"))
  289.     (SET POPLOCATION1 (getenv "pop1"))
  290.  
  291.     (SET POP
  292.     (askchoice 
  293.     (Prompt "Select the PoP you would like to use:")
  294.     (help "Enter the PoP to use")
  295.     (choices ("%s %s" PHONENUMBER1 POPLOCATION1) ("%s %s" PHONENUMBER2 POPLOCATION2) ("%s %s" PHONENUMBER3 POPLOCATION3) ("%s %s" PHONENUMBER4 POPLOCATION4) ("%s %s" PHONENUMBER5 POPLOCATION5) ("%s %s" PHONENUMBER6 POPLOCATION6) ("%s %s" PHONENUMBER7 POPLOCATION7))
  296.     (default 0)
  297.     )
  298.     )
  299.  
  300.     (SET PHONENUMBER (SELECT POP PHONENUMBER1 PHONENUMBER2 PHONENUMBER3 PHONENUMBER4 PHONENUMBER5 PHONENUMBER6 PHONENUMBER7))
  301.  
  302.  
  303.     )
  304.     )
  305.  
  306.     (if (AND (= (exists "env:popnumber6") 1) (<> (exists "env:popnumber7") 1))
  307.     (
  308.  
  309.     (SET PHONENUMBER6 (getenv "popnumber6"))
  310.     (SET POPLOCATION6 (getenv "pop6"))
  311.     (SET PHONENUMBER5 (getenv "popnumber5"))
  312.     (SET POPLOCATION5 (getenv "pop5"))
  313.     (SET PHONENUMBER4 (getenv "popnumber4"))
  314.     (SET POPLOCATION4 (getenv "pop4"))
  315.     (SET PHONENUMBER3 (getenv "popnumber3"))
  316.     (SET POPLOCATION3 (getenv "pop3"))
  317.     (SET PHONENUMBER2 (getenv "popnumber2"))
  318.     (SET POPLOCATION2 (getenv "pop2"))
  319.     (SET PHONENUMBER1 (getenv "popnumber1"))
  320.     (SET POPLOCATION1 (getenv "pop1"))
  321.  
  322.     (SET POP
  323.     (askchoice 
  324.     (Prompt "Select the PoP you would like to use:")
  325.     (help "Enter the PoP to use")
  326.     (choices ("%s %s" PHONENUMBER1 POPLOCATION1) ("%s %s" PHONENUMBER2 POPLOCATION2) ("%s %s" PHONENUMBER3 POPLOCATION3) ("%s %s" PHONENUMBER4 POPLOCATION4) ("%s %s" PHONENUMBER5 POPLOCATION5) ("%s %s" PHONENUMBER6 POPLOCATION6))
  327.     (default 0)
  328.     )
  329.     )
  330.  
  331.     (SET PHONENUMBER (SELECT POP PHONENUMBER1 PHONENUMBER2 PHONENUMBER3 PHONENUMBER4 PHONENUMBER5 PHONENUMBER6))
  332.  
  333.     )
  334.     )
  335.  
  336.     (if (AND (= (exists "env:popnumber5") 1) (<> (exists "env:popnumber6") 1))
  337.     (
  338.  
  339.     (SET PHONENUMBER5 (getenv "popnumber5"))
  340.     (SET POPLOCATION5 (getenv "pop5"))
  341.     (SET PHONENUMBER4 (getenv "popnumber4"))
  342.     (SET POPLOCATION4 (getenv "pop4"))
  343.     (SET PHONENUMBER3 (getenv "popnumber3"))
  344.     (SET POPLOCATION3 (getenv "pop3"))
  345.     (SET PHONENUMBER2 (getenv "popnumber2"))
  346.     (SET POPLOCATION2 (getenv "pop2"))
  347.     (SET PHONENUMBER1 (getenv "popnumber1"))
  348.     (SET POPLOCATION1 (getenv "pop1"))
  349.  
  350.     (SET POP
  351.     (askchoice 
  352.     (Prompt "Select the PoP you would like to use:")
  353.     (help "Enter the PoP to use")
  354.     (choices ("%s %s" PHONENUMBER1 POPLOCATION1) ("%s %s" PHONENUMBER2 POPLOCATION2) ("%s %s" PHONENUMBER3 POPLOCATION3) ("%s %s" PHONENUMBER4 POPLOCATION4) ("%s %s" PHONENUMBER5 POPLOCATION5))
  355.     (default 0)
  356.     )
  357.     )
  358.  
  359.     (SET PHONENUMBER (SELECT POP PHONENUMBER1 PHONENUMBER2 PHONENUMBER3 PHONENUMBER4 PHONENUMBER5))
  360.  
  361.     )
  362.     )
  363.  
  364.     (if (AND (= (exists "env:popnumber4") 1) (<> (exists "env:popnumber5") 1))
  365.     (
  366.  
  367.     (SET PHONENUMBER4 (getenv "popnumber4"))
  368.     (SET POPLOCATION4 (getenv "pop4"))
  369.     (SET PHONENUMBER3 (getenv "popnumber3"))
  370.     (SET POPLOCATION3 (getenv "pop3"))
  371.     (SET PHONENUMBER2 (getenv "popnumber2"))
  372.     (SET POPLOCATION2 (getenv "pop2"))
  373.     (SET PHONENUMBER1 (getenv "popnumber1"))
  374.     (SET POPLOCATION1 (getenv "pop1"))
  375.  
  376.     (SET POP
  377.     (askchoice 
  378.     (Prompt "Select the PoP you would like to use:")
  379.     (help "Enter the PoP to use")
  380.     (choices ("%s %s" PHONENUMBER1 POPLOCATION1) ("%s %s" PHONENUMBER2 POPLOCATION2) ("%s %s" PHONENUMBER3 POPLOCATION3) ("%s %s" PHONENUMBER4 POPLOCATION4))
  381.     (default 0)
  382.     )
  383.     )
  384.  
  385.     (SET PHONENUMBER (SELECT POP PHONENUMBER1 PHONENUMBER2 PHONENUMBER3 PHONENUMBER4))
  386.  
  387.  
  388.     )
  389.     )
  390.  
  391.  
  392.     (if (AND (= (exists "env:popnumber3") 1) (<> (exists "env:popnumber4") 1))
  393.     (
  394.     (SET PHONENUMBER3 (getenv "popnumber3"))
  395.     (SET POPLOCATION3 (getenv "pop3"))
  396.     (SET PHONENUMBER2 (getenv "popnumber2"))
  397.     (SET POPLOCATION2 (getenv "pop2"))
  398.     (SET PHONENUMBER1 (getenv "popnumber1"))
  399.     (SET POPLOCATION1 (getenv "pop1"))
  400.  
  401.     (SET POP
  402.     (askchoice 
  403.     (Prompt "Select the PoP you would like to use:")
  404.     (help "Enter the PoP to use")
  405.     (choices ("%s %s" PHONENUMBER1 POPLOCATION1) ("%s %s" PHONENUMBER2 POPLOCATION2) ("%s %s" PHONENUMBER3 POPLOCATION3))
  406.     (default 0)
  407.     )
  408.     )
  409.  
  410.     (SET PHONENUMBER (SELECT POP PHONENUMBER1 PHONENUMBER2 PHONENUMBER3))
  411.  
  412.  
  413.     )
  414.     )
  415.  
  416.     (if (AND (= (exists "env:popnumber2") 1) (<> (exists "env:popnumber3") 1))
  417.     (
  418.     (SET PHONENUMBER2 (getenv "popnumber2"))
  419.     (SET POPLOCATION2 (getenv "pop2"))
  420.     (SET PHONENUMBER1 (getenv "popnumber1"))
  421.     (SET POPLOCATION1 (getenv "pop1"))
  422.  
  423.     (SET POP
  424.     (askchoice 
  425.     (Prompt "Select the PoP you would like to use:")
  426.     (help "Enter the PoP to use")
  427.     (choices ("%s %s" PHONENUMBER1 POPLOCATION1) ("%s %s" PHONENUMBER2 POPLOCATION2))
  428.     (default 0)
  429.     )
  430.     )
  431.  
  432.     (SET PHONENUMBER (SELECT POP PHONENUMBER1 PHONENUMBER2))
  433.  
  434.     )
  435.     )
  436.  
  437.  
  438.     (if (AND (= (exists "env:popnumber1") 1) (<> (exists "env:popnumber2") 1))
  439.     (
  440.     (SET PHONENUMBER1 (getenv "popnumber1"))
  441.     (SET POPLOCATION1 (getenv "pop1"))
  442.  
  443.     (SET POP
  444.     (askchoice 
  445.     (Prompt "Select the PoP you would like to use:")
  446.     (help "Enter the PoP to use")
  447.     (choices ("%s %s" PHONENUMBER1 POPLOCATION1))
  448.     (default 0)
  449.     )
  450.     )
  451.  
  452.     (SET PHONENUMBER (SELECT POP PHONENUMBER1))
  453.  
  454.     )
  455.     )
  456.  
  457. (user @user-level)
  458. )
  459.  
  460. (PROCEDURE SELECTMODEM
  461.  
  462. (set MODEM
  463.     (Askchoice
  464.     (Help @askchoice-help)
  465.     (Prompt "What sort of modem are you using?")
  466.     (Choices "USR Courier/Sportster" "Enterprise 28.8 Modem" "Other Modem")
  467.     (Default 1))
  468. )
  469.  
  470.  
  471. )
  472.  
  473. (SELECTMODEM)
  474.  
  475. (SET PROTOCOL "7WIRE")
  476.  
  477.  
  478. (IF (or (= MODEM 0) (= MODEM 1))
  479.     (
  480.     (SET INITSTRING "ATL1S0=0&D0S11=125")
  481.     )
  482.  
  483.     (
  484.  
  485.     (SET INITSTRING
  486.     (Askstring
  487.     (Prompt "Enter the initialisation string to be sent to the modem. Note: This string must stop the modem from hanging up when DTR goes away. Most modems use AT&D0, some use AT&D - check your modem manual.")
  488.     (help "Enter the initialisation string to be sent to the modem")
  489.     (default "AT&D0")
  490.     )
  491.     )
  492.  
  493.     )
  494.  
  495. )
  496.  
  497. (SET HOST NODENAME)
  498.  
  499. (user 2)
  500.  
  501. (set PROVIDER
  502.     (Askchoice
  503.     (Help @askchoice-help)
  504.     (Prompt "What service provider are are you using?")
  505.     (Choices "Demon Internet" "Frontier Communications" "CIX Internet" "Applause Data" "MersiNet")
  506.     (Default 0))
  507. )
  508.  
  509. (IF (= PROVIDER 0)
  510.     (
  511.  
  512.     (SET POP "")
  513.  
  514.     (GETNUMBER)
  515.     (WHILE (= POP "")
  516.     (GETNUMBER)
  517.     )
  518.  
  519.     (SET DOMAINNAME "demon.co.uk")
  520.     (SET NEWSSERVER "news.demon.co.uk")
  521.     (SET NAMESERVER "158.152.1.193 192.68.174.95 158.152.1.65")
  522.     (SET MAILSERVER "post.demon.co.uk")
  523.     (SET LOGINWAIT "ogin:")
  524.     (SET PASSWAIT "sword:")
  525.     (SET PROTOCOLWAIT "ocol:")
  526.     (SET REMOTEIP "158.152.1.222")
  527.     (SET SCANSTRINGS "SCAN \"%{IP Address:%} %[slip0IPLocal%]%%(.%)\" GLOBAL/")
  528.     (SET EXTRASTRINGS1 "/")
  529.     (SET EXTRASTRINGS2 "/")
  530.     (SET EXTRASTRINGS3 "/")
  531.     (SET EXTRASTRINGS4 "/")
  532.     (SET POP3 "0")
  533.     (SET DYNAMIC "0")
  534.  
  535.     )
  536.  
  537. )
  538.  
  539. (IF (= PROVIDER 1)
  540.     (
  541.  
  542.     (SET PHONENUMBER "0645666666")
  543.     (SET DOMAINNAME "thenet.co.uk")
  544.     (SET NEWSSERVER "news.thenet.co.uk")
  545.     (SET NAMESERVER "194.130.28.200 194.130.28.100")
  546.     (SET MAILSERVER "mailhost.thenet.co.uk")
  547.     (SET LOGINWAIT "ogin:")
  548.     (SET PASSWAIT "sword:")
  549.     (SET PROTOCOLWAIT "ocol:")
  550.     (SET REMOTEIP "194.130.28.244")
  551.     (SET SCANSTRINGS "SCAN \"%{IP address is%} %[slip0IPLocal%]%%(.%)\" GLOBAL/")
  552.     (SET EXTRASTRINGS1 "/")
  553.     (SET EXTRASTRINGS2 "/")
  554.     (SET EXTRASTRINGS3 "/")
  555.     (SET EXTRASTRINGS4 "/")
  556.     (SET POP3 "1")
  557.     (SET DYNAMIC "1")
  558.  
  559.     )
  560.  
  561. )
  562.  
  563. (IF (= PROVIDER 2)
  564.     (
  565.  
  566.     (SET POP "")
  567.     (GETNUMBER)
  568.     (WHILE (= POP "")
  569.     (GETNUMBER)
  570.     )
  571.  
  572.     (SET DOMAINNAME "compulink.co.uk")
  573.     (SET NEWSSERVER "news.compulink.co.uk")
  574.     (SET NAMESERVER "194.153.0.18 194.153.1.10")
  575.     (SET MAILSERVER "mail.compulink.co.uk")
  576.     (SET LOGINWAIT "name:")
  577.     (SET PASSWAIT "sword:")
  578.     (SET PROTOCOLWAIT "ster>")
  579.     (SET REMOTEIP "194.153.2.1")
  580.     (SET SCANSTRINGS "SCAN \"%{Your IP address is%} %[slip0IPLocal%]%%(.%)\" GLOBAL/")
  581.     (SET EXTRASTRINGS1 "/")
  582.     (SET EXTRASTRINGS2 "/")
  583.     (SET EXTRASTRINGS3 "/")
  584.     (SET EXTRASTRINGS4 "WAIT TIMEOUT=10 \"stname:\"/\nF/\"stname:\"/\nN\nI\n    ON STATUS GOTO LOGINFAIL\n    SEND \"$NODENAME\\r\"\nZ")
  585.     (SET POP3 "0")
  586.     (SET DYNAMIC "0")
  587.  
  588.     )
  589.  
  590. )
  591.  
  592. (IF (= PROVIDER 3)
  593.     (
  594.  
  595.     (SET PHONENUMBER "004761193779")
  596.     (SET DOMAINNAME "norconnect.no")
  597.     (SET NEWSSERVER "applause.no")
  598.     (SET NAMESERVER "194.52.244.3")
  599.     (SET MAILSERVER "applause.no")
  600.     (SET LOGINWAIT "name:")
  601.     (SET PASSWAIT "sword:")
  602.     (SET PROTOCOLWAIT "lause:~$")
  603.     (SET REMOTEIP "194.52.244.1")
  604.     (SET SCANSTRINGS "SCAN \"%{Your address is %} %[slip0IPLocal%]%\" GLOBAL/\nREWIND\nF/GLOBAL/\nN\nI\n    SCAN \"%{SLiRP host: %} %[slip0IPRemote%]%\" GLOBAL\nZ\n")
  605.     (SET EXTRASTRINGS1 "/")
  606.     (SET EXTRASTRINGS2 "/")
  607.     (SET EXTRASTRINGS3 "/")
  608.     (SET EXTRASTRINGS4 "/")
  609.     (SET POP3 "1")
  610.     (SET DYNAMIC "1")
  611.  
  612.     )
  613.  
  614. )
  615.  
  616. (IF (= PROVIDER 4)
  617.     (
  618.  
  619.     (SET PHONENUMBER "01512070035")
  620.     (SET DOMAINNAME "mersinet.co.uk")
  621.     (SET NEWSSERVER "news.mersinet.co.uk")
  622.     (SET NAMESERVER "194.73.216.3 194.73.216.2 194.72.6.51")
  623.     (SET MAILSERVER "mail.mersinet.co.uk")
  624.     (SET LOGINWAIT "name:")
  625.     (SET PASSWAIT "sword:")
  626.     (SET PROTOCOLWAIT "rvice:")
  627.     (SET REMOTEIP "194.73.216.2")
  628.     (SET SCANSTRINGS "SCAN \"%{Your address is %} %[slip0IPLocal%]%\" GLOBAL/\nREWIND\nF/GLOBAL/\nN\nI\n    SCAN \"%{Annex address is %} %[slip0IPRemote%]%\" GLOBAL\nZ\n")
  629.     (SET EXTRASTRINGS1 "/\nREWIND\nF/$PHONENUMBER/\nN\nI\n    DELAY 35\n    SEND \"\\r\"\nZ\n")
  630.     (SET EXTRASTRINGS2 "/")
  631.     (SET EXTRASTRINGS3 "/")
  632.     (SET EXTRASTRINGS4 "/")
  633.     (SET POP3 "1")
  634.     (SET DYNAMIC "1")
  635.  
  636.     )
  637.  
  638. )
  639.  
  640. (IF (<> POP3 1)
  641.  
  642.     (
  643.  
  644.     (SET USERNAME
  645.     (Askstring
  646.     (Prompt ("Enter the username you would like to use? This is the name used for email e.g. if you want to be richard@%s.%s, enter richard" NODENAME DOMAINNAME))
  647.     (help ("Enter the username you would like to use? This is the name used for email e.g. if you want to be richard@%s.%s, enter richard" NODENAME DOMAINNAME))
  648.     (default "yourname")
  649.     )
  650.     )
  651.  
  652.     )
  653.  
  654.     (
  655.     (SET USERNAME NODENAME)
  656.     )
  657.  
  658. )
  659.     
  660. (SET REALNAME
  661. (Askstring
  662. (Prompt "Enter your real name, this will appear in your email messages to other people.")
  663. (help "Enter your real name, this will appear in your email messages to other people.")
  664. (default "Your Real name")
  665. )
  666. )
  667.  
  668. (SET ORGANIZATION NODENAME)
  669.  
  670. (user 2)
  671.  
  672. (SET TONEDIAL
  673.     (Askbool
  674.     (Prompt "Does your phone system support tone dialing (virtually all modern phone systems do)")
  675.     (help @askbool-help)
  676.     (choices "Tone Dial" "Pulse Dial")
  677.     (default 1)
  678.     )
  679. )
  680.  
  681. (If (= TONEDIAL 1)
  682.     (SET TONEDIAL "ATDT")
  683.     (SET TONEDIAL "ATPT")
  684. )
  685.  
  686. (SET PABX
  687.  
  688.     (Askoptions 
  689.     (prompt "Do you need to dial a special number to get an outside line or do you use a phone account that requires an account number (e.g. Mercury or AT&T). If you require neither option, just select proceed.")
  690.     (choices "Special outside line number" "Account number needed")
  691.     (help @askoptions-help)
  692.     (default 0)
  693.     )
  694. )
  695.  
  696. (PROCEDURE GETPABX
  697.  
  698.     (SET PABX
  699.     (Askstring
  700.     (Prompt "Enter the number(s) required to obtain and outside line.")
  701.     (help "If you are required to enter a number to obtain an external line, enter it here.")
  702.     (default "9")
  703.     )
  704.     )
  705.     
  706.     (If (<> PABX "")
  707.         (SET PABX (cat PABX "w"))
  708.     )
  709.  
  710. )
  711.  
  712. (PROCEDURE GETACCOUNT
  713.     (SET ACCOUNT
  714.     (Askstring
  715.     (Prompt "Enter the numbers required to use your phone account.\nNote: Some phone companies require a pause between the access number and the account number. If this is required enter a \",\" where required. e.g. 131,1234567")
  716.     (help "Enter the numbers required to use your phone account.\nNote: Some phone companies require a pause between the access number and the account number. If this is required enter a \",\" where required. e.g. 131,1234567")
  717.     (default "131,123456789")
  718.     )
  719.     )
  720. )
  721.  
  722.  
  723. (IF (= PABX 0)
  724. (
  725. (SET ACCOUNT "")
  726. (SET PABX "")
  727. )
  728. )
  729.  
  730. (IF (= PABX 1)
  731. (
  732. (GETPABX)
  733. (SET ACCOUNT "")
  734. )
  735. )
  736.  
  737. (IF (= PABX 2)
  738. (
  739. (SET PABX "")
  740. (GETACCOUNT)
  741. )
  742. )
  743.  
  744. (IF (= PABX 3)
  745. (
  746. (GETPABX)
  747. (GETACCOUNT)
  748. )
  749. )
  750.  
  751. (SET PHONENUMBER (cat TONEDIAL PABX ACCOUNT PHONENUMBER))
  752.  
  753. (user @user-level)
  754.  
  755. (SET Net&Web_DEST
  756. (askdir
  757. (prompt "Select the location for the Net&Web drawer")
  758. (help @askdir-help)
  759. (default @default-dest))
  760. )
  761.  
  762. (MAKEASSIGN "Net&Web" Net&Web_DEST)
  763.  
  764. (IF (<> (exists "Net&Web:Net&WebTEMP_TEMP") 2)
  765.     (MAKEDIR "Net&Web:Net&WebTEMP_TEMP")
  766. )
  767.  
  768. (IF (= (exists "Net&Web:Net&Web") 2)
  769.     (
  770.  
  771.     (Message "\nA previous installation of Net&Web has been found.\nIt will be renamed Net&Web_Old")
  772.  
  773.     (run "echo \"F/;BEGIN Net&Web/*nD*nDF/;END Net&Web/*nD*nQ*n\" >RAM:PatchUser-Startup")
  774.  
  775.     (run "ram:rename SYS:S/user-startup SYS:S/user-startup.bak") 
  776.  
  777.     (run "ram:Edit from SYS:S/user-startup.bak with RAM:PatchUser-Startup to SYS:S/user-startup")
  778.  
  779.     (if (= (exists "Net&Web:Net&Web_Old") 2)
  780.     (run "delete Net&Web:Net&Web_Old all")
  781.     )
  782.     (run "rename Net&Web:Net&Web Net&Web:Net&Web_Old")
  783.     (run "rename Net&Web:Net&Web.info Net&Web:Net&Web_Old.info")
  784.  
  785.     )
  786.  
  787. )
  788.  
  789. (SET n 1)
  790.  
  791. (while (< n 4)
  792.     (
  793.  
  794.     (SET DISKNAME ("Net&Web%ld" n))
  795.  
  796.     (askdisk
  797.     (Prompt ("\n\nPlease insert Net&Web installation disk %ld in any drive" n))
  798.     (help @askdisk-help)
  799.     (DEST DISKNAME)
  800.     )
  801.  
  802.     (copyfiles
  803.     (source ("%s:" DISKNAME))
  804.     (dest "Net&Web:Net&WebTEMP_TEMP")
  805.     (all)
  806.     )
  807.  
  808.     (SET n (+ n 1))
  809.  
  810.     )
  811. )
  812.  
  813. (COMPLETE 5)
  814.  
  815. (Working "Joining archive chunks...")
  816. (Run "Net&Web:Net&WebTEMP_TEMP/Join Net&Web:Net&WebTEMP_TEMP/ArchiveChunkaa Net&Web:Net&WebTEMP_TEMP/ArchiveChunkab Net&Web:Net&WebTEMP_TEMP/ArchiveChunkac AS Net&Web:Net&WebTEMP_TEMP/Archive.lha")
  817.  
  818. (COMPLETE 10)
  819.  
  820. (run "Net&Web:Net&WebTEMP_TEMP/Delete Net&Web:Net&WebTEMP_TEMP/ArchiveChunk#?")
  821.  
  822. (DELETE "Net&Web:Net&WebTEMP_TEMP/Join")
  823. (DELETE "Net&Web:Net&WebTEMP_TEMP/installer")
  824. (DELETE "Net&Web:Net&WebTEMP_TEMP/Install-Net&Web" (infos))
  825.  
  826. (SET EXTRACTSTRING "Extracting archive file...\n\n.")
  827. (Working EXTRACTSTRING)
  828.  
  829. (SET COMPLETE_VALUE 10)
  830.  
  831. (COMPLETE COMPLETE_VALUE)
  832.  
  833. (Run "run Net&Web:Net&WebTEMP_TEMP/lhex -afFw=Net&Web: x Net&Web:Net&WebTEMP_TEMP/Archive.lha *")
  834.  
  835. (set n 0)
  836. (SET WORKING_STRING ".")
  837.  
  838. (While (SET FILETOTEST (select n "AmiTCP-3.0b2/db/rpc" "AmiTCP-3.0b2/help/ch_nfsutil" "rhslip/COPYRIGHT" ""))
  839.  
  840.     (
  841.     (until (= (exists ("Net&Web:Net&Web/%s" FILETOTEST)) 1)
  842.     (
  843.     (debug FILETOTEST)
  844.     (run "Net&Web:Net&WebTEMP_TEMP/wait 5")
  845.     )
  846.     )
  847.  
  848.     (set n (+ n 1))
  849.     (SET COMPLETE_VALUE (+ COMPLETE_VALUE 29))
  850.     (COMPLETE COMPLETE_VALUE)
  851.     (SET EXTRACTSTRING ("%s.." EXTRACTSTRING))
  852.     (Working EXTRACTSTRING)
  853.     )
  854.  
  855. )
  856.  
  857. (run "ram:rename Net&Web:Net&Web/AmiTCP-3.0b2 Net&Web:Net&Web/AmiTCP")
  858. (run "ram:rename Net&Web:Net&Web/AmiTCP-3.0b2.info Net&Web:Net&Web/AmiTCP.info")
  859.  
  860. (set n 0)
  861. (while (set FILETOCOPY (select n "Lhex" "ReadMe" ""))
  862.     (
  863.     (set n (+ n 1))
  864.     (copyfiles
  865.     (source "Net&Web:Net&WebTEMP_TEMP/")
  866.     (dest "Net&Web:Net&Web/")
  867.     (pattern FILETOCOPY)
  868.     (infos)
  869.     )
  870.     )
  871. )
  872.  
  873. (set n 0)
  874. (while (set FILETOCOPY (select n "CheckWorkbench" "FilenVer3.0" "FilenVer3.1" ""))
  875.     (
  876.     (set n (+ n 1))
  877.     (copyfiles
  878.     (source "Net&Web:Net&WebTEMP_TEMP/")
  879.     (dest "Net&Web:Net&Web/Scripts/")
  880.     (pattern FILETOCOPY)
  881.     (optional "force" "nofail")
  882.     )
  883.     )
  884. )
  885.  
  886. ;delete used archives
  887.  
  888. (run "ram:delete Net&Web:Net&WebTEMP_TEMP/#?.lha")
  889.  
  890. ;create the patchfile
  891. (textfile
  892. (DEST "RAM:PATCHFILE")
  893. (Append ("GE/**ERRORVALUE**/%s/\n"ERRORVALUE))
  894. (Append "REWIND\n")
  895. (Append ("GE/**POP3**/%s/\n"POP3))
  896. (Append "REWIND\n")
  897. (Append ("GE/**DYNAMIC**/%s/\n"DYNAMIC))
  898. (Append "REWIND\n")
  899. (Append ("GE/**REALNAME**/%s/\n"REALNAME))
  900. (Append "REWIND\n")
  901. (Append ("GE/**MAILSERVER**/%s/\n"MAILSERVER))
  902. (Append "REWIND\n")
  903. (Append ("GE/**USERNAME**/%s/\n"USERNAME))
  904. (Append "REWIND\n")
  905. (Append ("GE/**ORGANIZATION**/%s/\n"ORGANIZATION))
  906. (Append "REWIND\n")
  907. (Append ("GE/**REMOTEIP**/%s/\n"REMOTEIP))
  908. (Append "REWIND\n")
  909. (Append ("GE/**LOGINWAIT**/%s/\n"LOGINWAIT))
  910. (Append "REWIND\n")
  911. (Append ("GE/**PASSWAIT**/%s/\n"PASSWAIT))
  912. (Append "REWIND\n")
  913. (Append ("GE/**PROTOCOLWAIT**/%s/\n"PROTOCOLWAIT))
  914. (Append "REWIND\n")
  915. (Append ("GE/**PASSWORD**/%s/\n"PASSWORD))
  916. (Append "REWIND\n")
  917. (Append ("GE/**BAUD**/%s/\n"BAUD))
  918. (Append "REWIND\n")
  919. (Append ("GE/**SERIALDRIVER**/%s/\n"SERIALDRIVER))
  920. (Append "REWIND\n")
  921. (Append ("GE/**INITSTRING**/%s/\n"INITSTRING))
  922. (Append "REWIND\n")
  923. (Append ("GE/**PROTOCOL**/%s/\n"PROTOCOL))
  924. (Append "REWIND\n")
  925. (Append ("GE/**PHONENUMBER**/%s/\n"PHONENUMBER))
  926. (Append "REWIND\n")
  927. (Append ("GE/**NODENAME**/%s/\n"NODENAME))
  928. (Append "REWIND\n")
  929. (Append ("GE/**DOMAINNAME**/%s/\n"DOMAINNAME))
  930. (Append "REWIND\n")
  931. (Append ("GE/**NEWSSERVER**/%s/\n"NEWSSERVER))
  932. (Append "REWIND\n")
  933. (Append ("GE/**NAMESERVER**/%s/\n"NAMESERVER))
  934. (Append "W\n")
  935. )
  936.  
  937. (textfile
  938. (DEST "RAM:LoginPATCHFILE")
  939. (Append ("GE/**EXTRASTRINGS1**/%s\n"EXTRASTRINGS1))
  940. (Append "REWIND\n")
  941. (Append ("GE/**EXTRASTRINGS2**/%s\n"EXTRASTRINGS2))
  942. (Append "REWIND\n")
  943. (Append ("GE/**EXTRASTRINGS3**/%s\n"EXTRASTRINGS3))
  944. (Append "REWIND\n")
  945. (Append ("GE/**EXTRASTRINGS4**/%s\n"EXTRASTRINGS4))
  946. (Append "REWIND\n")
  947. (Append ("GE/**SCANSTRINGS**/%s\n"SCANSTRINGS))
  948. (Append "W\n")
  949. )
  950.  
  951. (copyfiles
  952. (source "RAM:LoginPATCHFILE")
  953. (dest "Net&Web:Net&Web/Scripts")
  954. (pattern "#?")
  955. )
  956. (copyfiles
  957. (source "RAM:PATCHFILE")
  958. (dest "Net&Web:Net&Web/Scripts")
  959. (pattern "#?")
  960. )
  961.  
  962. (Protect "Net&Web:Net&Web/NetScript" 64)
  963.  
  964. (copylib
  965. (source "Net&Web:Net&Web/HiSoft/socketlib/socket.library")
  966. (dest "Net&Web:Net&Web/AmiTCP/Libs")
  967. )
  968.  
  969.  
  970. (set n 0)
  971. (while (set DIRTOMAKE (select n "usr" "usr/mail" "usr/lib" "usr/spool" "usr/news" ""))
  972.     (
  973.     (set n (+ n 1))
  974.  
  975.     (IF (<> (exists ("Net&Web:Net&Web/AmiTCP/%s" DIRTOMAKE)) 2)
  976.         (MAKEDIR ("Net&Web:Net&Web/AmiTCP/%s" DIRTOMAKE))
  977.     )
  978.  
  979.     )
  980. )
  981.  
  982. ;copy new db files
  983.  
  984. (copyfiles
  985. (source "Net&Web:Net&Web/HiSoft/db/")
  986. (dest "Net&Web:Net&Web/AmiTCP/db/")
  987. (pattern "#?")
  988. )
  989.  
  990. (IF (<> (exists "DEVS:Networks") 2)
  991.     (MAKEDIR "DEVS:Networks" (infos))
  992. )
  993.  
  994. (IF (<> (exists "ENVARC:SANA2") 2)
  995.     (MAKEDIR "ENVARC:SANA2")
  996. )
  997.  
  998. (IF (<> (exists "ENV:SANA2") 2)
  999.     (MAKEDIR "ENV:SANA2")
  1000. )
  1001.  
  1002. (copyfiles
  1003. (source "Net&Web:Net&Web/rhslip/devs/Networks/rhcslip.device")
  1004. (dest "DEVS:Networks/")
  1005. )
  1006.  
  1007. (copyfiles
  1008. (source "Net&Web:Net&Web/rhslip/devs/Networks/rhslip.device")
  1009. (dest "DEVS:Networks/")
  1010. )
  1011.  
  1012. (run "ram:delete Net&Web:Net&WebTEMP_TEMP all")
  1013.  
  1014. (IF (OR (= (substr Net&Web_DEST (- (strlen Net&Web_DEST) 1) ) ":")
  1015.       (= (substr Net&Web_DEST (- (strlen Net&Web_DEST) 1) ) "/"))
  1016.     (set Net&Web_DEST ("%sNet&Web" Net&Web_DEST))
  1017.     (set Net&Web_DEST ("%s/Net&Web" Net&Web_DEST))
  1018. )
  1019.  
  1020. (MAKEASSIGN "Net&Web" Net&Web_DEST)
  1021. (MAKEASSIGN "AmiTCP" ("%s/AmiTCP"Net&Web_DEST))
  1022. (MAKEASSIGN "IBrowse" ("%s/Ibrowse"Net&Web_DEST))
  1023.  
  1024. ;(DELETE "Net&Web:AmiTCP/AmiTCP-bin-30b2.readme")
  1025. ;(DELETE "Net&Web:AmiTCP/COPYING")
  1026. ;(DELETE "Net&Web:AmiTCP/COPYING.info")
  1027. ;(DELETE "Net&Web:AmiTCP/COPYRIGHTS")
  1028. ;(DELETE "Net&Web:AmiTCP/COPYRIGHTS.info")
  1029. ;(DELETE "Net&Web:AmiTCP/ChangeLog")
  1030. ;(DELETE "Net&Web:AmiTCP/ChangeLog.info")
  1031. ;(DELETE "Net&Web:AmiTCP/HowToInstall")
  1032. ;(DELETE "Net&Web:AmiTCP/HowToInstall.info")
  1033. (DELETE "Net&Web:AmiTCP/Install_AmiTCP")
  1034. (DELETE "Net&Web:AmiTCP/Install_AmiTCP.info")
  1035. ;(DELETE "Net&Web:AmiTCP/NOTE_TO_BETA_TESTERS")
  1036. ;(DELETE "Net&Web:AmiTCP/NOTE_TO_BETA_TESTERS.info")
  1037. ;(DELETE "Net&Web:AmiTCP/README.FIRST")
  1038. ;(DELETE "Net&Web:AmiTCP/README.FIRST.info")
  1039.  
  1040. (user 0)
  1041.  
  1042. (startup "Net&Web"
  1043. (Prompt "Place Net&Web assigns in the user-startup?")
  1044. (help @startup-help)
  1045. (Command
  1046. ("IF Exists \"%s\"\n" Net&Web_DEST)
  1047. ("Assign Net&Web: \"%s\"\n" Net&Web_DEST)
  1048. "Assign AmiTCP: Net&Web:AmiTCP\n"
  1049. "Assign IBrowse: Net&Web:IBrowse\n"
  1050. "Path AmiTCP:bin add\n"
  1051. "Path Net&Web: add\n"
  1052. "RexxMast >NIL: <NIL:\n"
  1053. "EndIf\n"
  1054. )
  1055. )
  1056.  
  1057. ;remove hisoft dir
  1058.  
  1059. (run "ram:delete Net&Web:HiSoft all")
  1060.  
  1061. (DELETE "RAM:delete")
  1062. (DELETE "RAM:edit")
  1063. (DELETE "RAM:rename")
  1064.  
  1065. (COMPLETE 100)
  1066.  
  1067. (exit)
  1068.  
  1069.