home *** CD-ROM | disk | FTP | other *** search
- ; Montage Installer Utility
- ;
- ; For Montage release 1.0 from InnoVision Technology
- ;
- ; (Last updated: Vincent Law 3/16/93)
-
- (set @user-level 2)
-
- (
- ; Which OS are we under?
- (set osver (/ (getversion) 65536))
-
- ; Ask where to install it...
- ; (set @default-dest
- ; (askdir
- ; (prompt "Select or create the directory where\n"
- ; "you would like to install Montage. \n")
- ; (help "Montage and all necessary files will be installed\n"
- ; "in the your selected directory. You may wish to\n"
- ; "create a new directory for Montage by using the \n"
- ; "'Make New Drawer' gadget. \n")
- ; (default "DH0:Toaster")
- ; )
- ; )
-
- (makedir "RAM:ENV")
- (makeassign "ENV" "RAM:ENV")
- (run "Montage1:check_where_toaster_is")
- ; (set @default-dest (getenv "TOASTER_DIR"))
- (set default_dir (getenv "TOASTER_DIR"))
- (if (<> @ioerr 0)
- (abort "ERROR: Please install Video Toaster Software\n"
- " before installing Montage! \n")
- )
-
- ; (message
- ; "Video Toaster installation has been found on\n" @default-dest "\n"
- ; "\nSelect PROCEED to begin Montage Installation.\n"
- ; (help "\n\n Click PROCEED to install Montage onto\n"
- ; " " @default-dest "\n\n"
- ; " Click CANCEL to exit without installing.\n"
- ; )
- ; )
-
- (set SelectDefault
- (askbool
- (prompt "Video Toaster installation has been found on\n"
- default_dir "\n"
- "\nSelect PROCEED to begin Montage Installation.\n"
- "If you want to install Montage elsewhere, \n"
- "select CHANGE PATH. \n")
- (help "\n\n Click PROCEED to install Montage onto\n"
- " " default_dir "\n\n"
- " Click CHANGE PATH if you want to install Montage elsewhere.\n"
- )
- (choices "Proceed" "Change Path")
- (default 1)
- )
- )
-
- (if SelectDefault
- (
- (set @default-dest default_dir)
- (set Error_code 0)
- )
- (set Error_code 127)
- )
-
- (while (<> Error_code 0)
- (
- (set @default-dest
- (askdir
- (prompt "Video Toaster installation has been found on \n"
- default_dir "\n"
- "Click PROCEED to install Montage here or type \n"
- "in your preferred directory and press RETURN. \n"
- "Click SHOW DRIVES to look at available drives.\n")
- (help " This is the default directory where Montage\n"
- " for the Video Toaster will be installed. \n")
- (default default_dir)
- )
- )
- (execute "delete ENV:TOASTER_DIR")
- (run "Montage1:check_where_toaster_is " @default-dest)
- (set toaster_dir (getenv "TOASTER_DIR"))
- (if (= toaster_dir "")
- (
- (message
- "ERROR\n\n"
- "Toaster program is not found in " @default-dest "\n"
- )
- (set Error_code 255)
- )
- (set Error_code 0)
- )
- )
- )
-
- (if (= (exists (tackon @default-dest "Montage!")) 0)
- (makedir (tackon @default-dest "Montage!"))
- )
-
- (if (= (exists (tackon @default-dest "Montage!/MTSEQ")) 0)
- (makedir (tackon @default-dest "Montage!/MTSEQ"))
- )
-
- (if (= (exists (tackon @default-dest "Montage!/MTPIX")) 0)
- (makedir (tackon @default-dest "Montage!/MTPIX"))
- )
-
- (if (= (exists (tackon @default-dest "Montage!/MTFONTS")) 0)
- (makedir (tackon @default-dest "Montage!/MTFONTS"))
- )
-
- (if (= (exists (tackon @default-dest "Montage!/MTDATA")) 0)
- (makedir (tackon @default-dest "Montage!/MTDATA"))
- )
-
- ; (set seq_dir
- ; (askdir
- ; (prompt "Enter the name of default SEQUENCE directory:\n")
- ; (help "This is the directory where the sequences will be saved.\n")
- ; (default (tackon @default-dest "Montage!/MTSEQ"))
- ; )
- ; )
-
- (set iff_dir
- (askdir
- (prompt "Enter the name of your preferred directory\n"
- "for loading 24-bit IFF picture files: \n")
- (help " This is the default directory where \n"
- " IFF pictures will be loaded and saved.\n")
- (default (tackon @default-dest "Montage!/MTPIX"))
- )
- )
-
- (set framestore_dir
- (askdir
- (prompt "Enter the name of default FRAMESTORE directory:\n")
- (help "This is the directory where the framestore files will be saved.\n")
- ; (default (tackon @default-dest "/Framestore"))
- (default (getenv "FS_DIR"))
- )
- )
-
- ; (set ascii_dir
- ; (askdir
- ; (prompt "Enter the name of default ASCII directory:\n")
- ; (help "This is the directory where the ascii files will be saved.\n")
- ; (default (tackon @default-dest "Montage!"))
- ; )
- ; )
-
- ; (set montagefonts_dir
- ; (askdir
- ; (prompt "Enter the name of default MONTAGE FONTS directory:\n")
- ; (help "This is the directory where the montage fonts will be\n"
- ; "looked for during the execution of Montage. \n")
- ; (default (tackon @default-dest "Montage!/MTFONTS"))
- ; )
- ; )
-
- ; (set toasterfonts_dir
- ; (askdir
- ; (prompt "Enter the name of default TOASTER FONTS directory:\n")
- ; (help "This is the directory where the toaster fonts will be\n"
- ; "looked for during the execution of Montage. \n")
- ; (default (tackon @default-dest "ToasterFonts"))
- ; )
- ; )
-
- ; (set amigafonts_dir
- ; (askdir
- ; (prompt "Enter the name of default AMIGA FONTS directory:\n")
- ; (help "This is the directory where the amiga fonts will be\n"
- ; "looked for during the execution of Montage. \n")
- ; (default "fonts:")
- ; )
- ; )
-
- (makeassign "Montage" (tackon @default-dest "Montage!"))
- (makeassign "MTDATA" (tackon @default-dest "Montage!/MTDATA"))
- (makeassign "MTSEQ" (tackon @default-dest "Montage!/MTSEQ"))
- (makeassign "MTFONTS" (tackon @default-dest "Montage!/MTFONTS"))
- (makeassign "MTPIX" (tackon @default-dest "Montage!/MTPIX"))
-
- (startup "Montage"
- (prompt "Updating user-startup with necessary Montage assigns.\n\n"
- "Select PROCEED now.\n")
- (help @startup-help)
- (command "Assign Montage: " (tackon @default-dest "Montage!\n"))
- (command "Assign MTDATA: " (tackon @default-dest "Montage!/MTDATA\n"))
- (command "Assign MTSEQ: " (tackon @default-dest "Montage!/MTSEQ\n"))
- (command "Assign MTFONTS: " (tackon @default-dest "Montage!/MTFONTS\n"))
- (command "Assign MTPIX: " (tackon @default-dest "Montage!/MTPIX\n"))
- )
-
- (onerror
- (message
- "Cannot update startup sequence. \n"
- "You will need to add the following command manually:\n"
- "'Assign Montage: " (tackon @default-dest 'Montage!') "'\n"
- "'Assign MTDATA: " (tackon @default-dest 'Montage!/MTDATA') "'\n"
- "'Assign MTSEQ: " (tackon @default-dest 'Montage!/MTSEQ') "'\n"
- "'Assign MTFONTS: " (tackon @default-dest 'Montage!/MTFONTS') "'\n"
- "'Assign MTPIX: " (tackon @default-dest 'Montage!/MTPIX') "'\n")
- )
-
- ;----------------------------------------------------------
- ; Prompt for Disk 1.
-
- (if (= (exists "Montage1:") 2)
- (askdisk
- (prompt "Please insert Montage Program Disk 1:")
- (help "")
- (dest "Montage1")
- )
- )
-
- (copyfiles
- (prompt "Creating Montage Assign file")
- (help @copyfiles-help)
- (source "Montage1:Assign_file")
- (dest (tackon @default-dest "Montage!"))
- )
- ; (run "make_assign_file " @default-dest " " seq_dir " " iff_dir " " ascii_dir " " montagefonts_dir " " toasterfonts_dir " " amigafonts_dir " " framestore_dir)
- (run "Montage1:make_assign_file " @default-dest " " iff_dir framestore_dir)
-
- (onerror
- (message
- "Montage installation is not complete. Do you want to quit?\n"
- )
- )
-
- (working "Installing Montage Utility Files...")
-
- (copyfiles
- (prompt "")
- (help @copyfiles-help)
- (source "Montage1:data_files")
- (dest (tackon @default-dest "Montage!/MTDATA"))
- (all)
- )
-
- (copyfiles
- (prompt "")
- (help @copyfiles-help)
- (source "Montage1:RESET_MONTAGE")
- (dest (tackon @default-dest "Montage!"))
- )
-
- ;----------------------------------------------------------
- ; Prompt for Disk 2.
-
- (askdisk
- (prompt "Please insert Montage Program Disk 2:")
- (help "")
- (dest "Montage2")
- )
-
- (working "Installing Montage Executables...")
-
- (copyfiles
- (prompt "")
- (help @copyfiles-help)
- (source "Montage2:")
- (pattern "Montage#?")
- (dest @default-dest)
- )
-
- (makedir "fonts:Menu")
- (copyfiles
- (prompt "")
- (help @copyfiles-help)
- (source "Montage2:MMenu")
- (dest "fonts:MMenu")
- (all)
- )
- (copyfiles
- (prompt "")
- (help @copyfiles-help)
- (source "Montage2:MMenu.font")
- (dest "fonts:")
- )
-
- (working "Copying default startup sequence...")
-
- (copyfiles
- (prompt "")
- (help @copyfiles-help)
- (source "Montage2:startup_seq")
- (dest (tackon @default-dest "Montage!/MTSEQ"))
- (all)
- )
- (copyfiles
- (prompt "")
- (help @copyfiles-help)
- (source (tackon @default-dest "Montage!/MTSEQ/startup_seq.PG.001"))
- (dest (tackon @default-dest "Montage!/MTSEQ"))
- (newname "default.PG.001")
- )
- (copyfiles
- (prompt "")
- (help @copyfiles-help)
- (source (tackon @default-dest "Montage!/MTSEQ/startup_seq.PG.color"))
- (dest (tackon @default-dest "Montage!/MTSEQ"))
- (newname "default.PG.color")
- )
- (copyfiles
- (prompt "")
- (help @copyfiles-help)
- (source (tackon @default-dest "Montage!/MTSEQ/startup_seq.PG.preset"))
- (dest (tackon @default-dest "Montage!/MTSEQ"))
- (newname "default.PG.preset")
- )
- (copyfiles
- (prompt "")
- (help @copyfiles-help)
- (source (tackon @default-dest "Montage!/MTSEQ/startup_seq.PG.color1"))
- (dest (tackon @default-dest "Montage!/MTSEQ"))
- (newname "default.PG.color1")
- )
- (copyfiles
- (prompt "")
- (help @copyfiles-help)
- (source (tackon @default-dest "Montage!/MTSEQ/startup_seq.PG.001.stamp"))
- (dest (tackon @default-dest "Montage!/MTSEQ"))
- (newname "default.PG.001.stamp")
- )
-
- (working "Copying default startup sequence...")
-
- (copyfiles
- (prompt "")
- (help @copyfiles-help)
- (source "Montage2:Examples")
- (dest (tackon @default-dest "Montage!/MTSEQ"))
- (all)
- )
-
- ;----------------------------------------------------------
- ; Prompt for Disk 3.
-
- (askdisk
- (prompt "Please insert Montage Program Disk 3:")
- (help "")
- (dest "Montage3")
- )
-
- (working "Installing Montage Fonts....")
-
- (copyfiles
- (prompt "")
- (help @copyfiles-help)
- (source "Montage3:fonts")
- (dest (tackon @default-dest "Montage!/MTFONTS"))
- (all)
- )
-
- ;----------------------------------------------------------
- ; Prompt for Disk 4.
-
- (askdisk
- (prompt "Please insert Montage Program Disk 4:")
- (help "")
- (dest "Montage4")
- )
-
- (copyfiles
- (prompt "")
- (help @copyfiles-help)
- (source "Montage4:fonts")
- (dest (tackon @default-dest "Montage!/MTFONTS"))
- (all)
- )
-
- ;----------------------------------------------------------
- ; Prompt for Disk 5.
-
- (askdisk
- (prompt "Please insert Montage Program Disk 5:")
- (help "")
- (dest "Montage5")
- )
-
- (copyfiles
- (prompt "")
- (help @copyfiles-help)
- (source "Montage5:fonts")
- (dest (tackon @default-dest "Montage!/MTFONTS"))
- (all)
- )
-
- (working "Installing required libraries....")
-
- (copyfiles
- (prompt "")
- (help @copyfiles-help)
- (source "Montage5:file_interface/kd_freq.library")
- (dest "LIBS:")
- )
-
- (working "Installing Tutorial files....")
-
- (copyfiles
- (prompt "")
- (help @copyfiles-help)
- (source "Montage5:Tutorial")
- (pattern "Tutorial.PG#?")
- (dest (tackon @default-dest "Montage!/MTSEQ"))
- )
-
- (copyfiles
- (prompt "")
- (help @copyfiles-help)
- (source "Montage5:Tutorial")
- (pattern "#?.IFF#?")
- (dest iff_dir)
- )
-
- ;----------------------------------------------------------
- ; Prompt for Disk 6.
-
- (askdisk
- (prompt "Please insert Montage Program Disk 6:")
- (help "")
- (dest "Montage6")
- )
-
- (copyfiles
- (prompt "")
- (help @copyfiles-help)
- (source "Montage6:")
- (pattern "Tutorial#?.IFF#?")
- (dest iff_dir)
- )
-
- (set autoMount
- (askbool
- (prompt "Should Montage run automatically upon bootup?\n"
- "For most systems, select NO. \n\n"
- "Select YES only if Video Toaster starts automatically\n"
- "whenever you power-up your computer. \n")
- (help "\n\nIf you would like, a command will be inserted"
- "\ninto your \"S:Startup-Sequence\" file to"
- "\nautomatically start Montage upon bootup.\n")
- (default 0)
- )
- )
-
- (if autoMount
- ((protect "S:Startup-Sequence" "rwed" )
- (startup "Montage-Boot"
- (prompt "Inserting Montage command into the startup-sequence\n")
- (help "Montage will be launched whenever the system is booted.\n")
- (command "CD MONTAGE:/")
- (command 'C:NEWCLI "CON:0/0/640/12/MONTAGE" FROM MONTAGE.BOOT')
- ; (command @default-dest "/Montage")
- )
- )
- )
-
- (message
- "Remember to remove the last Montage disk from\n"
- "the floppy drive after the installation and \n"
- "store it in a safe place. \n"
- (help "\n\n Click PROCEED to continue.\n Click CANCEL to abort.\n")
- )
- )
-