home *** CD-ROM | disk | FTP | other *** search
- ;********************************************************************
- ; $VER: InstallPatch V3.00 Monday 07-Nov-94 12:53:42
- ; Inovatronics, Inc.
- ; Suite 209b
- ; 8499 Greenville Ave
- ; Dallas, Texas 75231
- ; USA
- ;********************************************************************
- ; History
- ; v3.00 based on Install-CanDo and InstallCanDo
- ; v1.xx & 2.xx old versions of the install script
- ;********************************************************************
- ; The required variables
- ;********************************************************************
- (set true 1)
- (set false 0)
- (set not_here 0)
- (set is_a_file 1)
- (set is_a_dir 2)
- (set newline "\n")
- (set quote "\"")
- (set nothing "")
- (set testing true)
- (set testing false)
- (delopts "AskUser" "OkNoDelete" "Force")
- (set cpu (database "CPU"))
- (set aga (= (database "CHIPREV") "AA"))
-
- ;********************************************************************
- ; The common/general/english strings
- ;********************************************************************
- (set Intro_text
- (cat
- "Welcome to the CanDebug Patch installer. This installer uses the "
- "Commodore Amiga Installer. All of our products use this "
- "installer and we would love to get any feedback that might "
- "help improve the installation procedure." newline
- )
- )
-
- (set IsCanDebugHere_text
- (cat
- "This appears to be were CanDebug is installed. Is this correct?"
- )
- )
-
- (set Unarchiving_text
- (cat
- "One moment please, unarchiving"
- newline
- newline
- )
- )
-
- (set Final_text
- (cat
- "The CanDebug patch has now been successfully installed on your "
- "machine. You are now updated to "
- )
- )
-
- (set PathPrefix "Path=")
-
- (set FilePrefix "File(s)=")
-
-
- ;********************************************************************
- ; The error strings
- ;********************************************************************
-
- (set NoCanDebug_error
- (cat
- "We cannot find the CanDebug: assignment. That means that CanDebug "
- "has either not been installed or incorrectly installed."
- newline
- )
- )
-
- (set NoNeed_error
- (cat
- "The CanDebug installed is newer than this patch so we do not need to patch it."
- newline
- )
- )
-
-
- ;********************************************************************
- ; The language specific strings, overlay the pre-defined strings
- ;********************************************************************
- (if (= @language "deutsch")
- (
- ; german strings go here
-
- (set Intro_text
- (cat "Willkommen zum Installationsprogramm von " progname ". "
- "Um die Installtion für Sie so einfach wie möglich zu gestalten, "
- "benutzen wir den Commodore-Installer."
- newline newline
- )
- )
- )
- )
-
- ;********************************************************************
- ; Some common procedures
- ;********************************************************************
- ; where do we install the CanDebug directory
- (procedure find_home_dir
- (
- ; if we were installed, where are we?
- (if (= testing true)
- (set CanDebug_dir "Ram:")
- (set CanDebug_dir (getassign "CanDebug"))
- )
-
- ; is CanDebug assign made?
- (if (= CanDebug_dir nothing)
- (abort NoCanDebug_error)
- )
-
- ; where are we to install?
- (set CanDebug_dir
- (askdir
- (prompt IsCanDebugHere_text)
- (help @askdir-help)
- (default CanDebug_dir)
- (newpath)
- )
- )
-
- ; what CanDebug is to be installed?
- (run "version >env:CanDebugversion CanDebug_Patch_Install:Stuff/CanDebug")
- (set newCanDebug (getenv "CanDebugversion"))
- (set newver (+ (substr newCanDebug 6 1) 0))
- (set newrev (+ (substr newCanDebug 8 3) 0))
-
- ; is CanDebug already installed here?
- (run "version >env:CanDebugversion CanDebug:CanDebug")
- (set oldCanDebug (getenv "CanDebugversion"))
- (set oldver (+ (substr oldCanDebug 6 1) 0))
- (set oldrev (+ (substr oldCanDebug 8 3) 0))
-
- ; is the new revision greater than the installed one?
- (if (> oldrev newrev)
- (abort NoNeed_error)
- )
- )
- )
-
-
- ;********************************************************************
- ; The error handler
- ;********************************************************************
- (onerror
- (makeassign "CanDebug_Patch_Install" (safe))
- )
-
-
- ; *******************************************************************
- ; on with the show
- ; *******************************************************************
- (welcome intro_text)
-
- ; where are we?
- (makeassign "CanDebug_Patch_Install" "" (safe))
-
- ; where to install?
- (find_home_dir)
-
- ; to novice mode
- (user 0)
-
- ; how far have we come?
- (complete 0)
-
-
- ; *******************************************************************
- ; copy readme to the destination
- ; *******************************************************************
- (copyfiles
- (source "CanDebug_Patch_Install:CanDebugPatch.doc")
- (dest CanDebug_dir)
- (files)
- (infos)
- )
-
- ; how far have we come?
- (complete 50)
-
-
- ; *******************************************************************
- ; delete CanDebug and install new one
- ; *******************************************************************
- (copyfiles
- (source "CanDebug_Patch_Install:Stuff")
- (pattern "#?")
- (dest CanDebug_Dir)
- )
-
- ; how far have we come?
- (complete 100)
-
-
- ; *******************************************************************
- ; ok we are done then
- ; *******************************************************************
- (makeassign "CanDebug_Patch_Install" (safe))
- (set @default-dest CanDebug_dir)
- (exit Final_text newCanDebug)
-