;Installer Script v1.0 by Clive Gardner 02/10/93
;Installer Script v1.1 by Clive Gardner 24/07/94
;Installer Script v1.1b by Clive Gardner 25/07/94 (for AMOS_Extensions)

(set cp "AMOS_Extensions:Extensions/")
(set @default-dest "RAM DISK:")

(complete 10)
(set opts
    (askoptions
        (prompt
            "AMOS Extension Un-Archiver\n"
            "Please select the extensions you would like "
            "un-archived from the list below.")
            (choices "AMOS Opal Extension" "Easy Life Extension" 
                     "JD Lib Extension" "LDos Extension" "LSerial Extension"
                     "Stars Extension" "Turbo Extension")
            (default 0)
(help "\nOn this screen you can select which extensions you would like to be "
"un-archived to the path you will specify in a moment.  You can select any "
"number of the listed extensions. Obviously please keep in mind how much space "
"you have available. To select an extension simply click on the check box "
"beside it. When selected it will display a tick. When you have completed your " 
"selection please click on the PROCEED button.")
               )
         )
(complete 20)
(set path
(askdir
(prompt ("Please set the path into which you would like your chosen extensions to be un-archived.")
(help ("\nYou must now set the path where you would like your selected extensions un-archived to.\n\nYou must select the path using the file requester, but DO NOT select a file, simply click PROCEED when the requester displays your chosen directory.")
(default "RAM DISK:")
)
)
)
)
(makeassign "EXTN" (path))
(Complete 30)
(message "The location you selected for your chosen extensions to be un-archived to was:\n\n"path)
(working)
(If (BITAND opts 1)
(run (":c/lha x AMOS_Extensions:Extensions/AMOSOPAL.LHA EXTN:"))
)
(complete 40)
(If (BITAND opts 2)
(run (":c/lha x AMOS_Extensions:Extensions/EASYLIFE.LHA EXTN:"))
)
(complete 50)
(If (BITAND opts 4)
(run (":c/lha x AMOS_Extensions:Extensions/JD_LIB4_6.LHA EXTN:"))
)
(complete 60)
(If (BITAND opts 8)
(run (":c/lha x AMOS_Extensions:Extensions/LDOSV25D.LHA EXTN:"))
)
(complete 70)
(If (BITAND opts 16)
(run (":c/lha x AMOS_Extensions:Extensions/LSERV25D.LHA EXTN:"))
)
(complete 80)
(If (BITAND opts 32)
(run (":c/lha x AMOS_Extensions:Extensions/STARS.LHA EXTN:"))
)
(complete 90)
(If (BITAND opts 64)
(run (":c/lha x AMOS_Extensions:Extensions/TURBO19.LHA EXTN:"))
)
(Complete 100)
