home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / cdrom / atapi_pnp300 / install.english < prev    next >
Text File  |  1977-12-31  |  18KB  |  676 lines

  1. ; ************************************************
  2. ; *
  3. ; * $VER: Install-ATAPI PnP v1.01 (21.06.96)
  4. ; *
  5. ; * Installation for Atapi Package v 1.01
  6. ; *
  7. ; * Copyright © 1995 by Georg Campana
  8. ; *
  9. ; *    -------   E N G L I S H  SCRIPT    --------
  10. ; *
  11. ; ************************************************
  12.  
  13. ;/// Variabili
  14. ; ****************************
  15. ;       Variabili
  16. ; ****************************
  17. ;
  18. (set DemoVersion        1) ; Demo Version
  19. (set ProductName        "ATAPI PnP"  )  ; product name
  20. (set ProductBaseName    "Atapi PnP")                    ; product base name
  21. (set VersionNum         "3.00")                     ; product version number
  22.  
  23. (set OSVersion          (/ (getversion) 65536))
  24. (set PctDone            0)
  25.  
  26. (set CPUOpts            0)    ; 0=68000,68010; 1=68020,68030,68040
  27.  
  28. (makeassign "CDPLUSPLUS" "" (safe))
  29.  
  30. (set Disk1Name                  "CDPLUSPLUS:")
  31.  
  32. (set MemSpace 1024)   ; 1K minimo di spazio necessario su disco
  33.  
  34. ;///
  35.  
  36. ;/// Proc setPkgOPts
  37. (procedure setPkgOpts
  38. ;
  39. ; ****************************
  40. ; * Wich Parts
  41. ; ****************************
  42. ;
  43.   (
  44.         (set PkgOpts
  45.                 (askoptions
  46.                         (prompt
  47.                            "Choose the tools you want to install from"
  48.                            (" %s package" ProductName)
  49.                         )
  50.                         (help
  51.                                 "Here you choose the parts (Modules) wich you"
  52.                                 (" want to install from the %s package.\n" ProductName)
  53.                                 "\n"
  54.                                 "*** Atapi Device Driver\n"
  55.                                 "This to copy the important Device-driver"
  56.                                 " (cd.device ) in the directoy Devs: (Fundamental)\n"
  57.                                 "\n"
  58.                                 "*** CDplusplusFS\n"
  59.                                 "With this option the special Filesystem will be"
  60.                                 "copied in the L: directory .\n"
  61.                                 "\n"
  62.                                 "*** MAP-Mini Atapi Player\n"
  63.                                 "If you select this , the Mini Atapi Player (for"
  64.                                 "Audio Cs) will be copied in the directory Utilities.\n"
  65.                                 "\n"
  66.                                 "*** TRKDownLoad Track-Downloader\n"
  67.                                 "With this option the program TRKDownload (for "
  68.                                 "Grabbing of CD Tracks) will be copied in Utilities.\n"
  69.                                 "\n"
  70.                                 "*** PlayCDXL\n"
  71.                                 "Select this if you want to install PlayCDXL ( wich"
  72.                                 " play CDXL Files ) in Utilities .\n"
  73.                                 "\n"
  74.                                 "*** CD_IDE\n"
  75.                                 "This is the preference program wich will be copied "
  76.                                 "in prefs. It allows you to set change some functions.\n"
  77.                                 "\n"
  78.                                 @askoptions-help
  79.                         )
  80.                         (choices
  81.                                 ; bit position 0 -- todo & 1
  82.                                 ;
  83.                                 "Atapi Device Driver          (21 Kbytes)"
  84.  
  85.                                 ; bit position 1 -- todo & 2
  86.                                 ;
  87.                                 "CDplusplusFS - CD Filesystem (23 Kbytes)"
  88.  
  89.                                 ; bit position 2 -- todo & 4
  90.                                 ;
  91.                                 "MAP- Mini Atapi Player       (10 Kbytes)"
  92.  
  93.                                 ; bit position 3 -- todo & 8
  94.                                 ;
  95.                                 "TRKDownLoad- Track DownLoader(28 Kbytes)"
  96.  
  97.                                 ; bit position 4 -- todo & 16
  98.                                 ;
  99.                                 "PlayCDXL - Player Film CDXL  (23 Kbytes)"
  100.  
  101.                                 ; bit position 5 -- todo & 32
  102.                                 ;
  103.                                 "CD_IDE - Preference Program  (8 Kbytes)"
  104.  
  105.                         )
  106.                 )
  107.         )
  108.   )
  109. )
  110. ;///
  111.  
  112. ;/// Proc setDirPath
  113.  
  114. (procedure setDirPath
  115. ;
  116. ; ****************************
  117. ; * Ask the user for a directory name.
  118. ; ****************************
  119. ;
  120. ; these variables must be defined before calling this procedure:
  121. ;    DirPath
  122. ;
  123. ; this procedure returns the selected directory in DirPath
  124. ;
  125.    (
  126.  
  127.        (set DirPath
  128.                (askdir
  129.                        (prompt ("Where you want to install the package\n  (THE BOOT-Disk.  Usually SYS: ) " )
  130.  
  131.                        )
  132.                        (help   "Atapi Plug'n Play will be installed in the choosed directory"
  133.                                ".\n"
  134.                                "If you want to install it on a floppy"
  135.                                "then insert the floppy and choose it from the list"
  136.                                ".\n"
  137.                                "\n"
  138.                                @askdir-help
  139.                        )
  140.                        (disk)
  141.                        (default "SYS:")
  142.                )
  143.        )
  144.  
  145.  
  146.  
  147.    )
  148. )
  149. ;///
  150.  
  151. ;/// Proc AskFsIcon
  152. ;
  153. ;
  154. (procedure AskFsIcon
  155. ;
  156. ; This procedure ask of wich cd Icon you want to install with wich Name
  157. ; It requires initialization of variables:
  158. ;
  159. ; In "DefaultIcon" ci deve essere quella accesa di default
  160. ; Ridà in "IconChoose" qual icona
  161. ; 0 nessuna - 1 AmiCDFilesystem
  162. ; 2 AmiCDFS - 3 CDfilesystem - 4 - AsimCDFS - 5 CDplusplusFS
  163. ;
  164.   (
  165.     (set IconChoose
  166.      
  167.            (askchoice
  168.                 (prompt "Choose the CD-Filesystem you want to use,an Icon will be created")
  169.                 (help
  170.                         "You can choose here your prefered CD-Filesystem"
  171.                         " wich will be used with Atapi Plug'n Play.\n"
  172.                         "If your prefered Filesystem is not present in the list"
  173.                         " so choose -No kind- aus , and"
  174.                         " change later the Tooltypes in"
  175.                         " the Icon: (your CD0: icon)\n\n"
  176.                         "Device:\n\nDevice=cd.device\n\n"
  177.                         "and Unit:\n\nUnit=0\n\n"
  178.                         @askchoice-help
  179.                 )
  180.                 (choices
  181.                         "-No kind"
  182.                         "-AmiCDFileSystem - by Nicola Salmoria"
  183.                         "-cdrom-handler   - by Frank Munkert"
  184.                         "-CDFileSystem    - by CBM Commodore"
  185.                         "-AsimCDFS        - by AsimWare"
  186.                         "-QDriveFileSystem- by Amiga Tech."
  187.                         "-CDplusplusFS    - by CD++"
  188.                 )
  189.                 (default DefaultIcon)
  190.            )
  191.     )
  192.   )
  193. )
  194. ;///
  195.  
  196. ;/// Proc GetDevName
  197. ;
  198. ;  in DevName si ritrova il nome da usare per l'icona
  199. ;
  200.  
  201.  
  202. (procedure GetDevName
  203.    
  204.    (
  205.      (set DevName
  206.            (askstring
  207.                      (prompt "Write here the Name for the mounted CD-ROM drive without the semi-colon\nf.e. CD0")
  208.                      (help
  209.                              "The choosed name will be the"
  210.                              "  name of the Device\n"
  211.                              "It's a good idea to choose a short name"
  212.                              "\n"
  213.                              "\nThe best is CD0 or CD1 etc."
  214.                              " because many programs will search the"
  215.                              " name\n"
  216.                      )
  217.                      (default "CD0")
  218.            )
  219.      )
  220.    )
  221. )
  222. ;///
  223.  
  224. ;/// Proc AskAutoMount
  225. ;
  226. ;
  227. (procedure AskAutoMount
  228. ;
  229. ; Chiede se l'icona deve essere inserita nel devs Dosdrivers o nel
  230. ; storage dosdrivers
  231. ;
  232.   (
  233.     (set AutoMount
  234.      
  235.            (askbool
  236.                 (prompt "Do you want that that the drive will be started"
  237.                         " automaticaly at each boot (Mount) ,"
  238.                         " or manualy with a Mouseclick ?"
  239.                 )
  240.                 (help
  241.                         "If your answer is positiv  then the icon"
  242.                         " of the device will be coopied into:\n"
  243.                         "Devs:Dosdrivers kopiert\n"
  244.                         "On each computer start the Drive will start automaticaly\n\n"
  245.  
  246.                         "Otherwise it will be copied in: Storage:DosDrivers\n"
  247.                         " and you have to click on the icon"
  248.                         " to start the CD-Drive (Mount)"
  249.                 )
  250.                 (choices
  251.                         "Automount on boot"
  252.                         "No , manualy"
  253.                 )
  254.                 (default 1)
  255.            )
  256.     )
  257.   )
  258. )
  259. ;///
  260.  
  261.  
  262. ; *************************************************************************
  263. ; *                         ACTUAL START OF SCRIPT
  264. ; *
  265. ; * Ask all questions for the user now, do all of the work later.
  266. ; *************************************************************************
  267. ;
  268. ;/// MAIN SCRIPT
  269. (onerror
  270.  
  271. )
  272. ; ****************************
  273. ;  Check for OS Version
  274. ; ****************************
  275.  
  276. (if (= DemoVersion 1)
  277.     (message "\n" "\n"
  278.              "WARNING: This is a Demo Version\n"
  279.              "of the Atapi PnP package!\n"
  280.              "YOU CAN DISTRIBUTE IT EVERYWHERE \n"
  281.              "(only complete) with exeption to the crakkers ;)" "\n"
  282.              "\n"
  283.              "Atapi Plug'n Play is Copyright by \n"
  284.              "Georg Campana & Marco Campinoti ©1994\n\n"
  285.              "E-Mail: georg@etruscan.li.it\n"
  286.  
  287.              (help "If you want to register yourself then read the Manual or call 0039/565/850621 an")
  288.     )
  289.     (message "\n" "\n"
  290.              "WARNING: This is a registered Version\n"
  291.              "of the Atapi PnP Package!\n"
  292.              "IT IS FORBIDDEN TO DISTRIBUTE OR COPY\n"
  293.              "ONE OR MORE FILES INCLUDED IN THIS FLOPPY" "\n"
  294.              "( Note The Files are signed !! )\n"
  295.              "Atapi Plug'n Play is Copyright by \n"
  296.              "Georg Campana & Marco Campinoti ©1994\n\n"
  297.              "E-Mail: georg@etruscan.li.it\n"
  298.              (help "If you want to register your friend call : ++39/565/850621" )
  299.     )
  300.  
  301. )
  302.  
  303.  
  304. ; ****************************
  305. ; ****************************
  306. ;
  307.  
  308. (set DirPath "SYS:")
  309.  
  310. (setDirPath)
  311.  
  312. (set @default-dest DirPath)
  313.  
  314. (set devdest  (tackon @default-dest "Devs"))
  315. (set fsdest   (tackon @default-dest "L"))
  316. (set utildest (tackon @default-dest "Utilities"))
  317. (set prefdest (tackon @default-dest "Prefs"))
  318.  
  319.  
  320. (setPkgOpts)
  321.  
  322. (set DefaultIcon 0)
  323.  
  324. (if (= (exists (tackon fsdest "AmiCDFileSystem")) 1)
  325.     (set DefaultIcon 1)
  326. )
  327.  
  328. (if (= (exists (tackon fsdest "cdrom-handler")) 1)
  329.     (set DefaultIcon 2)
  330. )
  331.  
  332. (if (= (exists (tackon fsdest "CDFileSystem")) 1)
  333.     (set DefaultIcon 3)
  334. )
  335.  
  336. (if (= (exists (tackon fsdest "AsimCDFS")) 1)
  337.     (set DefaultIcon 4)
  338. )
  339.  
  340. (if (= (exists (tackon fsdest "QDriveFileSystem")) 1)
  341.     (set DefaultIcon 5)
  342. )
  343.  
  344. (if (= (exists (tackon fsdest "CDplusplusFS")) 1)
  345.     (set DefaultIcon 6)
  346. )
  347.  
  348.  
  349. (if (IN PkgOpts 1)
  350.     (set DefaultIcon 6)
  351. )
  352.  
  353. (AskFsIcon)
  354.  
  355. (select IconChoose
  356.    (set FsName 0)
  357.    (set FsName "AmiCDFS")
  358.    (set FsName "AmiCDHandler")
  359.    (set FsName "CbmCDFS")
  360.    (set FsName "AsimCDFS")
  361.    (set FsName "QDriveFilesystem")
  362.    (set FsName "CDplusplusFS")
  363. )
  364.  
  365.  
  366. (set AutoMount 1)
  367. (set DevName "CD0")
  368.  
  369. (if (> @user-level 1)
  370.  
  371.     (if (<> IconChoose 0)
  372.         (
  373.          (GetDevName)
  374.          (AskAutoMount)
  375.         )
  376.     )
  377. )
  378.  
  379. (if (= AutoMount 1)
  380.     (set Icondest  (tackon @default-dest "Devs"))
  381.     (set Icondest  (tackon @default-dest "Storage"))
  382. )
  383.  
  384.  
  385.  
  386.  
  387.  
  388. (if (IN PkgOpts 0)
  389.     (set MemSpace (+ MemSpace 21000))
  390. )
  391. (if (IN PkgOpts 1)
  392.     (set MemSpace (+ MemSpace 23000))
  393. )
  394. (if (IN PkgOpts 2)
  395.     (set MemSpace (+ MemSpace 10000))
  396. )
  397. (if (IN PkgOpts 3)
  398.     (set MemSpace (+ MemSpace 28000))
  399. )
  400. (if (IN PkgOpts 4)
  401.     (set MemSpace (+ MemSpace 23000))
  402. )
  403. (if (IN PkgOpts 5)
  404.     (set MemSpace (+ MemSpace  8000))
  405. )
  406. (if (<> IconChoose )
  407.     (set MemSpace (+ MemSpace 1000))
  408. )
  409.  
  410. (if (< (getdiskspace DirPath) MemSpace)
  411.     (if(> (getdiskspace DirPath) 0)
  412.        (
  413.           (abort "WARNING: The free memory on\n"
  414.                  ("the volume %s\n" DirPath)
  415.                  ("is only %ld bytes\n" (getdiskspace DirPath) )
  416.                  ("but you need at least %ld bytes\n" MemSpace)
  417.                  "\n"
  418.                  "Try to restart the install-icon\n"
  419.                  "and choose less Utilities  , or\n"
  420.                  "delete some  Files from your\n"
  421.                  ("%s destination disk\n" DirPath)
  422.           )
  423.        )
  424.     )
  425. )
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440. ; if bit position 0 is on  Installa device
  441. (if (IN PkgOpts 0)
  442.  
  443.      (
  444.  
  445.        (if (< (exists devdest (noreq)) 2)
  446.  
  447.            (makedir devdest
  448.               (prompt "New Directory -Devs-")
  449.               (infos)
  450.            )
  451.  
  452.            (if (= DemoVersion 0)
  453.               (
  454.  
  455.                (set newver (getversion (tackon Disk1Name "devs/cd.device")))
  456.                (set oldver (getversion (tackon devdest   "cd.device")))
  457.  
  458.                (if (= newver oldver)
  459.                    (delete (tackon devdest   "cd.device"))
  460.                )
  461.               )
  462.            )
  463.  
  464.        )
  465.  
  466.        (if (< OSVersion 39)
  467.          (
  468.            (copylib
  469.                (prompt "Installing Device Driver")
  470.                (source (tackon Disk1Name "devs/cd_a600.device"))
  471.                (newname "cd.device")
  472.                (dest  devdest)
  473.                (optional force)
  474.            )
  475.          )
  476.  
  477.          (
  478.            (copylib
  479.                (prompt "Installing Device Driver")
  480.                (source (tackon Disk1Name "devs/cd.device"))
  481.                (dest devdest)
  482.                (optional force)
  483.            )
  484.          )
  485.        )
  486.      )
  487. )
  488.  
  489.  
  490. ; if bit position 1 is on Installa FileSystem
  491. (if (IN PkgOpts 1)
  492.      (
  493.  
  494.         
  495.         (if (< (exists fsdest (noreq)) 2)
  496.  
  497.             (makedir fsdest
  498.                (prompt "New Directory Verzeichnis -L-")
  499.             )
  500.         )
  501.  
  502.  
  503.         (copylib
  504.             (prompt "Installing the CD++ FileSystem")
  505.             (source (tackon Disk1Name "l/CDplusplusFS"))
  506.             (dest fsdest)
  507.             (optional force)
  508.         )
  509.         
  510.  
  511.      )
  512. )
  513.  
  514. ; if bit position 2 is on Installa MAP
  515. (if (IN PkgOpts 2)
  516.      (
  517.  
  518.         
  519.         (if (< (exists utildest (noreq)) 2)
  520.  
  521.             (makedir utildest
  522.                (prompt "New Directory -Utilities-")
  523.                (infos)
  524.             )
  525.         )
  526.  
  527.  
  528.         (copyfiles
  529.             (prompt "Installing Mini Atapi Player")
  530.             (source (tackon Disk1Name "utilities/MAP"))
  531.             (dest utildest)
  532.             (infos)
  533.             (optional force)
  534.         )
  535.         
  536.  
  537.      )
  538. )
  539.  
  540. ; if bit position 3 is on Installa TRKDownLoad
  541. (if (IN PkgOpts 3)
  542.      (
  543.  
  544.         
  545.         (if (< (exists utildest (noreq)) 2)
  546.  
  547.             (makedir utildest
  548.                (prompt "New Directory -Utilities-")
  549.                (infos)
  550.             )
  551.         )
  552.  
  553.  
  554.         (copyfiles
  555.             (prompt "Installing TrkDownLoader")
  556.             (source (tackon Disk1Name "utilities/TRKDownLoad"))
  557.             (dest utildest)
  558.             (infos)
  559.             (optional force)
  560.         )
  561.         
  562.  
  563.      )
  564. )
  565.  
  566. ; if bit position 4 is on Installa PlayCDXL
  567. (if (<> DemoVersion 2) ; NOTA messo a 2 che è diverso da 0 e 1
  568.    (if (IN PkgOpts 4)
  569.         (
  570.  
  571.            
  572.            (if (< (exists utildest (noreq)) 2)
  573.  
  574.                (makedir utildest
  575.                   (prompt "New Directory -Utilities-")
  576.                   (infos)
  577.                )
  578.            )
  579.  
  580.  
  581.            (copyfiles
  582.                (prompt "Installing PlayCDXL")
  583.                (source (tackon Disk1Name "utilities/PlayCDXL"))
  584.                (dest utildest)
  585.                (infos)
  586.                (optional force)
  587.            )
  588.            
  589.  
  590.         )
  591.    )
  592. )
  593.  
  594. ; if bit position 5 is on  Installa CD_IDE
  595. (if (IN PkgOpts 5)
  596.      (
  597.  
  598.  
  599.         (if (< (exists prefdest (noreq)) 2)
  600.  
  601.             (makedir prefdest
  602.                (prompt "New Directory -Prefs-")
  603.                (infos)
  604.             )
  605.         )
  606.  
  607.  
  608.         (copyfiles
  609.             (prompt "Installing CD_IDE")
  610.             (source (tackon Disk1Name "prefs/CD_IDE"))
  611.             (dest prefdest)
  612.             (infos)
  613.             (optional force)
  614.         )
  615.  
  616.  
  617.      )
  618. )
  619.  
  620.  
  621. (if (> IconChoose 0)
  622.     (
  623.         (if (< (exists Icondest (noreq)) 2)
  624.  
  625.             (makedir Icondest
  626.                (prompt "New Directory Devs or Storage")
  627.                (infos)
  628.             )
  629.         )
  630.  
  631.         (set Icondest  (tackon Icondest "Dosdrivers"))
  632.          
  633.         (copyfiles
  634.             (prompt "Installing Device-Icon")
  635.             (source (tackon Disk1Name (tackon "Devs/Storage" FsName)))
  636.             (dest IconDest)
  637.             (newname  DevName)
  638.             (infos)
  639.             (optional force)
  640.         )
  641.  
  642.     
  643.         (if (= AutoMount 1)
  644.             ( message "\n" "\n"
  645.                    "On each start of the computer the CD-Drive\n"
  646.                    "will be automounted into the system\n"
  647.                    "\n"
  648.                    "You can change this by moving the icon\n"
  649.                    ("%s from the directory" DevName)
  650.                    "Devs/Dosdrivers into Storage/Dosdrivers\n"
  651.  
  652.             )
  653.             ( message "\n" "\n"
  654.                    "You can Mount the CD-Drive by n"
  655.                    ("doubleclicking\on the Icon  %s\n" DevName)
  656.                    "in the directory Storage/Dosdrivers\n"
  657.                    "If you want an Automount , then\n"
  658.                    "move the Icon int the directory Devs/Dosdrivers"
  659.             )
  660.         )
  661.     )
  662.     ( message "\n" "\n"
  663.            "There is no kind of icon for\n"
  664.            "your CD-ROM Drive .\n"
  665.            "You have to build it by yourself!\n"
  666.            "\n"
  667.            "Or click another time on -Install-\n"
  668.            "and choose a CD-filesystem\n"
  669.     )
  670.  
  671. )
  672.  
  673. (exit)
  674. ;///
  675.