home *** CD-ROM | disk | FTP | other *** search
- ; Montage Postscript Module Installer Utility
- ;
- ; For Montage Postscript Module from InnoVision Technology
- ;
- ; (Last updated: Vincent Law 1/31/94)
-
- (set @user-level 2)
-
- (
- ; Which OS are we under?
- (set osver (/ (getversion) 65536))
-
- ; Ask where to install it...
- (run "check_where_montage_is")
- (if (exists "ram:ENV/MONTAGE_DIR")
- (
- (set MT_exist 1)
- (set Montage_dir (getassign "MONTAGE"))
- )
- (set MT_exist 0)
- )
- (if (exists "ram:ENV/MONTAGE24_DIR")
- (
- (set MT24_exist 1)
- (set Montage24_dir (getassign "MONTAGE24"))
- )
- (set MT24_exist 0)
- )
-
- (if (= MT_exist 1)
- (
- (if (= MT24_exist 1)
- (message
- "Montage installation has been found on\n" Montage_dir "\n"
- "Montage24 installation has been found on\n" Montage24_dir "\n"
- "\nSelect PROCEED to begin Installation of\n"
- "Montage Postscript Module.\n"
- (help "\n\n Click PROCEED to install Postscript Module onto\n"
- " " Montage_dir " and " Montage24_dir "\n\n"
- " Click CANCEL to exit without installing.\n"
- )
- )
- (message
- "Montage installation has been found on\n" Montage_dir "\n"
- "\nSelect PROCEED to begin Installation of\n"
- "Montage Postscript Module.\n"
- (help "\n\n Click PROCEED to install Postscript Module onto\n"
- " " Montage_dir "\n\n"
- " Click CANCEL to exit without installing.\n"
- )
- )
- )
- )
- (message
- "Montage24 installation has been found on\n" Montage24_dir "\n"
- "\nSelect PROCEED to begin Installation of\n"
- "Montage Postscript Module.\n"
- (help "\n\n Click PROCEED to install Postscript Module onto\n"
- " " Montage24_dir "\n\n"
- " Click CANCEL to exit without installing.\n"
- )
- )
- )
-
- ;----------------------------------------------------------
- ; Prompt for Disk 1.
-
- (if (= (exists "PSModule:") 2)
- (askdisk
- (prompt "Please insert Montage Postscript Module Disk:")
- (help "")
- (dest "PSModule")
- )
- )
-
- (working "Copying files from Montage Postscript Disk...")
-
- (if (= MT_exist 1)
- (
- (copyfiles
- (prompt "")
- (help @copyfiles-help)
- (source "PSModule:PS_ARP")
- (dest "MONTAGE:/")
- )
- (copyfiles
- (prompt "")
- (help @copyfiles-help)
- (source "PSModule:PSModule")
- (dest "MONTAGE:/")
- )
- (copyfiles
- (prompt "")
- (help @copyfiles-help)
- (source "PSModule:PSModule.info")
- (dest "MONTAGE:/")
- )
- (copyfiles
- (prompt "")
- (help @copyfiles-help)
- (source "PSModule:init.ps")
- (dest "MONTAGE:/")
- )
- (if (= (exists "MONTAGE:/ToasterFonts/MTPOSTSCRIPT") 0)
- (makedir "MONTAGE:/ToasterFonts/MTPOSTSCRIPT")
- )
- (copyfiles
- (prompt "")
- (help @copyfiles-help)
- (source "PSModule:MTPOSTSCRIPT")
- (dest "MONTAGE:/ToasterFonts/MTPOSTSCRIPT")
- (all)
- )
- )
- )
- (if (= MT24_exist 1)
- (
- (copyfiles
- (prompt "")
- (help @copyfiles-help)
- (source "PSModule:PS_ARP")
- (dest "MONTAGE24:")
- )
- (copyfiles
- (prompt "")
- (help @copyfiles-help)
- (source "PSModule:PSModule")
- (dest "MONTAGE24:")
- )
- (copyfiles
- (prompt "")
- (help @copyfiles-help)
- (source "PSModule:PSModule.info")
- (dest "MONTAGE24:")
- )
- (copyfiles
- (prompt "")
- (help @copyfiles-help)
- (source "PSModule:init.ps")
- (dest "MONTAGE24:")
- )
- (if (= (exists "MONTAGE24:MTPOSTSCRIPT") 0)
- (makedir "MONTAGE24:MTPOSTSCRIPT")
- )
- (copyfiles
- (prompt "")
- (help @copyfiles-help)
- (source "PSModule:MTPOSTSCRIPT")
- (dest "MONTAGE24:MTPOSTSCRIPT")
- (all)
- )
- )
- )
-
- (run "COPY_PS_LIBRARY")
-
- (message
- "Remember to remove the Montage Postscript \n"
- "Module disk from the floppy drive after the\n"
- "installation and store it in a safe place. \n"
- (help "\n\n Click PROCEED to continue.\n Click CANCEL to abort.\n")
- )
- )
-