home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1990-11-07 | 3.7 KB | 130 lines |
- ' RAMOS1.2 Installation Program
- '
- ' By P.J.Hickman & R. Vanner
- '
- ' 1/2 Meg users please read this message:
- '
- ' Run this program alone, without loading any other accessories or
- ' programs beforehand.
- '
- ' Note: Only uses Df0:
- '
- ' When the program refers to 'AMOS:' it means a copy of your disc master
- ' labeled "AMOS Program Disc", when it refers to 'AMOS 1.2 Update!'
- ' the program wants the updater disc.
- '
- ' Have fun and read my new AMOS column in AMIGA Computing.
- '
- Default
- Screen Close 0 : Close Editor
- SET_UP_SCREEN
- Dim FILE$(6)
- Global DISC$,FOLDER$,FILE$(),NAME$
- Restore C0PY_DATA : Cls 0
- Centre At(,2)+Border$("RAMOS1.2 installer V.1",2)
- Centre At(,5)+Border$("I hope you have a freshly formatted disc for me!",1)
- Centre At(,9)+Border$("Press any key to start",1) : Clear Key : Wait Key : Cls 0
- NIN=1
- Repeat
- Read DISC$
- If DISC$<>"-1"
- Read NAME$,FOLDER$
- TEMP$="Df0:"+Left$(FOLDER$,Len(FOLDER$)-1)
- If NIN=1
- PAUSE_FOR_USER
- End If
- NIN=0
- If Not Exist(TEMP$)
- Mkdir TEMP$
- End If
- Read TIME
- For LOP=1 To TIME
- Read FILE$(LOP) : FILE_READ[FOLDER$+FILE$(LOP),LOP+5]
- Next LOP
- PAUSE_FOR_USER
- For LOP=1 To TIME : FILE_WRITE[FOLDER$+FILE$(LOP),LOP+5]
- Next LOP
- End If
- Until DISC$="-1"
- Cls 0 : Centre At(,5)+Border$("Writing Startup-Sequence.......",2)
- If Not Exist("Df0:s/")
- Mkdir "Df0:s"
- End If
- '
- DISC$="AMOS 1.2 Update!:"
- FILE_READ["RAMOS_startup",5]
- PAUSE_FOR_USER
- FILE_WRITE["s/startup-sequence",5]
- '
- Wait 10 : Cls 0
- Centre At(,2)+"Now go to the CLI and INSTALL your disc."
- Centre At(,5)+"Remember when saving your program on this disc"
- Centre At(,9)+"to call it AUTOEXEC.AMOS"
- Clear Key
- Wait Key
- Default
- End
- Procedure SET_UP_SCREEN
- Screen Open 0,640,100,2,Hires
- Flash Off : Curs Off : Cls 0 : Hide On
- Palette 0,$FFF
- Paper 0
- End Proc
- Procedure FILE_READ[SOURCE$,BANK]
- PAUSE_FOR_DISC[DISC$]
- Open In 1,DISC$+SOURCE$
- L=Lof(1)
- Close
- Reserve As Work BANK,L
- Cls 0
- Centre At(,5)+"READING FILE '"+DISC$+SOURCE$+"'"
- Bload DISC$+SOURCE$,Start(BANK)
- End Proc
- Procedure FILE_WRITE[SOURCE$,BANK]
- Cls 0
- Centre At(,5)+"WRITING FILE 'DF0:"+SOURCE$+"'"
- Bsave "Df0:"+SOURCE$,Start(BANK) To Start(BANK)+Length(BANK)
- Erase BANK
- End Proc
- Procedure PAUSE_FOR_DISC[D$]
- While Not Exist(D$)
- Boom
- Cls 0
- Centre At(,5)+Border$("Insert the "+NAME$+" disc into Df0:",2)
- Repeat
- Until Exist(D$)
- Clear Key
- Wend
- End Proc
- Procedure PAUSE_FOR_USER
- Bell
- Cls 0
- Centre At(,5)+Border$("Insert your OWN disc into Df0:",2)
- Centre At(,9)+Border$("Press any key when ready",2)
- Clear Key
- Repeat
- WATING:
- If Exist("AMOS:") or Exist("AMOS 1.2 Update!:") Then Goto WATING
- Until Exist("Df0:") and(Inkey$<>"" or Mouse Click)
- Clear Key
- End Proc
- 'Disc, folder, amount of proggies to copy
- C0PY_DATA:
- Data "AMOS:","AMOS Programs disc","AMOS_System/",6
- Data "Compact","Default.Font","Default.Key","Mouse.Abk","Music","Request"
- Data "AMOS:","AMOS Programs disc","c/",2
- Data "DiskChange","Mount"
- Data "AMOS:","AMOS Programs disc","devs/",5
- Data "Narrator.Device","Parallel.Device","Printer.Device","Serial.Device","System-Configuration"
- Data "AMOS:","AMOS Programs disc","libs/",5
- Data "Diskfont.Library","Icon.Library","Mathieeedoubbas.Library","Mathtrans.Library","Translator.Library"
- Data "AMOS:","AMOS Programs disc","l/",4
- Data "Disk-Validator","Fastfilesystem","Port-Handler","Speak-Handler"
- Data "AMOS 1.2 Update!:","AMOS Updater disc","c/",2
- Data "Run"
- Data "ENDCLI"
- Data "AMOS 1.2 Update!:","AMOS Updater disc","AMOS_System/",1
- Data "RAMOS1_2.Env"
- Data "AMOS 1.2 Update!:","AMOS Updater disc","",1
- Data "RAMOS1.2"
- Data "-1"