; script to install MaVi, based on the PPage example
; set up a error cleanup routine
(onerror
(message "Die Installation wurde abgebrochen. Sie sollten eventuelle Teilinstallationen löschen.")
)
(complete 0)
; just in case the installation was restarted
; see if this is really an update
(set is_update 0)
(set version 0)
(set installdest (getassign "MaVi" "a"))
; if update, be sure they want program in same place
(if installdest
(
(message "Sie haben evtl. einen inkompatiblen MaVi-Key installiert (von der Preview-Version). Es wird eine neue Version installiert, die allerdings nicht registriert ist.\n"
"Falls Sie ein registrierter MaVi-User sind, können Sie einen neuen Schlüssel per email von support@pro-dev.com anfordern. Bitte geben Sie auch Ihre Kundennummer an.\n"
"Sie können jetzt die Installation abbrechen (bis jetzt wurden keine Änderungen an Ihrem System vorgenommen) und bis zum Erhalt des neuen Schlüssels die alte Version weiterbenutzen oder die neue installieren.")
(if (askbool
(prompt "Soll das MaVi-System im Verzeichnis\n\n\""
installdest
"\"\n\überschrieben werden (Empfohlen)?"
)
(help
"Wie es scheint, hatten Sie MaVi schon einmal auf diesem Rechner installiert. "
"Da die zu installierende wohl eine neuere Version ist, sollten Sie mit der Installation fortfahren, "
"Sie können diese Version auch in ein anderes Verzeichnis installieren oder aber die Installation jetzt abbrechen.\n"
)
(default 1)
)
(set is_update 1) ; if user wants in same place
; else
(set installdest ; if user wants in different place
(tackon
(askdir
(prompt "In welchem Verzeichnis soll der (neue) MaVi Ordner angelegt werden?")
(help @askdir-help)
(default @default-dest)
)
"MaVi"
)
)
)
)
; else
(set installdest
(tackon
(askdir
(prompt "In welchem Verzeichnis soll der MaVi Ordner angelegt werden?")
(help @askdir-help)
(default @default-dest)
)
"MaVi"
)
)
)
(if (not is_update)
(
(makedir installdest (infos))
(tooltype
(dest installdest)
(noposition)
)
)
(
;remove now obsolete plug-ins
(if (exists "MaVi:Plug-Ins/")
(delete "MaVi:Plug-Ins/#?")
)
)
)
; from now on I'll work with this assign
(makeassign "MaVi" installdest)
; now lock on to disk 1, Demo only
(makeassign "installdisk1" "Disk1")
; at this point we have a valid destination, so we tell installer where
; the application will end up so the exit page will be correct -- also,
; the installation log file (if any) will be copied to the destination
(set @default-dest installdest)
(complete 20)
; these libraries are not only needed be mavi but may also be used by other programs
; or may already present on this system, so use copylib here