home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Netzwerk / HF-PCN1.DMS / in.adf / NetworkPC / Install < prev    next >
Encoding:
Text File  |  1996-06-13  |  4.4 KB  |  146 lines

  1. ; Installer script for the NetPC program
  2.  
  3. (welcome)
  4.  
  5. (if (= @user-level 0) 
  6.   (abort "This script cannot be run in the Novice mode.")
  7. )
  8.  
  9. (makedir "SYS:Storage"
  10.    (infos)
  11. )
  12.  
  13. (makedir "SYS:Storage/DosDrivers"
  14.    (infos)
  15. )
  16.  
  17. (makedir "SYS:NetworkPC"                     ;Begin Makedir
  18.    (prompt "\n\n\n\nHit PROCEED to create SYS:NetworkPC\n\n(For Addtional Information on this step hit HELP.)")         ;
  19.    (help "\n  Network PC relies on there being a Drawer called SYS:NetworkPC in order for it to install properly. This drawer must exist in order for the remainder of this script to function.")
  20.    (infos)                       ;
  21.    (confirm)                     ;
  22. )                          ;End Makedir
  23.  
  24. (copyfiles                    
  25.    (Prompt "For Additional Information on these files hit HELP.")              
  26.    (source "NetworkPC:NetworkPC/")          
  27.    (dest "SYS:NetworkPC/")             
  28.    (files)                    
  29.    (infos)                    
  30.    (all)
  31. )                          
  32.  
  33. (copyfiles
  34.   (prompt "Copying Default Icon")
  35.   (source "NetworkPC:Prefs/Env-Archive/Sys/def_pc.info")
  36.   (dest "SYS:Prefs/Env-Archive/Sys/")
  37.   (help "This is a default icon that is used by NetworkPC.")
  38. )
  39.  
  40. (copyfiles
  41.   (source "NetworkPC:Prefs/Env-Archive/Sys/def_pc.info")
  42.   (dest "ENV:Sys/")
  43. )
  44.  
  45. (copyfiles
  46.   (source "NetworkPC:c/XIcon")
  47.   (dest "c:")
  48. )
  49.  
  50. (if (> (getversion (resident)) (* 39 65536))
  51.   (
  52.     (copyfiles
  53.       (prompt "Copying mount receipt")
  54.       (source "Storage/DOSDrivers")
  55.       (all)
  56.       (dest "Sys:Storage/DOSDrivers")
  57.       (confirm)
  58.       (help 
  59.         "This will copy the device definition also containing configuration to a directory. "
  60.         "If you copy it to the SYS:Storage/DOSDrivers directory, it will not be mounted automatically "
  61.         "and you will have to use the \"mount PC\" command to run it.\nPlacing in the DEVS:DOSDrivers "
  62.         "dir will mount it automatically after every startup. However, it is a good idea to not allow "
  63.         "automatic loading of handler (by adding the \"ACTIVATE = 0\" toooltype) and setting the "
  64.         "\"Activate\" entry in the file to 0. It can be also done by configuration program."
  65.       )
  66.     )
  67.   )
  68.   (
  69.     (textfile
  70.       (prompt "Program is to insert some lines at the beginning of your DEVS:Mountlist. If you have already installed PC2Am, remove the old specification after installing.")
  71.       (dest "Devs:Mountlist")
  72.       (include "Devs/PCEntry")
  73.       (include "Devs:Mountlist")
  74.       (confirm)
  75.       (help "You have system V 2.0, that does not allow use of separate device definitions, so it is necessary to modify the DEVS:Mountlist file.")
  76.     )
  77.   )
  78. )
  79.  
  80. (copylib
  81.   (prompt "Copying igs.library")
  82.   (source "NetworkPC:libs/igs.library")
  83.   (dest "libs:")
  84.   (help "\"igs.library\" is my own GUI support library, that is used by NetworkPC commodity. It must be installed.")
  85. )
  86.  
  87.  
  88. (copylib
  89.   (prompt "Copying NetPcParallel.device")
  90.   (source "NetworkPC:Devs/NetPcParallel.device")
  91.   (dest "devs:")
  92.   (help "\"NetPcParallel.device\" is used for parallel transfer with NetworkPC. You don't need it when you will use just transfer via serial port.")
  93. )
  94.  
  95. (copyfiles
  96.   (prompt "Copying Installer")
  97.   (source "NetworkPC:c/Installer")
  98.   (dest "c:")
  99.   (help "\"Installer\" is required for the Configuration program.")
  100.   (confirm)
  101. )
  102.  
  103. (copyfiles 
  104.   (prompt "Copying the handler.")
  105.   (source "NetworkPC:L/netpc-handler")
  106.   (dest "l:")
  107.   (help "The filesystem. Must be installed.")
  108.   (confirm)
  109. )
  110.  
  111. (copyfiles 
  112.   (prompt "Copying configuration script.")
  113.   (source "ConfigNetworkPC")
  114.   (dest "C:")
  115.   (help "This is an Installer script for configuring Amiga side of NetworkPC.")
  116.   (confirm)
  117. )
  118.  
  119. (copyfiles 
  120.   (prompt "Copying utility commands.")
  121.   (source "C/")
  122.   (all)
  123.   (dest "C:")
  124.   (help 
  125.      "GetPCSpecs and SetPCSpecs are required by configuration program. You should"
  126.      "copy them to 'C:'\n\n"
  127.      "NetPCSpeed is an utility to approximately test speed of your connection. "
  128.      "It will run test and tell you read and write speed. If you don't want to "
  129.      "know the speed, you don't need this one."
  130.   )
  131.   (confirm)
  132. )
  133.  
  134. (run ":c/Installer ConfigNetworkPC"
  135.   (prompt "Do you want to run configuration script ?\n(Installer must be in the path)")
  136.   (confirm)
  137.   (help
  138.     "If you confirm this requester, the configuration script will be run and "
  139.     "you will be able to setup NetworkPC by an easy way."
  140.   )
  141. )
  142.  
  143. (exit
  144.   "Installation of Amiga part done. Now ensure that you have installed the PC part.  This is described in the PC Installation part of NetPC.guide."
  145. )
  146.