home *** CD-ROM | disk | FTP | other *** search
- ; **
- ; ** MagnifiCAD installation scipt
- ; **
- ; ** v1.0
- ; **
-
- (welcome "Welcome to the MagnifiCAD installation")
-
-
- ; **
- ; ** Check kickstart version
- ; **
-
- (set version (/ (getversion) 65536))
-
- (if(< version 37)
- (Exit "\nYou need at least Workbench 2.0\nto run MagnifiCAD.\n" )
- )
-
- (if (< version 39)
- (set cont
- (askbool
- (prompt (cat "\nYou have kickstart 2.0.\n\n "
- "MagnifiCAD will work under 2.0,\n "
- "but may have some slight problems.\n "
- "Proceed to Install?\n " ))
- )
- )
- )
-
- ; **
- ; ** Check processor
- ; **
-
- (
- (set proc (database "cpu"))
- (if (< proc 68020)
- (Exit "\nYou need at least a 68020 processor\n to run this version of MagnifiCAD.\n")
- )
- )
-
- ; **
- ; ** Ask where to install the program
- ; **
-
- (set @default-dest "Work:")
-
- (set Destination
- (askdir
- (prompt (cat "\nSelect the drawer where you would like\n"
- "MagnifiCAD to be installed.\n") )
- (help (cat "\nA drawer named MagnifiCAD will be created in the\n"
- "drawer you select, and the program and all the files\n"
- "will be copied into this new drawer.") )
- (default @default-dest)
- )
- )
-
- ;(if(<>(exists Destination) 2)
- ; (makedir Destination (infos)))
-
- (set @default-dest Destination)
-
- (complete 10)
-
- (set @default-dest (tackon Destination "MagnifiCAD"))
-
- (makedir @default-dest (prompt "Creating MagnifiCAD drawer.") (infos))
-
- (complete 20)
-
- ; **
- ; ** Assign
- ; **
-
- (
- (makeassign "MagnifiCAD" @default-dest)
- (complete 30)
- )
-
- ; **
- ; ** Fonts
- ; **
-
- (
- (copyfiles
- (prompt "Copying newtopaz.font to Fonts: directory")
- (help @copyfiles-help)
- (source "Fonts")
- (all)
- (dest "Fonts:")
- (fonts)
- )
- (complete 50)
- )
-
- ; **
- ; ** Install program
- ; **
-
- (
- (copyfiles
- (prompt "Copying MagnifiCAD files to DEST:")
- (help @copyfiles-help)
- (choices "ReadMe"
- "MagnifiCAD"
- "Drawings"
- "Symbols"
- "Prefs"
- "Docs"
- "Icons"
- )
- (infos)
- (source "")
- (dest "MagnifiCAD:")
- )
- (complete 80)
- )
-
- (copyfiles (source "Drawings/YanoHouse_Plan.cd2") (dest "MagnifiCAD:Drawings") (infos))
- (copyfiles (source "Drawings/YanoHouse_Section.cd2") (dest "MagnifiCAD:Drawings") (infos))
- (copyfiles (source "Drawings/Test.dxf") (dest "MagnifiCAD:Drawings") (infos))
-
- (copyfiles (source "Symbols/wc.symbol") (dest "MagnifiCAD:Symbols") (infos))
-
- (copyfiles (source "Prefs/Default.mcadprefs") (dest "MagnifiCAD:Prefs") (infos))
- (copyfiles (source "Prefs/Text.mcadprefs") (dest "MagnifiCAD:Prefs") (infos))
-
- (copyfiles (source "Docs/MagnifiCAD_Help.guide") (dest "MagnifiCAD:Docs") (infos))
- (copyfiles (source "Docs/MagnifiCAD_Manual") (dest "MagnifiCAD:Docs") (infos))
- (copyfiles (source "Docs/MagnifiCAD_Manual.txt") (dest "MagnifiCAD:Docs") (infos))
-
- (copyfiles (source "Icons/Prefs.info") (dest "MagnifiCAD:Icons") )
- (copyfiles (source "Icons/Project.info") (dest "MagnifiCAD:Icons") )
- (copyfiles (source "Icons/Symbol.info") (dest "MagnifiCAD:Icons") )
- (copyfiles (source "Icons/MagnifiCAD_dockicon.info") (dest "MagnifiCAD:Icons") )
-
- (complete 90)
-
- (startup "MagnifiCAD" (command ("assign MagnifiCAD: %s" @default-dest ))
- (help "\nThis adds a line to your s:User-Startup file,\nassigning the MagnifiCAD drawer")
- (prompt "\nFinished installing files.\nAdd MagnifiCAD: assign\nto s:User-Startup?")
- )
-
- (complete 100)
-