home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 25 / GNOME_DEMO.iso / amiga / music / aplay221.lzx / APlayer / HDInstall next >
Text File  |  1982-10-25  |  55KB  |  1,729 lines

  1. ;**************************************************************************
  2. ;*                                                                        *
  3. ;*                 Installer Script For Accessible Player                 *
  4. ;*                                                                        *
  5. ;*                            Update 27/12-1996                           *
  6. ;*                                                                        *
  7. ;**************************************************************************
  8.  
  9. ;--------------------------------------------------------------------------
  10. ; Procedures
  11.  
  12. (procedure InstallLib
  13.     (working ("Testing %s" libname))
  14.     (copylib
  15.         (prompt ("Do you want to install the \"%s\"?" libname))
  16.         (help @copylib-help)
  17.         (source (tackon tempdir libname))
  18.         (dest libdest)
  19.         (confirm)
  20.     )
  21. )
  22.  
  23. (procedure DeleteAll
  24.     (if (exists deldir)
  25.         (foreach deldir "#?"
  26.             (delete (tackon deldir @each-name)
  27.                 (optional force)
  28.             )
  29.         )
  30.     )
  31. )
  32.  
  33. ;--------------------------------------------------------------------------
  34. ; ** Install Procedure
  35.  
  36. (procedure Install
  37.     (message "This version of APlayer is shareware. "
  38.              "Without registration you will miss some of APlayer "
  39.              "features. On how to register, read the guide.\n\n"
  40.              "If you still want to install press proceed else abort."
  41.     )
  42.  
  43.     (message "You are now about to install the APlayer program. "
  44.              "You will first be asked for all the different files "
  45.              "you can install and then this script will begin to "
  46.              "install the files."
  47.     )
  48.  
  49.     (set default-dest
  50.         (askdir
  51.             (prompt "Where do you want to install APlayer? A drawer called "
  52.                     "APlayer will be created.")
  53.             (help @askdir-help)
  54.             (default @default-dest)
  55.         )
  56.     )
  57.     (set @default-dest default-dest)
  58.  
  59.  
  60.     (set fileflag
  61.         (askoptions
  62.             (prompt "Which files do you want to install in the "
  63.                     "\"APlayer\" drawer?")
  64.             (help @askoptions-help)
  65.             (choices
  66.                 "APlayer"
  67.                 "Commercial Picture"
  68.             )
  69.         )
  70.     )
  71.  
  72.     (set big
  73.         (askbool
  74.             (prompt "Do you want to install all players, noteplayers and "
  75.                     "agents? If you select yes, a default player config "
  76.                     "file will be installed, except if you already have "
  77.                     "a config file installed. Note that all agents will "
  78.                     "be active, so if you don't want them to be active, "
  79.                     "you have to disable them by yourself after the "
  80.                     "installation.")
  81.             (help @askbool-help)
  82.             (choices "Yes" "No")
  83.         )
  84.     )
  85.  
  86.     (if big
  87.         (
  88.             (set play 1)
  89.             (set playflag1 -1)
  90.             (set playflag2 -1)
  91.             (set playflag3 -1)
  92.             (set playflag4 -1)
  93.             (set playflag5 -1)
  94.             (set playflag6 -1)
  95.             (set playflag7 -1)
  96.  
  97.             (set noteplay 1)
  98.             (set noteplayflag1 -1)
  99.  
  100.             (set agentflag 1)
  101.             (set agentflag1 -1)
  102.             (set multiflag1 -1)
  103.         )
  104.         (                               ; else statement
  105.             (set play
  106.                 (askbool
  107.                     (prompt "Do you want to install external players?")
  108.                     (help "If you select yes, you can select between all the "
  109.                           "external players this version support. All the players "
  110.                           "will be stored in your \"LIBS:APlayer\" drawer.")
  111.                 )
  112.             )
  113.  
  114.             (set playflag1 0)
  115.             (set playflag2 0)
  116.             (set playflag3 0)
  117.             (set playflag4 0)
  118.             (set playflag5 0)
  119.             (set playflag6 0)
  120.             (set playflag7 0)
  121.             (if play
  122.                 (
  123.                     (set playflag1
  124.                         (askoptions
  125.                             (prompt "Which external players do you want to install in "
  126.                                     "your \"LIBS:APlayer\" drawer?")
  127.                             (help @askoptions-help)
  128.                             (choices
  129.                                 "Activision Pro"
  130.                                 "Art of Noise"
  131.                                 "DeliCustom"
  132.                                 "Delta 1.0"
  133.                                 "Delta 2.0"
  134.                                 "Digi Booster"
  135.                                 "Digital Mugician"
  136.                                 "DSS"
  137.                             )
  138.                         )
  139.                     )
  140.  
  141.                     (set playflag2
  142.                         (askoptions
  143.                             (prompt "Which external players do you want to install in "
  144.                                     "your \"LIBS:APlayer\" drawer?")
  145.                             (help @askoptions-help)
  146.                             (choices
  147.                                 "FastTracker"
  148.                                 "FastTracker 2.0"
  149.                                 "Fred"
  150.                                 "Future Composer 1.0-1.3"
  151.                                 "Future Composer 1.4"
  152.                                 "Hippel"
  153.                                 "IFF-8SVX"
  154.                                 "IFF-AIFF"
  155.                             )
  156.                         )
  157.                     )
  158.  
  159.                     (set playflag3
  160.                         (askoptions
  161.                             (prompt "Which external players do you want to install in "
  162.                                     "your \"LIBS:APlayer\" drawer?")
  163.                             (help @askoptions-help)
  164.                             (choices
  165.                                 "IFF-SMUS"
  166.                                 "In Stereo 2.0"
  167.                                 "JamCracker"
  168.                                 "J.C. Brooke"
  169.                                 "Maniacs of Noise"
  170.                                 "Mark Cooksey"
  171.                                 "Mark II"
  172.                                 "MultiTracker"
  173.                             )
  174.                         )
  175.                     )
  176.  
  177.                     (set playflag4
  178.                         (askoptions
  179.                             (prompt "Which external players do you want to install in "
  180.                                     "your \"LIBS:APlayer\" drawer?")
  181.                             (help @askoptions-help)
  182.                             (choices
  183.                                 "Music Assembler"
  184.                                 "MusicLine Editor"
  185.                                 "Noise Packer 2.0"
  186.                                 "Noise Packer 3.0"
  187.                                 "OctaMed"
  188.                                 "OctaMed Sound Studio"
  189.                                 "Oktalyzer"
  190.                                 "Puma Tracker"
  191.                             )
  192.                         )
  193.                     )
  194.  
  195.                     (set playflag5
  196.                         (askoptions
  197.                             (prompt "Which external players do you want to install in "
  198.                                     "your \"LIBS:APlayer\" drawer?")
  199.                             (help @askoptions-help)
  200.                             (choices
  201.                                 "Quadra Composer"
  202.                                 "RIFF-WAVE"
  203.                                 "Ron Klaren"
  204.                                 "ScreamTracker 3.0"
  205.                                 "SID"
  206.                                 "SidMon 1.0"
  207.                                 "SidMon 2.0"
  208.                                 "Sound Factory"
  209.                             )
  210.                         )
  211.                     )
  212.  
  213.                     (set playflag6
  214.                         (askoptions
  215.                             (prompt "Which external players do you want to install in "
  216.                                     "your \"LIBS:APlayer\" drawer?")
  217.                             (help @askoptions-help)
  218.                             (choices
  219.                                 "Sound FX 1.3"
  220.                                 "Sound FX 2.0"
  221.                                 "Sound Monitor 2.0"
  222.                                 "StarTrekker 4"
  223.                                 "StarTrekker 4AM"
  224.                                 "Syntracker"
  225.                                 "TFMX 1.5"
  226.                                 "THX Sound System"
  227.                             )
  228.                         )
  229.                     )
  230.  
  231.                     (set playflag7
  232.                         (askoptions
  233.                             (prompt "Which external players do you want to install in "
  234.                                     "your \"LIBS:APlayer\" drawer?")
  235.                             (help @askoptions-help)
  236.                             (choices
  237.                                 "Tronic Tracker"
  238.                                 "Whittaker"
  239.                             )
  240.                         )
  241.                     )
  242.                 )
  243.             )
  244.  
  245.  
  246.             (set noteplay
  247.                 (askbool
  248.                     (prompt "Do you want to install external NotePlayers?")
  249.                     (help "If you select yes, you can select between all the "
  250.                           "external NotePlayers this version support. All the "
  251.                           "NotePlayers will be stored in your \"LIBS:APlayer/NotePlayers\" drawer.")
  252.                 )
  253.             )
  254.  
  255.             (set noteplayflag1 0)
  256.             (if noteplay
  257.                 (
  258.                     (set noteplayflag1
  259.                         (askoptions
  260.                             (prompt "Which external NotePlayers do you want to install in "
  261.                                     "your \"LIBS:APlayer/NotePlayers\" drawer?")
  262.                             (help @askoptions-help)
  263.                             (choices
  264.                                 "14 Bit Stereo - 2 Voices"
  265.                                 "14 Bit Stereo - 32 Voices"
  266.                                 "AHI - 64 Voices"
  267.                                 "FastMem - 4 Voices"
  268.                                 "Mono - 32 Voices"
  269.                                 "Real Surround - 32 Voices"
  270.                                 "Stereo - 32 Voices"
  271.                                 "Surround - 32 Voices"
  272.                             )
  273.                         )
  274.                     )
  275.                 )
  276.             )
  277.  
  278.  
  279.             (set agent
  280.                 (askbool
  281.                     (prompt "Do you want to install external Agents?")
  282.                     (help "If you select yes, you can select between all the "
  283.                           "external Agents this version support. All the "
  284.                           "Agents will be stored in your \"LIBS:APlayer/Agents\" drawer.")
  285.                 )
  286.             )
  287.  
  288.             (set agentflag1 0)
  289.             (if agent
  290.                 (
  291.                     (set agentflag1
  292.                         (askoptions
  293.                             (prompt "Which external Agents do you want to install in "
  294.                                     "your \"LIBS:APlayer/Agents\" drawer?")
  295.                             (help @askoptions-help)
  296.                             (choices
  297.                                 "Favourite Song System"
  298.                                 "Multi - Sample Saver"
  299.                                 "Bar - Scope"
  300.                                 "FreqAnalyzer - Scope"
  301.                                 "RGBBox - Scope"
  302.                                 "SpinSquare - Scope"
  303.                             )
  304.                         )
  305.                     )
  306.  
  307.                     (set multiflag1 0)
  308.                     (if (in agentflag1 1)
  309.                         (
  310.                             (set multiflag1
  311.                                 (askoptions
  312.                                     (prompt "You have selected the Multi-SampleSaver agent. "
  313.                                             "Which sample modules do you want to install?")
  314.                                     (help @askoptions-help)
  315.                                     (choices
  316.                                         "IFF-8SVX"
  317.                                         "IFF-AIFF"
  318.                                         "Raw"
  319.                                         "RIFF-WAVE"
  320.                                         "Worms"
  321.                                     )
  322.                                 )
  323.                             )
  324.                         )
  325.                     )
  326.                 )
  327.             )
  328.         )
  329.     )
  330.  
  331.  
  332.     (set libs
  333.         (askoptions
  334.             (prompt "Which other libraries do you want to install in your "
  335.                     "\"LIBS:\" drawer?  Press help for more info.")
  336.             (help "This is some libraries the APlayer uses or can use. "
  337.                   "Here follow a little description of the different "
  338.                   "libraries:\n\n"
  339.                   "MLine.library: Mline.library is used for playing "
  340.                   "musicline-modules.\n\n"
  341.                   "PlaySID.library: This library are used in the SID "
  342.                   "player. That means, if you want to hear some C64 SID "
  343.                   "tunes, you have to install this library.\n\n"
  344.                   "Reqtools.library: This library is required by APlayer. "
  345.                   "With this library APlayer shows filerequesters etc.\n\n"
  346.                   "Rexxtools.library: If you want ARexx in APlayer, you "
  347.                   "have to install this library. It helps APlayer to make "
  348.                   "the ARexx interface.\n\n"
  349.                   "Xpkmaster.library: APlayer can also use this library to "
  350.                   "decrunch both powerpacked and xpk packed modules.\n\n"
  351.                   "Unpack.library: This library can decrunch a lot of "
  352.                   "different types of crunched modules. See the unpack.doc "
  353.                   "for more information.")
  354.             (choices
  355.                 "MLine.library"
  356.                 "PlaySID.library"
  357.                 "Reqtools.library"
  358.                 "Rexxtools.library"
  359.                 "Xpkmaster.library"
  360.                 "Unpack.library"
  361.             )
  362.         )
  363.     )
  364.  
  365.  
  366.     (set cpu (database "cpu"))
  367.     (if (< cpu 68020)
  368.         (set marked 3)
  369.         (set marked 5)
  370.     )
  371.  
  372.     (set xpk
  373.         (askoptions
  374.             (prompt "Which xpk libraries do you want to install in your "
  375.                     "\"LIBS:compressors\" drawer?")
  376.             (help @askoptions-help)
  377.             (choices
  378.                 "xpkSMPL.library"
  379.                 "xpkSQSH.library (68000)"
  380.                 "XpkSQSH.library (68020)"
  381.             (default marked)
  382.             )
  383.         )
  384.     )
  385.  
  386.  
  387.     (set arexx
  388.         (askbool
  389.             (prompt "Do you want to install ARexx?")
  390.             (help @askbool-help)
  391.         )
  392.     )
  393.  
  394.  
  395.     (set doc
  396.         (askbool
  397.             (prompt "Do you want to install docs?")
  398.             (help "If you select yes, you can select between all the "
  399.                   "different docs. All the docs will be install in the "
  400.                   "\"APlayer/Docs\" drawer.")
  401.         )
  402.     )
  403.  
  404.     (set docflag 0)
  405.     (if doc
  406.         (set docflag
  407.             (askoptions
  408.                 (prompt "Which files do you want to install in the "
  409.                         "\"APlayer/Docs\" drawer?")
  410.                 (help @askoptions-help)
  411.                 (choices
  412.                     "APlayer.guide"
  413.                     "MissingModules.txt"
  414.                     "PlaySid.doc"
  415.                     "SMPL.doc"
  416.                     "SQSH.doc"
  417.                     "Unpack.guide"
  418.                     "RegistrationForm"
  419.                     "Installer Script"
  420.                 )
  421.             )
  422.         )
  423.     )
  424.  
  425.  
  426. ;    (set developer
  427. ;        (askbool
  428. ;            (prompt "Do you want to install the developer set?")
  429. ;            (help @askbool-help)
  430. ;        )
  431. ;    )
  432.  
  433.  
  434.     (set ahi
  435.         (askbool
  436.             (prompt "Do you want to install AHI?\n\n"
  437.                     "The AHI package is created by Martin Blom "
  438.                     "and is an audio driver for sound cards and "
  439.                     "the standard Amiga hardware. APlayer has a NotePlayer "
  440.                     "in this archive which use AHI.\n\n"
  441.                     "Notice that the AHI requires 68020+.")
  442.             (help "If you select yes, you can select between all the "
  443.                   "different drivers.")
  444.         )
  445.     )
  446.  
  447.     (set ahiflag 0)
  448.     (if ahi
  449.         (
  450.             (set ahic
  451.                 (askdir
  452.                     (prompt "AHI needs a CLI command to run. Where do you "
  453.                             "want to install it?")
  454.                     (help @askdir-help)
  455.                     (default "C:")
  456.                 )
  457.             )
  458.  
  459.             (set ahiflag
  460.                 (askoptions
  461.                     (prompt "Which AHI drivers do you want to install in "
  462.                                     "your \"DEVS:AudioModes\" and "
  463.                                     "your \"DEVS:AHI\" drawers?")
  464.                             (help @askoptions-help)
  465.                             (choices
  466.                                 "Delfina"
  467.                                 "File Save"
  468.                                 "Paula"
  469.                                 "Toccata"
  470.                                 "Wavetools"
  471.                             )
  472.                 )
  473.             )
  474.         )
  475.     )
  476.  
  477.  
  478. ; ** Begin to copy the files
  479.  
  480.     (set @default-dest (tackon @default-dest "APlayer"))
  481.     (set lhex (tackon sdir "C/lhex"))
  482.     (set tempdir "T:apTemp")
  483.     (set deldir tempdir)
  484.  
  485.     (makedir tempdir)
  486.     (makedir @default-dest)
  487.  
  488.     (if (not (exists (tackon @default-dest "/APlayer.info")))
  489.         (copyfiles                             ;Copy Icon To APlayer Directory
  490.             (source (tackon sdir "/APlayer.info"))
  491.             (dest (tackon @default-dest "/"))
  492.         )
  493.     )
  494.  
  495.     (set oldversion 0)
  496.     (if (exists (tackon @default-dest "APlayer"))
  497.         (
  498.             (set ver (getversion (tackon @default-dest "APlayer")))
  499.             (set oldversion (/ ver 65536))
  500.         )
  501.     )
  502.  
  503.     (if fileflag
  504.         (
  505.             (working "Unpacking program archive....")
  506.             (run ("\"%s\" -fqw=%s x Files/Program.lha >NIL:" lhex tempdir))
  507.  
  508.             (if (in fileflag 0)                     ;APlayer File
  509.                 (
  510.                     (set datadir (tackon @default-dest "Data"))
  511.                     (makedir datadir)
  512.                     (copyfiles
  513.                         (source (tackon tempdir "APlayer"))
  514.                         (dest @default-dest)
  515.                         (infos)
  516.                     )
  517.  
  518.                     (copyfiles
  519.                         (source (tackon tempdir "Data/Help.Nodes"))
  520.                         (dest (tackon @default-dest "Data/"))
  521.                     )
  522.  
  523.                     (copyfiles
  524.                         (source (tackon tempdir "Data/Tips.dat"))
  525.                         (dest (tackon @default-dest "Data/"))
  526.                     )
  527.  
  528.                     (copyfiles
  529.                         (source (tackon tempdir "Data/Why.dat"))
  530.                         (dest (tackon @default-dest "Data/"))
  531.                     )
  532.                 )
  533.             )
  534.  
  535.             (if (in fileflag 1)                     ;Commercial Picture
  536.                 (
  537.                     (copyfiles
  538.                         (source (tackon sdir "ShowMe.jpg"))
  539.                         (dest @default-dest)
  540.                         (infos)
  541.                     )
  542.                 )
  543.             )
  544.  
  545.             (set deldir (tackon tempdir "Data"))
  546.             (DeleteAll)
  547.             (set deldir tempdir)
  548.             (DeleteAll)
  549.         )
  550.     )
  551.     (complete 10)
  552.  
  553.  
  554.     (if (or (or (or (or (or (or playflag1 playflag2) playflag3) playflag4) playflag5) playflag6) playflag7)
  555.         (
  556.             (makedir "LIBS:APlayer")
  557.             (working "Unpacking player archive....")
  558.             (run ("\"%s\" -fqw=%s x Files/Players.lha >NIL:" lhex tempdir))
  559.             (set libdest "LIBS:APlayer/")
  560.             (delete "LIBS:APlayer/apHolyNoise.library")
  561.  
  562.             (if playflag1
  563.                 (
  564.                     (if (in playflag1 0)
  565.                         (
  566.                             (set libname "apActivisionPro.library")
  567.                             (InstallLib)
  568.                         )
  569.                     )
  570.  
  571.                     (if (in playflag1 1)
  572.                         (
  573.                             (set libname "apArtOfNoise.library")
  574.                             (InstallLib)
  575.                         )
  576.                     )
  577.  
  578.                     (if (in playflag1 2)
  579.                         (
  580.                             (set libname "apDeliCustom.library")
  581.                             (InstallLib)
  582.                         )
  583.                     )
  584.  
  585.                     (if (in playflag1 3)
  586.                         (
  587.                             (set libname "apDelta10.library")
  588.                             (InstallLib)
  589.                         )
  590.                     )
  591.  
  592.                     (if (in playflag1 4)
  593.                         (
  594.                             (set libname "apDelta20.library")
  595.                             (InstallLib)
  596.                         )
  597.                     )
  598.  
  599.                     (if (in playflag1 5)
  600.                         (
  601.                             (set libname "apDigiBooster.library")
  602.                             (InstallLib)
  603.                         )
  604.                     )
  605.  
  606.                     (if (in playflag1 6)
  607.                         (
  608.                             (set libname "apDigitalMugician.library")
  609.                             (InstallLib)
  610.                         )
  611.                     )
  612.  
  613.                     (if (in playflag1 7)
  614.                         (
  615.                             (set libname "apDSS.library")
  616.                             (InstallLib)
  617.                         )
  618.                     )
  619.                 )
  620.             )
  621.             (complete 11)
  622.  
  623.             (if playflag2
  624.                 (
  625.                     (if (in playflag2 0)
  626.                         (
  627.                             (set libname "apFastTracker.library")
  628.                             (InstallLib)
  629.                         )
  630.                     )
  631.  
  632.                     (if (in playflag2 1)
  633.                         (
  634.                             (set libname "apFastTracker20.library")
  635.                             (InstallLib)
  636.                         )
  637.                     )
  638.  
  639.                     (if (in playflag2 2)
  640.                         (
  641.                             (set libname "apFred.library")
  642.                             (InstallLib)
  643.                         )
  644.                     )
  645.  
  646.                     (if (in playflag2 3)
  647.                         (
  648.                             (set libname "apFuture13.library")
  649.                             (InstallLib)
  650.                         )
  651.                     )
  652.  
  653.                     (if (in playflag2 4)
  654.                         (
  655.                             (set libname "apFuture14.library")
  656.                             (InstallLib)
  657.                         )
  658.                     )
  659.  
  660.                     (if (in playflag2 5)
  661.                         (
  662.                             (set libname "apHippel.library")
  663.                             (InstallLib)
  664.                         )
  665.                     )
  666.  
  667.                     (if (in playflag2 6)
  668.                         (
  669.                             (set libname "apIFF-8SVX.library")
  670.                             (InstallLib)
  671.                         )
  672.                     )
  673.  
  674.                     (if (in playflag2 7)
  675.                         (
  676.                             (set libname "apIFF-AIFF.library")
  677.                             (InstallLib)
  678.                         )
  679.                     )
  680.                 )
  681.             )
  682.             (complete 13)
  683.  
  684.             (if playflag3
  685.                 (
  686.                     (if (in playflag3 0)
  687.                         (
  688.                             (set libname "apIFF-SMUS.library")
  689.                             (InstallLib)
  690.                         )
  691.                     )
  692.  
  693.                     (if (in playflag3 1)
  694.                         (
  695.                             (set libname "apInStereo20.library")
  696.                             (InstallLib)
  697.                         )
  698.                     )
  699.  
  700.                     (if (in playflag3 2)
  701.                         (
  702.                             (set libname "apJamCracker.library")
  703.                             (InstallLib)
  704.                         )
  705.                     )
  706.  
  707.                     (if (in playflag3 3)
  708.                         (
  709.                             (set libname "apJCBrooke.library")
  710.                             (InstallLib)
  711.                         )
  712.                     )
  713.  
  714.                     (if (in playflag3 4)
  715.                         (
  716.                             (set libname "apMON.library")
  717.                             (InstallLib)
  718.                         )
  719.                     )
  720.  
  721.                     (if (in playflag3 5)
  722.                         (
  723.                             (set libname "apMarkCooksey.library")
  724.                             (InstallLib)
  725.                         )
  726.                     )
  727.  
  728.                     (if (in playflag3 6)
  729.                         (
  730.                             (set libname "apMarkII.library")
  731.                             (InstallLib)
  732.                         )
  733.                     )
  734.  
  735.                     (if (in playflag3 7)
  736.                         (
  737.                             (set libname "apMultiTracker.library")
  738.                             (InstallLib)
  739.                         )
  740.                     )
  741.                 )
  742.             )
  743.             (complete 14)
  744.  
  745.             (if playflag4
  746.                 (
  747.                     (if (in playflag4 0)
  748.                         (
  749.                             (set libname "apMusicAss.library")
  750.                             (InstallLib)
  751.                         )
  752.                     )
  753.  
  754.                     (if (in playflag4 1)
  755.                         (
  756.                             (set libname "apMLine.library")
  757.                             (InstallLib)
  758.                         )
  759.                     )
  760.  
  761.                     (if (in playflag4 2)
  762.                         (
  763.                             (set libname "apNoisePacker20.library")
  764.                             (InstallLib)
  765.                         )
  766.                     )
  767.  
  768.                     (if (in playflag4 3)
  769.                         (
  770.                             (set libname "apNoisePacker30.library")
  771.                             (InstallLib)
  772.                         )
  773.                     )
  774.  
  775.                     (if (in playflag4 4)
  776.                         (
  777.                             (set libname "apOctaMed.library")
  778.                             (InstallLib)
  779.                         )
  780.                     )
  781.  
  782.                     (if (in playflag4 5)
  783.                         (
  784.                             (set libname "apOctaMedSS.library")
  785.                             (InstallLib)
  786.                         )
  787.                     )
  788.  
  789.                     (if (in playflag4 6)
  790.                         (
  791.                             (set libname "apOktalyzer.library")
  792.                             (InstallLib)
  793.                         )
  794.                     )
  795.  
  796.                     (if (in playflag4 7)
  797.                         (
  798.                             (set libname "apPumaTracker.library")
  799.                             (InstallLib)
  800.                         )
  801.                     )
  802.                 )
  803.             )
  804.             (complete 16)
  805.  
  806.             (if playflag5
  807.                 (
  808.                     (if (in playflag5 0)
  809.                         (
  810.                             (set libname "apQuadraComposer.library")
  811.                             (InstallLib)
  812.                         )
  813.                     )
  814.  
  815.                     (if (in playflag5 1)
  816.                         (
  817.                             (set libname "apRIFF-WAVE.library")
  818.                             (InstallLib)
  819.                         )
  820.                     )
  821.  
  822.                     (if (in playflag5 2)
  823.                         (
  824.                             (set libname "apRonKlaren.library")
  825.                             (InstallLib)
  826.                         )
  827.                     )
  828.  
  829.                     (if (in playflag5 3)
  830.                         (
  831.                             (set libname "apScreamTracker30.library")
  832.                             (InstallLib)
  833.                         )
  834.                     )
  835.  
  836.                     (if (in playflag5 4)
  837.                         (
  838.                             (set libname "apSID.library")
  839.                             (InstallLib)
  840.                         )
  841.                     )
  842.  
  843.                     (if (in playflag5 5)
  844.                         (
  845.                             (set libname "apSidMon10.library")
  846.                             (InstallLib)
  847.                         )
  848.                     )
  849.  
  850.                     (if (in playflag5 6)
  851.                         (
  852.                             (set libname "apSidMon20.library")
  853.                             (InstallLib)
  854.                         )
  855.                     )
  856.  
  857.                     (if (in playflag5 7)
  858.                         (
  859.                             (set libname "apSoundFactory.library")
  860.                             (InstallLib)
  861.                         )
  862.                     )
  863.                 )
  864.             )
  865.             (complete 17)
  866.  
  867.             (if playflag6
  868.                 (
  869.                     (if (in playflag6 0)
  870.                         (
  871.                             (set libname "apSoundFX13.library")
  872.                             (InstallLib)
  873.                         )
  874.                     )
  875.  
  876.                     (if (in playflag6 1)
  877.                         (
  878.                             (set libname "apSoundFX20.library")
  879.                             (InstallLib)
  880.                         )
  881.                     )
  882.  
  883.                     (if (in playflag6 2)
  884.                         (
  885.                             (set libname "apSoundMon20.library")
  886.                             (InstallLib)
  887.                         )
  888.                     )
  889.  
  890.                     (if (in playflag6 3)
  891.                         (
  892.                             (set libname "apStarTrekker4.library")
  893.                             (InstallLib)
  894.                         )
  895.                     )
  896.  
  897.                     (if (in playflag6 4)
  898.                         (
  899.                             (set libname "apStarTrekker4AM.library")
  900.                             (InstallLib)
  901.                         )
  902.                     )
  903.  
  904.                     (if (in playflag6 5)
  905.                         (
  906.                             (set libname "apSyntracker.library")
  907.                             (InstallLib)
  908.                         )
  909.                     )
  910.  
  911.                     (if (in playflag6 6)
  912.                         (
  913.                             (set libname "apTFMX_15.library")
  914.                             (InstallLib)
  915.                         )
  916.                     )
  917.  
  918.                     (if (in playflag6 7)
  919.                         (
  920.                             (set libname "apTHX.library")
  921.                             (InstallLib)
  922.                         )
  923.                     )
  924.                 )
  925.             )
  926.             (complete 19)
  927.  
  928.             (if playflag7
  929.                 (
  930.                     (if (in playflag7 0)
  931.                         (
  932.                             (set libname "apTronicTracker.library")
  933.                             (InstallLib)
  934.                         )
  935.                     )
  936.  
  937.                     (if (in playflag7 1)
  938.                         (
  939.                             (set libname "apWhittaker.library")
  940.                             (InstallLib)
  941.                         )
  942.                     )
  943.                 )
  944.             )
  945.         (DeleteAll)
  946.         )
  947.     )
  948.     (complete 20)
  949.  
  950.  
  951.     (if noteplayflag1
  952.         (
  953.             (makedir "LIBS:APlayer/NotePlayers")
  954.             (working "Unpacking NotePlayer archive....")
  955.             (run ("\"%s\" -fqw=%s x Files/NotePlayers.lha >NIL:" lhex tempdir))
  956.             (set libdest "LIBS:APlayer/NotePlayers")
  957.  
  958.             (if (in noteplayflag1 0)
  959.                 (
  960.                     (set libname "an14BitStereo-2Voices.library")
  961.                     (InstallLib)
  962.                 )
  963.             )
  964.  
  965.             (if (in noteplayflag1 1)
  966.                 (
  967.                     (set libname "an14BitStereo-32Voices.library")
  968.                     (InstallLib)
  969.                 )
  970.             )
  971.  
  972.             (if (in noteplayflag1 2)
  973.                 (
  974.                     (set libname "anAHI-64Voices.library")
  975.                     (InstallLib)
  976.                 )
  977.             )
  978.  
  979.             (if (in noteplayflag1 3)
  980.                 (
  981.                     (set libname "anFastMem-4Voices.library")
  982.                     (InstallLib)
  983.                 )
  984.             )
  985.  
  986.             (if (in noteplayflag1 4)
  987.                 (
  988.                     (set libname "anMono-32Voices.library")
  989.                     (InstallLib)
  990.                 )
  991.             )
  992.  
  993.             (if (in noteplayflag1 5)
  994.                 (
  995.                     (set libname "anReSurround-32Voices.library")
  996.                     (InstallLib)
  997.                 )
  998.             )
  999.  
  1000.             (if (in noteplayflag1 6)
  1001.                 (
  1002.                     (set libname "anStereo-32Voices.library")
  1003.                     (InstallLib)
  1004.                 )
  1005.             )
  1006.  
  1007.             (if (in noteplayflag1 7)
  1008.                 (
  1009.                     (set libname "anSurround-32Voices.library")
  1010.                     (InstallLib)
  1011.                 )
  1012.             )
  1013.         (DeleteAll)
  1014.         )
  1015.     )
  1016.     (complete 30)
  1017.  
  1018.  
  1019.     (if agentflag1
  1020.         (
  1021.             (makedir "LIBS:APlayer/Agents")
  1022.             (working "Unpacking Agent archive....")
  1023.             (run ("\"%s\" -fqw=%s x Files/Agents.lha >NIL:" lhex tempdir))
  1024.             (set libdest "LIBS:APlayer/Agents")
  1025.  
  1026.             (if (in agentflag1 0)
  1027.                 (
  1028.                     (set libname "aaFSS.library")
  1029.                     (InstallLib)
  1030.                 )
  1031.             )
  1032.  
  1033.             (if (in agentflag1 1)
  1034.                 (
  1035.                     (set libname "aaMulti-SampleSaver.library")
  1036.                     (InstallLib)
  1037.                 )
  1038.             )
  1039.  
  1040.             (if (in agentflag1 2)
  1041.                 (
  1042.                     (set libname "aaBar-Scope.library")
  1043.                     (InstallLib)
  1044.                 )
  1045.             )
  1046.  
  1047.             (if (in agentflag1 3)
  1048.                 (
  1049.                     (set libname "aaFreqAnalyzer-Scope.library")
  1050.                     (InstallLib)
  1051.                 )
  1052.             )
  1053.  
  1054.             (if (in agentflag1 4)
  1055.                 (
  1056.                     (set libname "aaRGBBox-Scope.library")
  1057.                     (InstallLib)
  1058.                 )
  1059.             )
  1060.  
  1061.             (if (in agentflag1 5)
  1062.                 (
  1063.                     (set libname "aaSpinSquare-Scope.library")
  1064.                     (InstallLib)
  1065.                 )
  1066.             )
  1067.         (DeleteAll)
  1068.         )
  1069.     )
  1070.     (complete 35)
  1071.  
  1072.     (if multiflag1
  1073.         (
  1074.             (makedir "LIBS:APlayer/Agents/MSSModules")
  1075.             (working "Unpacking Multi Modules archive....")
  1076.             (run ("\"%s\" -fqw=%s x Files/MultiMods.lha >NIL:" lhex tempdir))
  1077.             (set libdest "LIBS:APlayer/Agents/MSSModules")
  1078.  
  1079.             (if (in multiflag1 0)
  1080.                 (
  1081.                     (set libname "mmIFF-8SVX.library")
  1082.                     (InstallLib)
  1083.                 )
  1084.             )
  1085.  
  1086.             (if (in multiflag1 1)
  1087.                 (
  1088.                     (set libname "mmIFF-AIFF.library")
  1089.                     (InstallLib)
  1090.                 )
  1091.             )
  1092.  
  1093.             (if (in multiflag1 2)
  1094.                 (
  1095.                     (set libname "mmRaw.library")
  1096.                     (InstallLib)
  1097.                 )
  1098.             )
  1099.  
  1100.             (if (in multiflag1 3)
  1101.                 (
  1102.                     (set libname "mmRIFF-WAVE.library")
  1103.                     (InstallLib)
  1104.                 )
  1105.             )
  1106.  
  1107.             (if (in multiflag1 4)
  1108.                 (
  1109.                     (set libname "mmWorms.library")
  1110.                     (InstallLib)
  1111.                 )
  1112.             )
  1113.         (DeleteAll)
  1114.         )
  1115.     )
  1116.     (complete 40)
  1117.  
  1118.  
  1119.     (if libs
  1120.         (
  1121.             (working "Unpacking library archive....")
  1122.             (run ("\"%s\" -fqw=%s x Files/Libraries.lha >NIL:" lhex tempdir))
  1123.             (set libdest "LIBS:")
  1124.  
  1125.             (if (in libs 0)
  1126.                 (
  1127.                     (set libname "mline.library")
  1128.                     (InstallLib)
  1129.                 )
  1130.             )
  1131.  
  1132.             (if (in libs 1)
  1133.                 (
  1134.                     (set libname "playsid.library")
  1135.                     (InstallLib)
  1136.                 )
  1137.             )
  1138.  
  1139.             (if (in libs 2)
  1140.                 (
  1141.                     (set libname "reqtools.library")
  1142.                     (InstallLib)
  1143.                 )
  1144.             )
  1145.  
  1146.             (if (in libs 3)
  1147.                 (
  1148.                     (set libname "rexxtools.library")
  1149.                     (InstallLib)
  1150.                 )
  1151.             )
  1152.  
  1153.             (if (in libs 4)
  1154.                 (
  1155.                     (set libname "xpkmaster.library")
  1156.                     (InstallLib)
  1157.                 )
  1158.             )
  1159.  
  1160.             (if (in libs 5)
  1161.                 (
  1162.                     (set libname "unpack.library")
  1163.                     (InstallLib)
  1164.                 )
  1165.             )
  1166.         (DeleteAll)
  1167.         )
  1168.     )
  1169.     (complete 50)
  1170.  
  1171.  
  1172.     (if xpk
  1173.         (
  1174.             (makedir "LIBS:compressors")
  1175.             (working "Unpacking XPK-Subs archive....")
  1176.             (run ("\"%s\" -fqw=%s x Files/XPKSubs.lha >NIL:" lhex tempdir))
  1177.             (set libdest "LIBS:compressors/")
  1178.  
  1179.             (if (in xpk 0)
  1180.                 (
  1181.                     (set libname "xpkSMPL.library")
  1182.                     (InstallLib)
  1183.                 )
  1184.             )
  1185.  
  1186.             (if (in xpk 1)
  1187.                 (
  1188.                     (working ("Testing compressors/xpkSQSH.library"))
  1189.                     (copylib
  1190.                         (prompt ("Do you want to install the \"compressors/xpkSQSH.library\"?"))
  1191.                         (help @copylib-help)
  1192.                         (source (tackon tempdir "xpkSQSH000.library"))
  1193.                         (dest libdest)
  1194.                         (newname "xpkSQSH.library")
  1195.                         (confirm)
  1196.                     )
  1197.                 )
  1198.             )
  1199.  
  1200.             (if (in xpk 2)
  1201.                 (
  1202.                     (working ("Testing compressors/xpkSQSH.library"))
  1203.                     (copylib
  1204.                         (prompt ("Do you want to install the \"compressors/xpkSQSH.library\"?"))
  1205.                         (help @copylib-help)
  1206.                         (source (tackon tempdir "xpkSQSH020.library"))
  1207.                         (dest libdest)
  1208.                         (newname "xpkSQSH.library")
  1209.                         (confirm)
  1210.                     )
  1211.                 )
  1212.             )
  1213.         (DeleteAll)
  1214.         )
  1215.     )
  1216.     (complete 60)
  1217.  
  1218.  
  1219.     (if arexx
  1220.         (
  1221.             (set arexxdir (tackon @default-dest "ARexx"))
  1222.             (makedir arexxdir)
  1223.             (working "Unpacking ARexx archive....")
  1224.             (run ("\"%s\" -fqw=%s x Files/ARexx.lha >NIL:" lhex arexxdir))
  1225.         )
  1226.     )
  1227.     (complete 70)
  1228.  
  1229.  
  1230.     (if doc
  1231.         (
  1232.             (set docdir (tackon @default-dest "Docs"))
  1233.             (makedir (tackon @default-dest "Docs") (infos))
  1234.             (working "Unpacking Docs archive....")
  1235.             (run ("\"%s\" -fqw=%s x Files/Docs.lha >NIL:" lhex tempdir))
  1236.  
  1237.             (if (in docflag 0)
  1238.                 (
  1239.                     (copyfiles
  1240.                         (source (tackon tempdir "APlayer.guide"))
  1241.                         (dest docdir)
  1242.                         (infos)
  1243.                     )
  1244.                 )
  1245.             )
  1246.  
  1247.             (if (in docflag 1)
  1248.                 (
  1249.                     (copyfiles
  1250.                         (source (tackon tempdir "MissingModules.txt"))
  1251.                         (dest docdir)
  1252.                         (infos)
  1253.                     )
  1254.                 )
  1255.             )
  1256.  
  1257.             (if (in docflag 2)
  1258.                 (
  1259.                     (copyfiles
  1260.                         (source (tackon tempdir "PlaySid.doc"))
  1261.                         (dest docdir)
  1262.                         (infos)
  1263.                     )
  1264.                 )
  1265.             )
  1266.  
  1267.             (if (in docflag 3)
  1268.                 (
  1269.                     (copyfiles
  1270.                         (source (tackon tempdir "SMPL.doc"))
  1271.                         (dest docdir)
  1272.                         (infos)
  1273.                     )
  1274.                 )
  1275.             )
  1276.  
  1277.             (if (in docflag 4)
  1278.                 (
  1279.                     (copyfiles
  1280.                         (source (tackon tempdir "SQSH.doc"))
  1281.                         (dest docdir)
  1282.                         (infos)
  1283.                     )
  1284.                 )
  1285.             )
  1286.  
  1287.             (if (in docflag 5)
  1288.                 (
  1289.                     (delete (tackon docdir "Unpack.doc"))
  1290.                     (delete (tackon docdir "Unpack.doc.info"))
  1291.                     (copyfiles
  1292.                         (source (tackon tempdir "Unpacker.guide"))
  1293.                         (dest docdir)
  1294.                         (infos)
  1295.                     )
  1296.                 )
  1297.             )
  1298.  
  1299.             (if (in docflag 6)
  1300.                 (
  1301.                     (copyfiles
  1302.                         (source (tackon tempdir "RegistrationForm"))
  1303.                         (dest docdir)
  1304.                         (infos)
  1305.                     )
  1306.                 )
  1307.             )
  1308.  
  1309.             (if (in docflag 7)
  1310.                 (
  1311.                     (copyfiles
  1312.                         (source (tackon sdir "HDInstall"))
  1313.                         (dest @default-dest)
  1314.                         (infos)
  1315.                     )
  1316.                 )
  1317.             )
  1318.         (delete (tackon docdir "Bonus.doc"))
  1319.         (delete (tackon docdir "Bonus.doc.info"))
  1320.         (DeleteAll)
  1321.         )
  1322.     )
  1323.     (complete 80)
  1324.  
  1325.  
  1326. ;    (if developer
  1327. ;        (
  1328. ;            (set devdir (tackon @default-dest "Developer"))
  1329. ;            (makedir devdir)
  1330. ;            (working "Unpacking Developer archive....")
  1331. ;            (run ("\"%s\" -fqw=%s x Files/Developer.lha >NIL:" lhex devdir))
  1332. ;        )
  1333. ;    )
  1334.  
  1335.  
  1336.     (if ahi
  1337.         (
  1338.             (working "Unpacking AHI archive....")
  1339.             (run ("\"%s\" -fqw=%s x Files/AHI.lha >NIL:" lhex tempdir))
  1340.  
  1341.             (if doc
  1342.                 (
  1343.                     (copyfiles
  1344.                         (source (tackon tempdir "ahi.readme"))
  1345.                         (dest docdir)
  1346.                     )
  1347.                 )
  1348.             )
  1349.  
  1350.             (copyfiles
  1351.                 (source (tackon tempdir "C/AddAudioModes"))
  1352.                 (dest ahic)
  1353.             )
  1354.  
  1355.             (set libdest "DEVS:")
  1356.             (set libname "Devs/ahi.device")
  1357.             (InstallLib)
  1358.  
  1359.             (makedir "DEVS:AHI")
  1360.             (makedir "DEVS:AudioModes")
  1361.  
  1362.             (if (in ahiflag 0)
  1363.                 (
  1364.                     (set libdest "DEVS:AHI")
  1365.                     (set libname "Devs/AHI/delfina.audio")
  1366.                     (InstallLib)
  1367.  
  1368.                     (copyfiles
  1369.                         (source (tackon tempdir "Devs/AudioModes/DELFINA"))
  1370.                         (dest "DEVS:AudioModes")
  1371.                     )
  1372.                 )
  1373.             )
  1374.  
  1375.             (if (in ahiflag 1)
  1376.                 (
  1377.                     (set libdest "DEVS:AHI")
  1378.                     (set libname "Devs/AHI/filesave.audio")
  1379.                     (InstallLib)
  1380.  
  1381.                     (copyfiles
  1382.                         (source (tackon tempdir "Devs/AudioModes/FILESAVE"))
  1383.                         (dest "DEVS:AudioModes")
  1384.                     )
  1385.                 )
  1386.             )
  1387.  
  1388.             (if (in ahiflag 2)
  1389.                 (
  1390.                     (set libdest "DEVS:AHI")
  1391.                     (set libname "Devs/AHI/paula.audio")
  1392.                     (InstallLib)
  1393.  
  1394.                     (copyfiles
  1395.                         (source (tackon tempdir "Devs/AudioModes/PAULA"))
  1396.                         (dest "DEVS:AudioModes")
  1397.                     )
  1398.                 )
  1399.             )
  1400.  
  1401.             (if (in ahiflag 3)
  1402.                 (
  1403.                     (set libdest "DEVS:AHI")
  1404.                     (set libname "Devs/AHI/toccata.audio")
  1405.                     (InstallLib)
  1406.  
  1407.                     (copyfiles
  1408.                         (source (tackon tempdir "Devs/AudioModes/TOCCATA"))
  1409.                         (dest "DEVS:AudioModes")
  1410.                     )
  1411.  
  1412.                     (message "The Toccata driver doesn't work with the "
  1413.                              "toccata.library version 9.10. This is just "
  1414.                              "a notice.")
  1415.  
  1416.                     (set libdest "LIBS:")
  1417.                     (set libname "toccata.library")
  1418.                     (InstallLib)
  1419.                 )
  1420.             )
  1421.  
  1422.             (if (in ahiflag 4)
  1423.                 (
  1424.                     (set libdest "DEVS:AHI")
  1425.                     (set libname "Devs/AHI/wavetools.audio")
  1426.                     (InstallLib)
  1427.  
  1428.                     (copyfiles
  1429.                         (source (tackon tempdir "Devs/AudioModes/WAVETOOLS"))
  1430.                         (dest "DEVS:AudioModes")
  1431.                     )
  1432.                 )
  1433.             )
  1434.  
  1435.             (set deldir (tackon tempdir "C"))
  1436.             (DeleteAll)
  1437.             (set deldir (tackon tempdir "Devs/AHI"))
  1438.             (DeleteAll)
  1439.             (set deldir (tackon tempdir "Devs/AudioModes"))
  1440.             (DeleteAll)
  1441.             (set deldir (tackon tempdir "Devs"))
  1442.             (DeleteAll)
  1443.             (set deldir tempdir)
  1444.             (DeleteAll)
  1445.         )
  1446.     )
  1447.     (complete 90)
  1448.  
  1449. ; Delete Bonus Files
  1450.  
  1451.     (set deldir (tackon @default-dest "Bonus"))
  1452.     (DeleteAll)
  1453.     (delete deldir)
  1454.  
  1455. ; Check for obsolete players
  1456.  
  1457.     (set obplay "")
  1458.     (if (exists "LIBS:APlayer/apMED.library")
  1459.         (
  1460.             (set obplay "MED\n")
  1461.             (delete "LIBS:APlayer/apMED.library")
  1462.         )
  1463.     )
  1464.  
  1465.     (if (exists "LIBS:APlayer/apTakeTracker.library")
  1466.         (
  1467.             (set obplay (cat obplay "TakeTracker\n"))
  1468.             (delete "LIBS:APlayer/apTakeTracker.library")
  1469.         )
  1470.     )
  1471.  
  1472.     (if (not (= obplay ""))
  1473.         (message "Below is a list of some players which are obsolete. "
  1474.                  "They are deleted from your LIBS:APlayer/ drawer. "
  1475.                  "Be sure to delete them from your player config.\n\n"
  1476.                  obplay)
  1477.     )
  1478.  
  1479.  
  1480. ; Fix the configuration files
  1481.  
  1482.     (makedir "ENVARC:APlayer")
  1483.     (makedir "ENVARC:APlayer/Players")
  1484.     (makedir "ENVARC:APlayer/NotePlayers")
  1485.  
  1486.     ; From a very early version, the config where in the "root".
  1487.  
  1488.     (delete "ENVARC:APlayer/IFF-8SVX.cfg")
  1489.     (delete "ENVARC:APlayer/IFF-AIFF.cfg")
  1490.     (delete "ENVARC:APlayer/Protracker.cfg")
  1491.     (delete "ENVARC:APlayer/Players/Protracker.cfg")
  1492.  
  1493.  
  1494.     ; From Version 2, we have changed the config data, so we have
  1495.     ; to delete old config files.
  1496.  
  1497.     (if (< oldversion 2)
  1498.         (
  1499.             (delete "ENVARC:APlayer/Players/IFF-8SVX.cfg")
  1500.             (delete "ENVARC:APlayer/Players/IFF-AIFF.cfg")
  1501.             (delete "ENVARC:APlayer/Players/RIFF-WAVE.cfg")
  1502.         )
  1503.     )
  1504.  
  1505.  
  1506.     ; Delete files that are obsolete.
  1507.  
  1508.     (delete "ENVARC:APlayer/NotePlayers/FastMem4.cfg")
  1509.  
  1510.  
  1511.     ; Copy default player config file.
  1512.  
  1513.     (if big
  1514.         (
  1515.             (if (not (exists "ENVARC:APlayer/APlayer.libs"))
  1516.                 (
  1517.                     (copyfiles
  1518.                         (source "Files/!APlayer.libs")
  1519.                         (dest "ENVARC:APlayer/")
  1520.                     )
  1521.                     (rename "ENVARC:APlayer/!APlayer.libs" "ENVARC:APlayer/APlayer.libs")
  1522.                 )
  1523.             )
  1524.         )
  1525.     )
  1526.  
  1527.  
  1528.     ; Do we have to convert the config file?
  1529.  
  1530.     (if (< oldversion 2)
  1531.         (
  1532.             (if (exists "ENVARC:APlayer/APlayer.prefs")
  1533.                 (
  1534.                     (if (askbool
  1535.                             (prompt "Do you want to convert your old preference"
  1536.                                     "file to the new format?")
  1537.                             (help "From this version of APlayer, the file format"
  1538.                                   " of the preference file is changed. Therefore"
  1539.                                   " you have to convert your preference file to"
  1540.                                   " the new format if you want to use your old"
  1541.                                   " settings.")
  1542.                         )
  1543.                         (
  1544.                             (run ("\"%s\" >ENV:convtxt" (tackon sdir "C/PrefsConvert")))
  1545.  
  1546.                             (if (not (exists "ENVARC:APlayer/APlayer2.0.prefs"))
  1547.                                 (
  1548.                                     (message "Something went wrong when converting!!!\n\n"
  1549.                                              ("%s" (getenv "convtxt")))
  1550.                                 )
  1551.                                 (
  1552.                                     (if (askbool
  1553.                                             (prompt "You now have a new preference file."
  1554.                                                     " Do you want to delete your"
  1555.                                                     " old preference files and rename the new "
  1556.                                                     "one?")
  1557.                                             (help @askbool-help)
  1558.                                         )
  1559.                                         (
  1560.                                             (delete "ENVARC:APlayer/APlayer.prefs")
  1561.                                             (delete "ENVARC:APlayer/APlayer.win")
  1562.                                             (delete "ENVARC:APlayer/APlayer.arexx")
  1563.                                             (rename "ENVARC:APlayer/APlayer2.0.prefs" "ENVARC:APlayer/APlayer.prefs")
  1564.                                             (rename "ENVARC:APlayer/APlayer2.0.win" "ENVARC:APlayer/APlayer.win")
  1565.                                         )
  1566.                                     )
  1567.                                 )
  1568.                             )
  1569.                         )
  1570.                     )
  1571.                     (delete "ENV:convtxt")
  1572.                 )
  1573.             )
  1574.         )
  1575.     )
  1576.     (
  1577.         (run ("\"%s\" >ENV:convtxt" (tackon sdir "C/PrefFix")))
  1578.     )
  1579.  
  1580.     (complete 100)
  1581.     (delete tempdir)
  1582.  
  1583.     (message "You have to reset your computer before using APlayer.")
  1584. )
  1585.  
  1586. ;--------------------------------------------------------------------------
  1587. ; ** Remove Procedure
  1588.  
  1589. (procedure Remove
  1590.     (if (askbool
  1591.             (prompt "This procedure will remove all files associated to "
  1592.                     "the APlayer program. This means the program, docs, "
  1593.                     "preference files and all extern players.\n\n"
  1594.                     "Are you sure you want to continue?")
  1595.             (help @askbool-help)
  1596.         )
  1597.  
  1598.         (
  1599.             (set @default-dest
  1600.                 (askdir
  1601.                     (prompt "Select where the \"APlayer\" drawer are "
  1602.                             "stored.")
  1603.                     (help @askdir-help)
  1604.                     (default @default-dest)
  1605.                 )
  1606.             )
  1607.  
  1608.             (working "Deleting the \"APlayer\" drawer...")
  1609.             (set ddir (tackon @default-dest "APlayer"))
  1610.  
  1611.             (set deldir (tackon ddir "Data"))
  1612.             (DeleteAll)
  1613.  
  1614.             (set deldir (tackon ddir "ARexx/IR_Scripts"))
  1615.             (DeleteAll)
  1616.             (set deldir (tackon ddir "ARexx"))
  1617.             (DeleteAll)
  1618.  
  1619.             (set deldir (tackon ddir "Bonus"))
  1620.             (DeleteAll)
  1621.  
  1622.             (set deldir (tackon ddir "Docs"))
  1623.             (DeleteAll)
  1624.  
  1625.             (set deldir (tackon ddir "Developer/Examples"))
  1626.             (DeleteAll)
  1627.             (set deldir (tackon ddir "Developer/Include3.0/Own"))
  1628.             (DeleteAll)
  1629.             (set deldir (tackon ddir "Developer/Include3.0"))
  1630.             (DeleteAll)
  1631.             (set deldir (tackon ddir "Developer/Rexxtools/Doc"))
  1632.             (DeleteAll)
  1633.             (set deldir (tackon ddir "Developer/Rexxtools/FD"))
  1634.             (DeleteAll)
  1635.             (set deldir (tackon ddir "Developer/Rexxtools/Include/CLib"))
  1636.             (DeleteAll)
  1637.             (set deldir (tackon ddir "Developer/Rexxtools/Include/Libraries"))
  1638.             (DeleteAll)
  1639.             (set deldir (tackon ddir "Developer/Rexxtools/Include/Pragmas"))
  1640.             (DeleteAll)
  1641.             (set deldir (tackon ddir "Developer/Rexxtools/Include/Proto"))
  1642.             (DeleteAll)
  1643.             (set deldir (tackon ddir "Developer/Rexxtools/Include"))
  1644.             (DeleteAll)
  1645.             (set deldir (tackon ddir "Developer/Rexxtools/Libs"))
  1646.             (DeleteAll)
  1647.             (set deldir (tackon ddir "Developer/Rexxtools"))
  1648.             (DeleteAll)
  1649.             (set deldir (tackon ddir "Developer"))
  1650.             (DeleteAll)
  1651.  
  1652.             (set deldir ddir)
  1653.             (DeleteAll)
  1654.  
  1655.             (delete ddir)
  1656.             (delete (tackon @default-dest "APlayer.info"))
  1657.  
  1658.             (delete "S:APlayer.FSS")
  1659.             (complete 20)
  1660.  
  1661.  
  1662.             (working "Deleting preference files...")
  1663.             (set ddir "ENVARC:APlayer")
  1664.             (set deldir (tackon ddir "Players"))
  1665.             (DeleteAll)
  1666.             (set deldir (tackon ddir "NotePlayers"))
  1667.             (DeleteAll)
  1668.             (set deldir (tackon ddir "Agents"))
  1669.             (DeleteAll)
  1670.             (set deldir ddir)
  1671.             (DeleteAll)
  1672.             (delete "ENVARC:APlayer")
  1673.             (complete 40)
  1674.  
  1675.             (working "Deleting external Agents...")
  1676.             (set deldir "LIBS:APlayer/Agents/MSSModules")
  1677.             (DeleteAll)
  1678.             (set deldir "LIBS:APlayer/Agents")
  1679.             (DeleteAll)
  1680.             (delete "LIBS:APlayer/Agents")
  1681.             (complete 60)
  1682.  
  1683.             (working "Deleting external NotePlayers...")
  1684.             (set deldir "LIBS:APlayer/NotePlayers")
  1685.             (DeleteAll)
  1686.             (delete "LIBS:APlayer/NotePlayers")
  1687.             (complete 80)
  1688.  
  1689.             (working "Deleting external players...")
  1690.             (set deldir "LIBS:APlayer")
  1691.             (DeleteAll)
  1692.             (delete "LIBS:APlayer")
  1693.             (complete 100)
  1694.         )
  1695.     )
  1696. )
  1697.  
  1698. ;--------------------------------------------------------------------------
  1699. ; ** Main Stript
  1700.  
  1701. (complete 0)
  1702. (set sdir (pathonly @icon))
  1703.  
  1704. (if (< (/ (getversion) 65536) 37)
  1705.     (abort "You must have Kickstart 2.0 or greater to use this installation"
  1706.            " utility and to run \"Accessible Player\".")
  1707. )
  1708.  
  1709. (message "This installer script will help you to install/remove "
  1710.          "\"Accessible Player\" to/from your hard disk.\n"
  1711.          "If you don't own one, abort immediately.")
  1712.  
  1713. (welcome)
  1714.  
  1715. ; ** Ask to Install Or Remove
  1716.  
  1717. (set askflag (askbool
  1718.                 (prompt "Do you want to install or remove "
  1719.                         "\"Accessible Player\"?")
  1720.                 (help "")
  1721.                 (choices "Install" "Remove")
  1722.              )
  1723. )
  1724.  
  1725. (if askflag
  1726.     (Install)                       ;Start Install Procedure
  1727.     (Remove)                        ;Start Remove Procedure
  1728. )
  1729.