home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-07-24 | 33.2 KB | 1,091 lines |
- ; ************************************************
- ; *
- ; * Install-MovieShop
- ; *
- ; * $VER: Install-MovieShop 2.6 (22.7.95)
- ; *
- ; * This is the installation script for VLAB-Motion/MovieShop software.
- ; *
- ; * Copyright © 1994 MS MacroSystem Computer GmbH
- ; * All Rights Reserved
- ; *
- ; * written by Claus Bönnhoff
- ; *
- ; ************************************************
-
- ; ********************************
- ; * Set up some global variables.
- ; ********************************
- ;
-
- (set ProductName "VLab-Motion")
- (set MovieShop "MovieShop")
- (set Toccata "Toccata")
- (set Retina "Retina")
- (set VMInit "VMInit")
- (set ReSel "ReSelection")
- (set Operator "Operator")
-
- (set DISK1 "MovieShop1")
- (set DISK2 "MovieShop2")
-
- (set OSVersion (/ (getversion) 65536))
- (set Locale (exists "libs:locale.library" (noreq)))
- (set TotalFiles 0)
- (set ActualFiles 0)
-
- (set DirPath (@default-dest))
- (set MovieDirPath "")
-
- ; ****************************
- ; * Set up some messages.
- ; ****************************
- ;
-
- (if (patmatch @language "deutsch")
- ; german language
- (
- (set language 2)
- (set MSG_DEVELOPER "Entwickler")
- (set MSG_SELECTPARTS ("Bitte wählen Sie welche Teile der %s Software installiert werden sollen." ProductName))
- (set MSG_SELECTGUIDEPARTS ("Bitte wählen Sie in welchen Sprachen die Online-Hilfe installiert werden soll"))
- (set HLP_SELECTGUIDEPARTS1 (cat ("Die Online-Hilfe wird in deutscher Sprach installiert")))
- (set MSG_GERMAN ("Deutsch"))
- (set HLP_SELECTPARTS1 (cat ("Dieser Teil der Installation läßt Sie entscheiden, welche Teile ")
- ("der %s Software sie auf Ihrer Festplatte installieren möchten.\n" ProductName)
- ("\n")))
- (set HLP_SELECTPARTS2 (cat ("*** %s\n" MovieShop)
- ("Dieser Teil beinhaltet das Hauptprogramm, mit welchem Sie ")
- ("mit der %s Videos aufzeichnen, bearbeiten und " ProductName)
- ("wieder abspielen können.\n")
- ("\n")))
- (set HLP_SELECTPARTS3 (cat ("*** %s\n" Toccata)
- ("Dieser Teil beinhaltet alle notwendigen Programme und Dateien ")
- ("um mit %s gleichzeitig Bild und Ton aufnehmen zu können. \n" MovieShop)
- ("Dies ist aber nur sinnvoll, wenn Sie eine %s besitzen.\n" Toccata)
- ("\n")))
- (set HLP_SELECTPARTS4 (cat ("*** %s\n" Retina)
- ("Dieser Teil beinhaltet alle notwendigen Programme und Dateien ")
- ("um mit %s die Vorteile der Retina-Grafikarte (24Bit Workbench) " MovieShop)
- ("nutzen zu können.\n")
- ("Dies ist aber nur sinnvoll, wenn Sie eine %s-Grafikkarte besitzen.\n" Retina)
- ("\n")))
- (set HLP_SELECTPARTS6 (cat ("*** %s\n" VMInit)
- ("Dieses Programm ermöglicht es Ihnen die VLab-Motion sofort nach dem Start ")
- ("oder einem Reset des Rechners so zu initialisieren, daß sie das anliegende ")
- ("Videosignal durchschleift. Es empfiehlt sich das Programm direkt in den ")
- ("WBStartup-Ordner zu installieren, damit die VLab-Motion immer nach dem Starten ")
- ("Ihres Rechners initialisiert ist.\n")
- ("Wie sie das Programm starten entnehmen sie bitte dem Handbuch.\n")
- ("\n")))
- (set HLP_SELECTPARTS7 (cat ("*** %s\n" ReSel)
- ("Dieses kleine Programm ermöglicht es Ihnen zu unterbinden, daß während Ihre Festplatte ")
- ("einen Datenstrom schreibt sie durch einen anderen Schreibzugriff unterbrochen wird.\n")
- ("Dadurch ist es der VLab-Motion möglich kontinuirlicher auf die Festplatte ")
- ("zuzugreifen und es werden höhere Datenraten und damit Bildqualitäten erreicht. ")
- ("Wie sie das Programm starten entnehmen sie bitte dem Handbuch.\n")
- ("\n")))
- (set HLP_SELECTPARTS8 (cat ("*** Online-Hilfe\n")
- ("Dieser Teil installiert alle notwendigen Dateien für die Amigaguide Online-Hilfe \n")
- ("\n")))
- (set HLP_SELECTPARTS9 (cat ("*** %s\n" Operator)
- ("Dieser Teil installiert die Effekt-Operatoren, die Sie benötigen, um")
- ("mit MovieShop digitale Effekte machen zu können.")
- ("\n")))
- (set HLP_SETDIRPATH (cat "Wenn Sie mit dem Installer ein Verzeichnis anlegen, ist es "
- ("sehr sinnvoll, daß sie in den Namen kein Leerzeichen einfügen. ")
- ("Dieses erleichtert den späteren Umgang, besonders beim Arbeiten ")
- ("in der Shell und mit AREXX.\n")))
- (set HLP_COPYLIB ("Wenn bereits eine Library mit diesem Namen besteht, so wird"
- "diese nur überschrieben, wenn sie eine ältere Version ist.\n"))
- (set MSG_FALSEOSVERSION ("%s benötigt unbedingt AmigaOS 2.04 oder höher.\n" MovieShop))
- (set MSG_MOVIESHOPPATH "Geben Sie bitte das Zielverzeichnis für MovieShop an...")
- (set MSG_RETINAPATH "Geben Sie bitte das Zielverzeichnis für die Retina Hilfsprogramme an...")
- (set MSG_MACROPATH "Geben Sie bitte das Zielverzeichnis für die MovieShop Macro Datei an...")
- (set MSG_VMINITPATH "Geben Sie bitte das Zielverzeichnis für das VMInit-Programm an...")
- (set MSG_RESELPATH "Geben Sie bitte das Zielverzeichnis für das ReSelection-Programm an...")
- (set MSG_DEVELOPERPATH "Geben Sie bitte das Zielverzeichnis für die VLab-Motion Entwickler Dateien an...")
- (set MSG_OPERATORPATH "Geben Sie bitte das Zielverzeichnis für die VLab-Motion Effekt-Operatoren an...")
- (set MSG_GETMOVIESHOPDISK1 (cat ("Bitte legen Sie die Diskette mit dem Namen \"") (DISK1) (":\" in ein beliebiges Laufwerk")))
- (Set HLP_GETMOVIESHOPDISK1 (cat MSG_GETMOVIESHOPDISK1 "\nIch benötige diese Diskette, um die Installation vornehmen zu können!\n"))
- (set MSG_GETMOVIESHOPDISK2 (cat ("Bitte legen Sie die Diskette mit dem Namen \"")(DISK2)(":\" in ein beliebiges Laufwerk")))
- (Set HLP_GETMOVIESHOPDISK2 (cat MSG_GETMOVIESHOPDISK2 "\nIch benötige diese Diskette, um die Installation vornehmen zu können!\n"))
- (set MSG_COPYLIB "Kopiere Library %s nach %s...")
- (set HLP_COPYLIB "MovieShop benötigt diese Library um richtig arbeiten zu können.\n")
- (set MSG_COPYFILE "Kopiere Datei %s nach %s...")
- (set HLP_COPYFILE "MovieShop benötigt diese Datei um richtig arbeiten zu können\n")
- (set MSG_INSTALLVMINIT "Wollen sie, daß das Programm VMInit auch in Ihre WBStartup kopiert wird ?")
- (set HLP_INSTALLVMINIT (cat "Wenn Sie das Programm VMInit auch in Ihre WBStartup kopieren lassen, dann "
- ("ist die VLab-Motion nach dem Starten Ihreres Rechners sofort initialisiert.\n")
- ("\n")))
- (set MSG_ONLINEHELP "Online-Hilfe")
- (set MSG_MOVIESHOPHELPPATH "Bitte geben Sie das Verzeichnis an, in welchem sich das MovieShop Programm befindet")
-
- )
- ; default language
- (
- (set language 4)
- (set MSG_DEVELOPER "Developer")
- (set MSG_SELECTPARTS ("Select the parts of the %s package you want to install at this time." ProductName))
- (set MSG_SELECTGUIDEPARTS ("Select the language for the online help you want to install at this time."))
- (set HLP_SELECTGUIDEPARTS1 ("the online help will be installed in german language"))
- (set MSG_GERMAN ("German"))
- (set HLP_SELECTPARTS1 (cat ("This part of the installation lets you select the parts of the MovieShop ")
- ("package you want to install at this time.\n")
- ("\n")))
- (set HLP_SELECTPARTS2 (cat ("*** %s\n" MovieShop)
- ("This option lets you install the MovieShop program. With this program ")
- ("you will do the main work on your VLab-Motion. It is an non linear video ")
- ("and audio editing system.\n")
- ("\n")))
- (set HLP_SELECTPARTS3 (cat ("*** %s\n" Toccata)
- ("This option lets you install the new Toccata tools which are required ")
- ("if you want to edit video and audio simultaniosly.\n")
- ("This is only useful if you own a Toccata stereo audio digitizer card.\n")
- ("\n")))
- (set HLP_SELECTPARTS4 (cat ("*** %s\n" Retina)
- ("This option lets you install the new Retina libraries which are required ")
- ("if you want to run MovieShop on an 16 or 24 bit deep Screen.\n")
- ("This is only useful if you own a Retina grafic accelerator card.\n")
- ("\n")))
- (set HLP_SELECTPARTS6 (cat ("*** %s\n" VMInit)
- ("This program lets you initialize the VLab-Motion hardware without starting ")
- ("the MovieShop program. It is useful to copy this to your WBStartup drawer, so ")
- ("the VLab-Motion will be initialized every time you startup your computer.\n")
- ("For information about starting this programm please refer to your manual.\n")
- ("\n")))
- (set HLP_SELECTPARTS7 (cat ("*** %s\n" ReSel)
- ("This little utility lets you disable the reselection of your hardrive. ")
- ("Doing this, the VLab-Motion will have faster access to the drive and this will ")
- ("increase your video quality.\n")
- ("For information about starting this programm please refer to your manual.\n")
- ("\n")))
- (set HLP_SELECTPARTS8 (cat ("*** Online-Help\n")
- ("This option lets you install all needed files for the Amigaguide online help. \n")
- ("\n")))
- (set HLP_SELECTPARTS9 (cat ("*** %s\n" Operator)
- ("This option lets you install all the effect operator you need to")
- ("to make digital effects with MovieShop")
- ("\n")))
- (set HLP_SETDIRPATH (cat "NOTE: If you will using the Installer program's "
- ("function to create a new directory using \"Make New Drawer...\"")
- ("it is highly recommended that you DO NOT include ")
- ("spaces in the drawer name. Following this advice ")
- ("will avoid any problems accessing the directory, ")
- ("especially from ARexx scripts.\n\n")))
- (set HLP_COPYLIB (cat "If you already have a copy of this library in the selected destination directory, the library "
- ("included on the distribution disk will be compared to the one you ")
- ("already have. If your current library is an old version, the newer ")
- ("version will be installed.\n")))
- (set MSG_FALSEOSVERSION (cat ("\%s version %s requires at least AmigaOS 2.04 to run.\n" ProductName VersionNum)
- ("\n")
- ("Press the Proceed button to stop the installation procedure.\n")))
- (set MSG_MOVIESHOPPATH ("Please select the directory for the MovieShop program..."))
- (set MSG_RETINAPATH ("Please select the directory for the Retina Utilities..."))
- (set MSG_VMINITPATH ("Please select the directory for the VMInit program ..."))
- (set MSG_RESELPATH ("Please select the directory for the ReSelection program..."))
- (set MSG_DEVELOPERPATH ("Please select the directory for the VLab-Motion developer files..."))
- (set MSG_OPERATORPATH ("Please select the directory for the VLab-Motion operator files..."))
- (set MSG_GETMOVIESHOPDISK1 (cat ("Please insert disk \"")(DISK1)(":\" in any drive...")))
- (set HLP_GETMOVIESHOPDISK1 (cat (MSG_GETMOVIESHOPDISK1) "\nI need this disk to completly install your programs.\n"))
- (set MSG_GETMOVIESHOPDISK2 (cat ("Please insert disk \"")(DISK2)(":\" in any drive...")))
- (set HLP_GETMOVIESHOPDISK2 (cat MSG_GETMOVIESHOPDISK2"\nI need this disk to completly install your programs.\n"))
- (set MSG_COPYLIB "Copying library %s to %s...")
- (set HLP_COPYLIB "MovieShop needs this library.\n")
- (set MSG_COPYFILE "Copying file %s to %s...")
- (set HLP_COPYFILE "MovieShop needs this file.\n")
- (set MSG_INSTALLVMINIT "Do you want VMInit to be installed in your WBStartup ?")
- (set HLP_INSTALLVMINIT (cat "If you install VMInit in your WBStartup, the VLab-Motion is initialized"
- ("directly after starting your computer.")
- ("\n")))
- (set MSG_ONLINEHELP "Online-Help")
- (set MSG_MOVIESHOPHELPPATH "Please select the drawer which contains your MovieShop software.")
- )
- )
-
- (procedure ChooseParts
- ;
- ; ****************************
- ; * Ask the user which parts of the package should be installed.
- ; ****************************
- ;
- (
- (set Parts
- (askoptions
- (prompt
- (MSG_SELECTPARTS)
- )
- (help
- (HLP_SELECTPARTS1)
- (HLP_SELECTPARTS9)
- (HLP_SELECTPARTS2)
- (HLP_SELECTPARTS3)
- (HLP_SELECTPARTS4)
- (HLP_SELECTPARTS6)
- (HLP_SELECTPARTS7)
- (HLP_SELECTPARTS8)
- @askoptions-help
- )
- (default (+ 51 64))
- (choices
- ; bit position 0 -- todo & 1
- ;
- ("%s" MovieShop)
-
- ; bit position 1 -- todo & 2
- ;
- ("%s" Operator)
-
- ; bit position 1 -- todo & 4
- ;
- ("%s" Toccata)
-
- ; bit position 2 -- todo & 8
- ;
- ("%s" Retina)
-
- ; bit position 3 -- todo & 16
- ;
- ("%s" VMInit)
-
- ; bit position 4 -- todo & 32
- ;
- ("%s" ReSel)
-
- ; bit position 5 -- todo & 64
- ;
- ("%s" MSG_ONLINEHELP)
- )
- )
- )
- )
- )
-
- (procedure SetDirPath
-
- ; ****************************
- ; * Ask the user for a directory name.
- ; ****************************
- ;
- ; these variables must be defined before calling this procedure:
- ;
- ; DirPathTitle
- ; DirPathHelp
- ; DirPath
- ;
- ; this procedure returns the selected directory in DirPath
-
- (if (= (exists DirPath) 0)
- (
- (set DirPath
- (askdir
- (prompt DirPathTitle)
- (help DirPathHelp @askdir-help)
- (newpath DirPath)
- (default DirPath)
- )
- )
- )
- (
- (set DirPath
- (askdir
- (prompt DirPathTitle)
- (help DirPathHelp @askdir-help)
- (default DirPath)
- )
- )
- )
- )
- (if (= (exists DirPath) 0)
- (makedir DirPath)
- (set moveon TRUE)
- )
- )
-
- (procedure CopyLibFile
-
- ; ****************************
- ; * Copy the specific library file to the LIBS: directory.
- ; ****************************
- ;
- ; these variables must be defined before calling this procedure:
- ;
- ; CopyLibFileName
- ; CopyLibFilePath
- ; DirPath
-
-
- ;
- ; workaround for bug in copylib
- ;
-
- (if (= (exists (tackon "Libs:" CopyLibFileName)) 1)
- (
- (set vernum (getversion (tackon "Libs:" CopyLibFileName)))
- (set ver1 (/ vernum 65536))
- (set rev1 (- vernum (* ver1 65536)))
-
- (set vernum (getversion (tackon CopyLibFilePath CopyLibFileName)))
- (set ver2 (/ vernum 65536))
- (set rev2 (- vernum (* ver2 65536)))
- )
- (
- (set ver1 0)
- (set rev1 0)
- (set ver2 1)
- (set rev2 1)
- )
- )
-
- (set doit 0)
- (if (< ver1 ver2)
- (
- (set doit 1)
- )
- (
- (if (= ver1 ver2)
- (
- (if (< rev1 rev2)
- (
- (set doit 1)
- )
- )
- )
- )
- )
- )
-
- (if (= doit 1)
- (
- (if (= (exists (tackon DirPath CopyLibFileName)) 1)
- (
- (protect (tackon DirPath CopyLibFileName) "+rwed")
- )
- )
- (copylib
- (prompt (MSG_COPYLIB CopyLibFileName DirPath))
- (help MSG_COPYLIB @copylib-help)
- (source (tackon CopyLibFilePath CopyLibFileName))
- (dest DirPath)
- (confirm)
- )
- )
- )
- )
-
- (procedure IncrementMeter
- ;
- ; ****************************
- ; * Set the Percent indicator.
- ; ****************************
- ;
- ; AddToMeter
-
- (
- (set PctDone (/ (* ActualFiles 100) TotalFiles))
- (set ActualFiles (+ ActualFiles AddToMeter))
- (complete PctDone)
- )
- )
-
-
- (procedure InstallMovieShop
- ;
- ; ****************************
- ; * Install all MovieShop files
- ; ****************************
- ;
-
- (set existsrc (getassign DISK1 "v"))
- (if (= existsrc "")
- (askdisk (prompt MSG_GETMOVIESHOPDISK1)
- (help HLP_GETMOVIESHOPDISK1 @askdisk-help)
- (dest DISK1)
- )
- )
-
- (Set DirPath (tackon @default-dest "MovieShop"))
- (Set DirPathTitle MSG_MOVIESHOPPATH)
- (Set DirPathHelp HLP_SETDIRPATH)
- (SetDirPath)
- (set @default-dest (DirPath))
-
- (set MovieDirPath (DirPath))
-
- (set AddToMeter 1)
- (IncrementMeter)
-
- (if (= Locale 1)
- (
- ;
- ; locale is installed
- ;
- (if (= language 2)
- ;
- ; german language
- ;
- (if (= (exists "Locale:Catalogs/deutsch") 2)
- (
- (copyfiles
- (prompt (MSG_COPYFILE "movieshop.catalog" "Locale:catalogs/deutsch/"))
- (help MSG_COPYFILE @copyfiles-help)
- (source (cat (DISK1)(":MovieShop/movieshop.catalog")))
- (dest "Locale:Catalogs/deutsch")
- (files)
- (optional fail force)
- )
- )
- (
- (copyfiles
- (prompt (MSG_COPYFILE "movieshop.catalog" DirPath))
- (help MSG_COPYFILE @copyfiles-help)
- (source (cat(DISK1)(":MovieShop/movieshop.catalog")))
- (dest DirPath)
- (files)
- (optional fail force)
- )
- )
- )
- )
- )
- (
- (if (= language 2)
- (
- ;
- ; minloc.library will be installed
- ;
- (copyfiles
- (prompt (MSG_COPYFILE movieshop.catalog DirPath))
- (help MSG_COPYFILE @copyfiles-help)
- (source (cat (DISK1) (":MovieShop/movieshop.catalog")))
- (dest DirPath)
- (files)
- (optional fail force)
- )
- (set OldDirPath DirPath)
- (set DirPath "Libs:")
- (set CopyLibFilePath (cat(DISK1)(":MovieShop" DISK1)))
- (set CopyLibFileName "minloc.library")
- (CopyLibFile)
- (set DirPath OldDirPath)
- (textfile (prompt MSG_CreateMLL)
- (help HLP_CreateMLL)
- (dest "ENVARC:MINLOCLANGUAGE")
- (append "deutsch\n")
- )
- )
- )
- )
- )
-
- (set AddToMeter 2)
- (IncrementMeter)
-
- ;
- ; install main Programm
- ;
-
- (copyfiles
- (prompt (MSG_COPYFILE "MovieShop" DirPath))
- (help MSG_COPYFILE @copyfiles-help)
- (source (cat (DISK1)(":MovieShop/MovieShop" DISK1)))
- (dest DirPath)
- (infos)
- (files)
- (optional fail force)
- )
-
- (set AddToMeter 1)
- (IncrementMeter)
-
- ;
- ; install VJPEG
- ;
-
- (copyfiles
- (prompt (MSG_COPYFILE "vjpeg" DirPath))
- (help MSG_COPYFILE @copyfiles-help)
- (source (cat (DISK1)(":MovieShop/vjpeg")))
- (dest DirPath)
- (files)
- (optional fail force)
- )
-
- (set AddToMeter 1)
- (IncrementMeter)
-
- ;
- ; install autoupdate
- ;
-
-
- (if (= (exists (cat (DISK1)(":MovieShop/MovieShop.autoupdate"))) 1)
- (
- (copyfiles
- (prompt (MSG_COPYFILE "MovieShop.autoupdate" DirPath))
- (help MSG_COPYFILE @copyfiles-help)
- (source (cat (DISK1)(":MovieShop/MovieShop.autoupdate")))
- (dest DirPath)
- (files)
- (optional fail force)
- )
- )
- )
-
- (set AddToMeter 1)
- (IncrementMeter)
-
- ;
- ; make all needed drawers
- ;
-
- (makedir (tackon DirPath "Macros"))
-
- ;
- ; install Macros
- ;
-
- (copyfiles
- (prompt (MSG_COPYFILE "Macros" (tackon DirPath "Macros")))
- (help MSG_COPYFILE @copyfiles-help)
- (source (cat (DISK1)(":Macros/")))
- (pattern "#?")
- (dest (tackon DirPath "Macros"))
- (files)
- (optional fail force)
- )
-
- (set AddToMeter 1)
- (IncrementMeter)
-
- ;
- ; install default prefs
- ;
-
- (makedir "ENVARC:MovieShop")
-
- (if (= (exists "ENVARC:MovieShop/MovieShop.prefs") 0)
- (
- (copyfiles
- (prompt (MSG_COPYFILE "movieshop.prefs" "ENVARC:MovieShop/"))
- (help MSG_COPYFILE @copyfiles-help)
- (source (cat (DISK1)(":MovieShop/MovieShop.prefs")))
- (dest "ENVARC:MovieShop/")
- (files)
- (optional fail force)
- )
- (if (= (exists "ENV:MovieShop") 0)
- (
- (makedir ("ENV:MovieShop"))
- )
- )
- (copyfiles
- (prompt (MSG_COPYFILE "movieshop.prefs" "ENV:MovieShop/"))
- (help MSG_COPYFILE @copyfiles-help)
- (source (cat (DISK1)(":MovieShop/MovieShop.prefs")))
- (dest "ENV:MovieShop/")
- (files)
- (optional fail force)
- )
- )
- )
-
- (set AddToMeter 1)
- (IncrementMeter)
-
- ;
- ; install macros
- ;
-
- (if (= (exists "ENVARC:MovieShop/MovieShop.macros") 0)
- (
- (copyfiles
- (prompt (MSG_COPYFILE "MovieShop.macros" "ENVARC:MovieShop/"))
- (help MSG_COPYFILE @copyfiles-help)
- (source (cat (DISK1)(":MovieShop/movieshop.macros")))
- (dest ("EnvArc:MovieShop/"))
- (files)
- (optional fail force)
- )
- )
- )
-
- (set AddToMeter 1)
- (IncrementMeter)
-
- ;
- ; install default icons
- ;
-
- (copyfiles
- (prompt (MSG_COPYFILE "Icons" "ENVARC:MovieShop/"))
- (help MSG_COPYFILE @copyfiles-help)
- (source (cat (DISK1)(":MovieShop/")))
- (dest "ENVARC:MovieShop/")
- (files)
- (pattern "def_#?")
- (optional fail force)
- )
-
- (set AddToMeter 1)
- (IncrementMeter)
-
- ;
- ; finaly all needed library
- ;
-
- (set CopyLibFilePath (cat (DISK1)(":MovieShop")))
- (set DirPath "Libs:")
-
- (set CopyLibFileName "vmotion.library")
- (CopyLibFile)
- (set AddToMeter 1)
- (IncrementMeter)
- (set CopyLibFileName "motioneffect.library")
- (CopyLibFile)
- (set AddToMeter 1)
- (IncrementMeter)
- (set CopyLibFileName "multipic.library")
- (CopyLibFile)
- (set AddToMeter 1)
- (set CopyLibFileName "multisnd.library")
- (CopyLibFile)
- (set AddToMeter 1)
- (IncrementMeter)
- (set CopyLibFileName "pfile.library")
- (CopyLibFile)
- (set AddToMeter 1)
- (IncrementMeter)
- (set CopyLibFileName "asl.library")
- (CopyLibFile)
- (set AddToMeter 1)
- (IncrementMeter)
- )
-
- (procedure InstallOperator
- ;
- ; *****************************
- ; * Install all effect operator
- ; *****************************
- ;
- (set existsrc (getassign DISK2 "v"))
- (if (= existsrc "")
- (askdisk (prompt MSG_GETMOVIESHOPDISK2)
- (help HLP_GETMOVIESHOPDISK2 @askdisk-help)
- (dest DISK2)
- )
- )
-
- (Set DirPath (tackon MovieDirPath "Operators"))
- (Set DirPathTitle MSG_OPERATORPATH)
- (Set DirPathHelp HLP_SETDIRPATH)
- (SetDirPath)
-
- (copyfiles
- (prompt (MSG_COPYFILE "Operators" DirPath))
- (help MSG_COPYFILE @copyfiles-help)
- (source (cat (DISK2)(":Operators/")))
- (pattern "#?")
- (dest DirPath)
- (files)
- (optional fail force)
- )
- (set AddToMeter 25)
- (IncrementMeter)
- )
-
- (procedure InstallToccata
- ;
- ; ****************************
- ; * Install all Toccata files
- ; ****************************
- ;
-
- (set existsrc (getassign DISK1 "v"))
- (if (= existsrc "")
- (askdisk (prompt MSG_GETMOVIESHOPDISK1)
- (help HLP_GETMOVIESHOPDISK1 @askdisk-help)
- (dest DISK1)
- )
- )
-
- (set AddToMeter 1)
- (IncrementMeter)
-
- (set CopyLibFilePath (cat (DISK1)(":Toccata")))
- (set DirPath "Libs:")
-
- (set CopyLibFileName "toccata.library")
- (CopyLibFile)
-
- (set AddToMeter 1)
- (IncrementMeter)
- )
-
- (procedure InstallRetina
- ;
- ; ****************************
- ; * Install all Retina files
- ; ****************************
- ;
-
- (set existsrc (getassign DISK1 "v"))
- (if (= existsrc "")
- (askdisk (prompt MSG_GETMOVIESHOPDISK1)
- (help HLP_GETMOVIESHOPDISK1 @askdisk-help)
- (dest DISK1)
- )
- )
-
- (set AddToMeter 1)
- (IncrementMeter)
-
- ;
- ; install retina.library
- ;
-
- (set CopyLibFilePath (cat (DISK1)(":Retina")))
- (set DirPath "Libs:")
-
- (set CopyLibFileName "retina.library")
- (CopyLibFile)
- (set AddToMeter 1)
- (IncrementMeter)
- (set CopyLibFileName "retinaemu.library")
- (CopyLibFile)
- (set AddToMeter 1)
- (IncrementMeter)
- )
-
- (procedure InstallVMInit
- ;
- ; ****************************
- ; * Install VMInit
- ; ****************************
- ;
- (set existsrc (getassign DISK1 "v"))
- (if (= existsrc "")
- (askdisk (prompt MSG_GETMOVIESHOPDISK1)
- (help HLP_GETMOVIESHOPDISK1 @askdisk-help)
- (dest DISK1)
- )
- )
-
- (if(= MovieDirPath "")
- (
- (set DirPath (tackon (DirPath) "VMTools"))
- )
- (
- (set DirPath (tackon (MovieDirPath) "VMTools"))
- )
- )
-
- (Set DirPathTitle MSG_VMINITPATH)
- (Set DirPathHelp HLP_SETDIRPATH)
- (SetDirPath)
-
- (set AddToMeter 1)
- (IncrementMeter)
-
- (copyfiles
- (prompt (MSG_COPYFILE "VMInit" DirPath))
- (help MSG_COPYFILE @copyfiles-help)
- (source (cat (DISK1)(":Tools/VMInit")))
- (dest DirPath)
- (files)
- (infos)
- (optional fail force)
- )
-
- (set AddToMeter 2)
- (IncrementMeter)
-
- (if (askbool
- (prompt MSG_INSTALLVMINIT)
- (help HLP_INSTALLVMINIT)
- )
- (
- (copyfiles
- (prompt (MSG_COPYFILE "VMInit" "SYS:WBStartup"))
- (help MSG_COPYFILE @copyfiles-help)
- (source (cat (DISK1)(":Tools/VMInit")))
- (dest "SYS:WBStartup")
- (infos)
- (files)
- (optional fail force)
- )
- )
- )
-
- (set AddToMeter 1)
- (IncrementMeter)
- )
-
- (procedure InstallReSel
- ;
- ; ****************************
- ; * Install ReSel
- ; ****************************
- ;
- (set existsrc (getassign DISK1 "v"))
- (if (= existsrc "")
- (askdisk (prompt MSG_GETMOVIESHOPDISK1)
- (help HLP_GETMOVIESHOPDISK1 @askdisk-help)
- (dest DISK1)
- )
- )
-
- (if(= MovieDirPath "")
- (
- (set DirPath (tackon (DirPath) "VMTools"))
- )
- (
- (set DirPath (tackon (MovieDirPath) "VMTools"))
- )
- )
- (Set DirPathTitle MSG_RESELPATH)
- (Set DirPathHelp HLP_SETDIRPATH)
- (SetDirPath)
-
- (set AddToMeter 1)
- (IncrementMeter)
-
- (copyfiles
- (prompt (MSG_COPYFILE "ReSelection" DirPath))
- (help MSG_COPYFILE @copyfiles-help)
- (source (cat (DISK1)(":Tools/ReSelection")))
- (dest DirPath)
- (files)
- (infos)
- (optional fail force)
- )
-
- (set AddToMeter 1)
- (IncrementMeter)
-
- (copyfiles
- (prompt (MSG_COPYFILE "ReSel_ON/OFF" DirPath))
- (help MSG_COPYFILE @copyfiles-help)
- (source (cat (DISK1)(":Tools/")))
- (pattern "RESEL_#?.info")
- (dest DirPath)
- (files)
- (infos)
- (optional fail force)
- )
-
- (set AddToMeter 1)
- (IncrementMeter)
-
- (if (= Locale 1)
- (
- ;
- ; locale is installed
- ;
- (if (= language 2)
- ;
- ; german language
- ;
- (if (= (exists "Locale:Catalogs/deutsch") 2)
- (
- (copyfiles
- (prompt (MSG_COPYFILE "resel.catalog" "Locale:catalogs/deutsch/"))
- (help MSG_COPYFILE @copyfiles-help)
- (source (cat (DISK1)(":Tools/resel.catalog")))
- (dest "Locale:Catalogs/deutsch/")
- (files)
- (optional fail force)
- )
- )
- (
- (copyfiles
- (prompt (MSG_COPYFILE "resel.catalog" DirPath))
- (help MSG_COPYFILE @copyfiles-help)
- (source (cat (DISK1)(":Tools/resel.catalog")))
- (dest DirPath)
- (files)
- (optional fail force)
- )
- )
- )
- )
- )
- (
- (if (= language 2)
- (
- ;
- ; minloc.library will be installed
- ;
- (copyfiles
- (prompt (MSG_COPYFILE resel.catalog DirPath))
- (source (cat (DISK1)(":Tools/resel.catalog")))
- (dest DirPath)
- (files)
- (optional fail force)
- )
- (set DirPath "Libs:")
- (set CopyLibFilePath (cat (DISK1)(":MovieShop")))
- (set CopyLibFileName "minloc.library")
- (CopyLibFile)
- (textfile (prompt MSG_CreateMLL)
- (help HLP_CreateMLL)
- (dest "ENVARC:MINLOCLANGUAGE")
- (append "deutsch\n")
- )
- )
- )
- )
- )
-
- (set AddToMeter 1)
- (IncrementMeter)
- )
-
- (procedure InstallGuide
- ;
- ; ****************************
- ; * Install Guide
- ; ****************************
- ;
- (set existsrc (getassign DISK2 "v"))
- (if (= existsrc "")
- (askdisk (prompt MSG_GETMOVIESHOPDISK2)
- (help HLP_GETMOVIESHOPDISK2 @askdisk-help)
- (dest DISK2)
- )
- )
-
- (
- (set Parts
- (askoptions
- (prompt
- (MSG_SELECTGUIDEPARTS)
- )
- (help
- (HLP_SELECTGUIDEPARTS1)
- @askoptions-help
- )
- (default 1)
- (choices
- ; bit position 0 -- todo & 1
- ;
- ("%s" MSG_GERMAN)
- )
- )
- )
- )
-
- (if (BITAND Parts 1)
- (
- (if (<> (exists "Help:" (noreq)) 0)
- (
- (if(= (exists "help:deutsch") 0)
- (
- (makedir "help:deutsch")
- )
- )
-
- (set AddToMeter 1)
- (IncrementMeter)
- (copyfiles
- (prompt (MSG_COPYFILE "Scripte" "Help:deutsch/movieshop"))
- (help MSG_COPYFILE @copyfiles-help)
- (source (cat (DISK2)(":Guide/MovieShop")))
- (all)
- (dest ("Help:deutsch/movieshop"))
- (files)
- (optional fail force)
- )
- (set AddToMeter 1)
- (IncrementMeter)
- )
- (
- (if(= ((MovieDirPath) ""))
- (
- (Set DirPath (tackon @default-dest "MovieShop"))
- (Set DirPathTitle MSG_MOVIESHOPHELPPATH)
- (Set DirPathHelp HLP_SETDIRPATH)
- (SetDirPath)
- (set HelpDirPath (DirPath))
- )
- elseif
- (
- (set HelpDirPath (MovieDirPath))
- )
- )
- (if (NOT (exists (cat (HelpDirPath)("/Help"))))
- (
- (makedir (cat (HelpDirPath)("/Help")))
- )
- )
- (if (NOT (exists (cat (HelpDirPath)("/Help/deutsch"))))
- (
- (makedir (cat (HelpDirPath)("/Help/deutsch")))
- )
- )
-
- (set AddToMeter 1)
- (IncrementMeter)
- (copyfiles
- (prompt (MSG_COPYFILE "Scripte" (cat (HelpDirPath)("/Help/deutsch"))))
- (help MSG_COPYFILE @copyfiles-help)
- (source (cat (DISK2)(":Guide/MovieShop")))
- (all)
- (dest (cat (HelpDirPath)("/Help/deutsch")))
- (files)
- (optional fail force)
- )
- (set AddToMeter 1)
- (IncrementMeter)
- )
- )
- )
- )
- )
-
- (onerror
- (exit (quiet))
- )
-
-
- (if (< OSVersion 37)
- (abort (MSG_FALSEOSVERSION)))
-
- (ChooseParts)
-
- ; count number of files to be installed
- ;
- (if (BITAND Parts 1)
- (set TotalFiles (+ TotalFiles 16)))
- (if (BITAND Parts 2)
- (set TotalFiles (+ TotalFiles 24)))
- (if (BITAND Parts 4)
- (set TotalFiles (+ TotalFiles 2)))
- (if (BITAND Parts 8)
- (set TotalFiles (+ TotalFiles 3)))
- (if (BITAND Parts 16)
- (set TotalFiles (+ TotalFiles 3)))
- (if (BITAND Parts 32)
- (set TotalFiles (+ TotalFiles 4)))
- (if (BITAND Parts 64)
- (set TotalFiles (+ TotalFiles 2)))
-
- (complete 0)
-
- (if (BITAND Parts 1)
- (InstallMovieShop))
- (if (BITAND Parts 4)
- (InstallToccata))
- (if (BITAND Parts 8)
- (InstallRetina))
- (if (BITAND Parts 16)
- (InstallVMInit))
- (if (BITAND Parts 32)
- (InstallReSel))
- (if (BITAND Parts 2)
- (InstallOperator))
- (if (BITAND Parts 64)
- (InstallGuide))
-
- (complete 100)
-