home *** CD-ROM | disk | FTP | other *** search
- ; Script to install Directory Opus Magellan version
- ;
- ; Directory Opus Install Version $VER: Install-Opus 60 (11.05.97)
- ; COPYRIGHT ©1996 GP SOFTWARE, AUSTRALIA
- ; note uses Opus<Alt-Shift>5
- ; now installs new catalogs if they are on the disk.
-
-
-
- (complete 0)
-
- ;
- ;check user has Dos 2
- ;
-
- (set #DOSTYPE (/ (getversion) 65536))
- (if
- (NOT (>= #DOSTYPE 37))
- (abort "Directory Opus 5 requires AmigaDOS 2.04 or higher."
- " If you have an earlier version of AmigaDOS you must purchase an upgrade before using Opus 5.")
- )
-
-
- (set @default-dest "work:")
-
- (set #Dopus_prog "DOpus5:DirectoryOpus")
- (set #DName "Opus_Magellan_Install")
- (set #Disk_Name (cat #DName ":"))
- (set #CatalogFiles "CatFiles.lha")
-
-
- (set #Go "Proceed")
- (set #Skip "Skip this part")
-
-
- ;
- ; Procedure signal
- ; incase Opus is re-installed. The notification on the modules
- ; directory can cause problems so signal Opus to turn off notifications
-
- (procedure signal_opus
-
- (get_disk)
- (set #Sigs (tackon #Disk_Name "dopusmsg"))
- (if (exists #Sigs (noreq))
- (run (cat #Sigs " DOPUS.1 \"command set notify off\""))
- )
- )
-
-
- ;
- ; Procedure get_lhex
- ;
-
-
- (procedure get_lhex
-
- (if ( = (exists "ram:lhex" (noreq)) 0)
- (
- (get_disk)
- (working #Title_msg
- "Reading the Install disk for Directory Opus files.")
- (copyfiles (source (tackon #Disk_Name "lhex")) (dest "ram:"))
- )
- )
- )
-
- ;
- ; Procedure get_disk
- ; get the correct disk for a program
- ;
-
- (procedure get_disk
-
- (askdisk
- (prompt #Title_msg
- "\nPlease insert the disk labeled \""#DName"\".")
- (help "Insert this disk in a floppy drive to continue the installation.")
- (assigns)
- (dest #DName)
- )
- )
-
-
- ;
- ; Procedure install_core
- ; install the program files and new bits
- ; MUST HAVE A VALID DOPUSDEST ;
-
- (procedure install_core
-
- (set #Title_msg "Directory Opus 5.5 Magellan Update.\n\n")
-
- (message #Title_msg
- "This procedure will update your existing version of"
- " Directory Opus 5.5 to the Opus 5 Magellan version.\n\n"
- "You MUST have installed Opus 5.5 before"
- " attempting this procedure.\n\n"
- "When finished, you will need to reboot your Amiga and"
- " RE-SERIALISE the new version with your\n"
- " registration No from your ORIGINAL OPUS 5.5.\n\n"
- " If you do not have this available,"
- " look in the About Request of Opus NOW and write"
- " down the details!\n\n")
-
-
- (if (exists #Dopus_prog (noreq))
- (
- (set #Vernum (getversion #Dopus_prog))
- (set #Dop_ver (/ #Vernum 65536))
- (set #Dop_rev (- #Vernum (* #Dop_ver 65536) ) )
- )
- )
-
- (if (OR (<> #dop_ver 5 ) (<> #dop_rev 5 ))
- (
- (message
- "Sorry, your version of DirectoryOpus is INCORRECT\n\n"
- "DirectoryOpus version is "#dop_ver"."#dop_rev".\n\n"
- "This upgrade will NOT WORK for your version and will"
- " corrupt your Opus 5 installation.\n\n"
- " You MUST upgrade to version 5.5 BEFORE you using"
- " this Magellan upgrade!\n")
-
-
- (delete "ram:lhex")
- (exit "Instalation terminated!")
- )
-
- ); else
- (if (
- (get_disk)
- (get_lhex)
- (if (> (+ (database "total-mem")) 1000000)
- (
- (working #Title_msg
- "Copying Files.")
- (copyfiles (source (tackon #Disk_Name "CoreMagellan.lha")) (dest "ram:"))
- (set #SRC "ram:")
- )
- (set #SRC #Disk_Name)
- )
- (working #Title_msg
- "Dearchiving and installing the main program components.\n\n"
- "This will take a minute or so....")
-
- (run (cat "ram:lhex >NIL: <NIL: -qfw=DOpus5: x "#SRC"CoreMagellan.lha "))
- (delete "ram:CoreMagellan.lha" (safe))
-
- (complete 90)
-
- ;
- ; install non-english catalogs
- ;
- (if (exists (tackon #Disk_Name #CatalogFiles) (noreq))
- (run (cat "ram:lhex >NIL: <NIL: -qfw=DOpus5: x "#Disk_Name #CatalogFiles))
- )
-
- (complete 95)
-
- ;
- ; tidyup
- ;
- ; make sure update module is re-initialised
-
- (run "C:Delete DOpus5:system/update-history FORCE")
-
-
- ;Install the other bits
-
-
- (copyfiles
- (source (tackon #Disk_Name "ReadMe_Magellan"))
- (dest "DOpus5:")
- (infos)
- (files)
- )
- )
- )
- )
-
-
-
- (procedure install_complete
-
- (signal_opus)
- (install_core)
- )
-
-
- ;
- ; Real not procedure at last! ;
- ;
-
-
- (if (
- (set #Title_msg "Directory Opus 5.5 Magellan Installation.\n\n")
- (askchoice
- (prompt #Title_msg
- "Please select one of following:-")
- (help "Update current Opus 5.5 to Magellan version "
- "Updates Opus 5 Magellan on your hard disk\n\n")
- (choices
- "Done" ; 0
- "Update Opus 5 to Magellan ") ; 1
- (default 0)
- )
-
- )
- (
- (install_complete)
- (message #Title_msg
- "Serialise Directory Opus 5 Magellan\n"
- "---------------------------\n"
-
- "Now the update is completed, please"
- " REBOOT your Amiga and RE-SERIALISE the new"
- " Opus 5 Magellan version with your ORIGINAL"
- " OPUS 5.5 serial number.\n\n"
- " We did tell you to write it down earlier ;-)\n"
- "By the way, if you have not done so, now is"
- " a good time to complete your original"
- " registration card and return it to us."
- " Technical support and warranty will only"
- " be honoured if a valid registration card has"
- " been received.")
-
-
-
- ;
- ;Please please ReadMe
- ;
-
- (if (askbool (prompt #Title_msg
- "All things change including software.\n\n"
- "Any changes are noted in the ReadMe"
- " file on the installation disk.\n\n"
- "Do you wish to read the ReadMe file now?\n\n")
- (help "go on, read it now.")
- )
- (if (> (run "Sys:Utilities/MultiView DOpus5:ReadMe_Magellan") 0)
- (if (> (run "Sys:Utilities/AmigaGuide DOpus5:ReadMe_Magellan") 0)
- (if (> (run "More DOpus5:ReadMe_Magellan") 0)
- (
- (get_disk)
- (run "Opus55_Install:More DOpus5:ReadMe_Magellan")
- )
- )
- )
- )
- )
- )
- )
-
- (complete 100)
-
- (delete "ram:lhex")
- (exit "Directory Opus 5 Magellan Install script finished.")
-
-