home *** CD-ROM | disk | FTP | other *** search
- ; $VER: Install_PMPro V1.1 (19.10.95)
- ; J. Schaefer / Andreas R. Kleinert
-
- (set @app-name "Picture Manager Professional")
-
- (set OS_VER (/ (getversion) 65536) )
-
- (if(< OS_VER 37)
- (abort "Sie benoetigen mindestens Kickstart/OS V2.04 mit WB 2.1!")
- )
-
- ; in jedem Fall
-
- (makedir "ENV:SuperView-Library")
- (makedir "ENVARC:SuperView-Library")
-
-
- ; Pfad erfragen
-
- (set PMPROPath (askdir
- (prompt "Wohin soll installiert werden ?"
- "\n(Eine Schublade PicManager wird darin erzeugt)")
- (help @askdir-help)
- (newpath)
- (default "Work:")
- )
- )
-
- ; Pfad setzen
-
- (set @default-dest PMProPath)
-
-
- ; Ueberpruefen, ob versucht wird, in die Ram-Disk zu isntallieren
-
- (if(= (getdevice PMProPath) "RAM")
- (abort "Es würde keinen Sinn machen, in die RAM-Disk zu installieren!")
- )
-
-
- ; freien HD-Speicher ueberpruefen
-
- (set dskspace (getdiskspace PMProPath))
-
- (if(<> dskspace -1)
- (if(< dskspace 4000000)
- (abort "Im Datenpfad sind weniger als 4 MB frei ("dskspace") !")
- )
- )
-
- (set dskspace (getdiskspace "SYS:"))
-
- (if(<> dskspace -1)
- (if(< dskspace 500000)
- (abort "Im der Systempartition (Workbench) sind weniger als 500kB frei ("dskspace") !")
- )
- )
-
-
- ; Verzeichnis PicManager anlegen
-
- (makedir (tackon PMProPath "PicManager"))
-
-
- ; alte Files loeschen, falls welche vorhanden sind
-
- (delete (tackon PMProPath "PicManager/Autostart.prefs" ) force)
- (delete (tackon PMProPath "PicManager/Autostart.prefs.info" ) force)
-
- (delete (tackon PMProPath "PicManager/PV.config" ) force)
- (delete (tackon PMProPath "PicManager/PV.config.info" ) force)
-
- (delete (tackon PMProPath "PicManager/PhotoView" ) force)
- (delete (tackon PMProPath "PicManager/PhotoView.info" ) force)
-
- (delete (tackon PMProPath "PicManager/PicManager.guide" ) force)
- (delete (tackon PMProPath "PicManager/PicManager.guide.info" ) force)
-
- (delete (tackon PMProPath "PicManager/Graphics.log" ) force)
- (delete (tackon PMProPath "PicManager/Graphics.log.info" ) force)
-
-
- ; evtl. vorhandene SuperView Installation umbenennen
- ; (Treiber, Objekte und Operatoren und Library in .bak)
-
- (run ("delete libs:svobjects.bak all quiet"))
- (run ("rename libs:svobjects libs:svobjects.bak"))
- (run ("delete libs:svoperators.bak all quiet"))
- (run ("rename libs:svoperators libs:svoperators.bak"))
- (run ("delete libs:svdrivers.bak all quiet"))
- (run ("rename libs:svdrivers libs:svdrivers.bak"))
- (run ("rename libs:superview.library libs:superview.library.bak"))
- (run ("rename libs:superviewsupport.library libs:superviewsupport.library.bak"))
-
- ; ...................Diskette 1
-
- (askdisk
- (prompt "Bitte PMPRO_DISK1 einlegen:")
- (help @askdisk-help)
- (dest "PMPRO_DISK1")
- (assigns)
- )
-
-
- (if(= (exists("PMPRO_DISK1:PMPro.lha")) TRUE)
- (
- (set call1 (cat "lha x PMPRO_DISK1:PMPro.lha " (tackon PMProPath "PicManager/")))
- (run call1)
-
- )
- (
- (abort "Auf Ihrer Installationsdiskette fehlt die Datei PM_1")
- )
- )
-
-
- ; Piktogramm kopieren
-
- (copyfiles
- (source "PMPro_DISK1:PicManager.inf")
- (dest PMProPath)
- (newname "PicManager.info")
- (files)
- )
-
-
-
- ; ........................Diskette 2
-
- (askdisk
- (prompt "Bitte PMPRO_DISK2 einlegen:")
- (help @askdisk-help)
- (dest "PMPRO_DISK2")
- (assigns)
- )
-
- (if(= (exists("PMPRO_DISK2:Examples.lha")) TRUE)
- (
- (set call3 (cat "lha x PMPRO_DISK2:Examples " (tackon PMProPath "PicManager/")))
- (run call3)
- )
- (
- (abort "Auf Ihrer Installationsdiskette fehlt die Datei Examples")
- )
- )
-
- (if(= (exists("PMPRO_DISK2:Help_Docs.lha")) TRUE)
- (
- (set call4 (cat "lha x PMPRO_DISK2:Help_Docs " (tackon PMProPath "PicManager/")))
- (run call4)
- )
- (
- (abort "Auf Ihrer Installationsdiskette fehlt die Datei Help_Docs")
- )
- )
-
- (if(= (exists("PMPRO_DISK2:Library.lha")) TRUE)
- (
- (set call5 (cat "lha x PMPRO_DISK2:Library " "SYS:" ))
- (run call5)
- )
- (
- (abort "Auf Ihrer Installationsdiskette fehlt die Datei Library")
- )
- )
-
- (if(= (exists("PMPRO_DISK2:Drivers.lha")) TRUE)
- (
- (set call6 (cat "lha x PMPRO_DISK2:Drivers " "RAM:T/"))
- (run call6)
- )
- (
- (abort "Auf Ihrer Installationsdiskette fehlt die Datei Drivers")
- )
- )
-
- ; Welche Anzeigemodule installieren
-
- (set install 255)
- (set install (askoptions
- (prompt "Welchen Grafikkartentreiber möchten sie installieren?")
- (choices "PicassoII" "Retina Z2/Z3" "Merlin" "CyberGraphX" "EGS" "OpalVision")
- (default 0)
- (help (cat "Falls sie eine der angegebenen Grafikarten besitzen,\n"
- "wählen sie bitte das entsprechende Modul aus\n"
- "Falls sie keine Grafikkarte besitzen, wählen sie\n"
- "bitte keines der Module aus!"
- )
- )
- )
- )
-
- ; PICASSO II
- ; ----------
- (if (IN install 0)
- (
- (copyfiles
- (source "RAM:T/PicassoII.svdriver")
- (dest "sys:libs/svdrivers")
- )
- (copyfiles
- (source "RAM:T/PicassoII.controlpad")
- (dest "envarc:superview-library")
- )
- (copyfiles
- (source "RAM:T/PicassoII.controlpad")
- (dest (tackon PMProPath "PicManager/Env"))
- )
- ))
-
- ; RETINA
- ; ------
- (if (IN install 1)
- (
- (copyfiles
- (source "RAM:T/Retina.svdriver")
- (dest "sys:libs/svdrivers")
- )
- (copyfiles
- (source "RAM:T/Retina.controlpad")
- (dest "envarc:superview-library")
- )
- (copyfiles
- (source "RAM:T/Retina.controlpad")
- (dest (tackon PMProPath "PicManager/Env"))
- )
- ))
-
- ; MERLIN
- ; ------
- (if (IN install 2)
- (
- (copyfiles
- (source "RAM:T/Merlin.svdriver")
- (dest "sys:libs/svdrivers")
- )
- ))
-
-
- ; CYBERGRAPHX
- ; -----------
- (if (IN install 3)
- (
- (copyfiles
- (source "RAM:T/CyberGraphics.svdriver")
- (dest "sys:libs/svdrivers")
- )
- (copyfiles
- (source "RAM:T/CyberGraphics.controlpad")
- (dest "envarc:superview-library")
- )
- (copyfiles
- (source "RAM:T/CyberGraphics.controlpad")
- (dest (tackon PMProPath "PicManager/Env"))
- )
- ))
-
- ; EGS
- ; ---
- (if (IN install 4)
- (
- (copyfiles
- (source "RAM:T/EGS7.svdriver")
- (dest "sys:libs/svdrivers")
- )
- ))
-
- ; OPAL
- ; ----
- (if (IN install 5)
- (
- (copyfiles
- (source "RAM:T/OPAL.svdriver")
- (dest "sys:libs/svdrivers")
- )
- ))
-
-
- ; Pfad um Schublade PicManager erweitern und Assign in User-Startup einfügen
-
- (set PMProPath (tackon PMProPath "PicManager"))
- (set @default-dest PMProPath)
-
- (startup "Picture Manager Professional"
- (prompt "Modifiziere S:User-Startup für PIC_MANAGER:-Assign-Eintrag")
- (help @startup-help)
- (command "Assign PIC_MANAGER: "PMProPath"\n")
- )
-
- (exit "Picture Manager Professional ist nun installiert.\nBitte starten Sie Ihren Rechner jetzt neu!")
-