home *** CD-ROM | disk | FTP | other *** search
- ;
- ; $VER: DesktopMAGIC Install Version 1.0 (May ,18 1994)
- ;
- ; Installation Script for DesktopMAGIC
- ; ====================================
- ;
- ; Copyright (c) 1994 by MediaDesk
- ;
- ; Attention DesktopMAGIC users:
- ; =============================
- ;
- ; Do You know somebody else who may be interested in purchasing this program
- ; for only $39.95*? Maybe a friend, your company, or your user group is
- ; interested. Discounted site licences for organizations are available also.
- ;
- ; Ordering is fast and easy - just have your VISA, MasterCard or
- ; American Express Card ready and call 1-800-30-MDESK (1-800-306-3375).
- ;
- ; Or simply print, complete and mail/fax the order form in the file
- ; "Attention_DM_Users!" on this disk!
- ;
- ; Important Announcements
- ; =======================
- ;
- ; · Want to get our developer kit to create your own screensaver modules?
- ; · Want more information on other MediaDesk products, for example
- ; Cinema4D, the exciting new 3D rendering / raytracing / animation package?
- ; · Want free demo disks and information brochures on our products?
- ; · Want to save money through special discounts for user groups, organizations,
- ; companies, volume buyers?
- ; · Want to take part in our success and become an authorized MediaDesk dealer?
- ; · Want to receive our free newsletter for hot infos, special offers and
- ; tips and tricks on our products?
- ;
- ; Then call 1-800-30-MDESK (1-800-306-3375)!
- ;
- ; Or rush us a letter:
- ;
- ; 1875 South Bascom Avenue
- ; - Sales Desk #12 -
- ; Building 116, Suite 204
- ; Campbell, California 95008-2359
- ; U.S.A.
- ;
- ; Or send us a fax at: (408) 374-7596
- ; Or send us e-mail: mdesk@netcom.com Internet
- ; 73211,660 CompuServe
- ;
- ; Whatever is on your mind - don't put it off - contact us TODAY!
- ;
- ; --
- ;
- ; (*) Plus $5 s + h. Overnight delivery available. CA residents add 8.25% sales tax.
- ; "MediaDesk" and "DesktopMAGIC" are trademarks of MediaDesk. "Commodore" and "Amiga"
- ; are registered trademarks of Commodore-Amiga, Inc.
- ;
-
- ;============================
- ;=== English Instructions ===
- ;============================
-
- (set #introduction
- (cat "\nWelcome to the DesktopMAGIC hard drive installation.\n"
- "Before proceeding, check the file \"Read_me_first!\"\n\n"
- "A minimum of 2.4 MB should be available on your disk, "
- "if you want to install all sounds and tunes.\n\n"
- "NOTE: The installation is almost totally automatic.\n"
- "However, YOU will have to create\nthe DesktopMAGIC destination drawer -\n"
- "you will be given a chance to do that later.\n\n"
- "Click on \"Proceed\" to continue.\n"
- "Click on \"Abort\" to stop the whole installation."
- )
- )
-
- (set #askdir-help
- (cat " First select the partition on your hard drive where DesktopMAGIC "
- "should be installed. Then click on \"Make New Drawer...\" and insert "
- "the name of the new drawer after the colon (e.g. \"WORK:DMAGIC\"). "
- "Then click on \"Proceed\" to start the installation process.\n\n"
-
- "Explaination of controls:\n\n"
-
- " The large scrolling field in the middle of the window shows "
- "the contents of the current floppy disk or drawer. Drawers are "
- "marked with the inverted letters \"DRW\" followed by the name. "
- "On the right is a slider where you can scroll through the list of "
- "names if not all names can be displayed at the same time. "
- "You can enter a drawer by clicking on its name.\n\n"
-
- " \"Parent Drawer\" -- takes you to the higher drawer "
- "hierarchy.\n\n"
-
- " \"Show Drives\" -- shows internal and external disk and "
- "hard drives which are connected to your machine. Click on the name "
- "to see the contents of that drive.\n\n"
-
- " \"Make New Drawer...\" -- allows you to create a new drawer. "
- "The new drawer will appear in the directory which you are currently "
- "working in.\n\n"
-
- " \"Proceed\" -- accepts the new drawer and continues the "
- "installation process.\n\n"
-
- " \"Abort\" -- stops the installation process at this point. "
- "No further changes will be made.\n\n"
-
- " \"Help...\" -- brings up this text."))
-
- (set #help-startup
- (cat " The file \"user-startup\" is located in the Drawer \"S:\". "
- "It calls all programs that also self-start after booting. "
- "If you click \"Proceed\" DesktopMAGIC will also be called up in "
- "your \"S:user-startup\". Click \"Skip this Part\" if you want to "
- "bypass this part. In that case you will have to start DesktopMAGIC "
- "either manually or by moving it in the \"WBStartup\" drawer on "
- "your boot disk. Please consult your manual on how to do that.\n\n"
-
- " \"Abort\" stops the whole installation process."))
-
- (set #help-delete
- (cat " The File \"Assigns\" is only necessary if no changes are made to "
- "\"S:user-startup\".\n\n"
- " Click \"Proceed\" to delete the file \"Assigns\".\n\n"
- " Click \"Skip this Part\" if you want to bypass this part.\n\n"
- "\"Abort\" stops the whole installation process."))
-
- ;(set #startup-help
- ;(cat "Explaination of controls:\n\n"
- ; "\"Install for Real\"\n"
- ; "Starts the actual installation process. New drawers and files\n"
- ; "will be created on the destination volume.\n\n"
- ; "\"Pretend to Install\"\n"
- ; "Goes through every step of the installation process, but\n"
- ; "without touching the destination volume. No files or drawers will be\n"
- ; "created or modified. Use this option if you want to be absolutely shure\n"
- ; "what the installation process will do to the destination volume.\n"
- ; "This is especially useful when used in addition to one\n"
- ; "of the following options:\n\n"
- ;
- ; "\"Printer\"\n"
- ; "Outputs a list of all modifications the installer does (resp. pretends to do)\n"
- ; "on the printer.\n\n".
- ;
- ; "\"Log File\"\n"
- ; "Outputs a list of all modifications the installer does (resp. pretends to do)\n"
- ; "into a file. After the installation process, you will be told where the file is\n"
- ; "located.\"\n\n"
- ;
- ; "\"None\"\n"
- ; "With this option selected, no protocol of the installation process\n"
- ; "will be generated."))
-
- (set #no-inst
- (cat "There is not enough space in your chosen directory to copy the DesktopMAGIC "
- "files.\n\n*** Installation aborted ***"))
-
- (set #ERRORRAM (cat "The necessary files can't be copied into the RAM disk."))
-
- (set #COPVERZ (cat "\nTo which directory shall DesktopMAGIC be copied?"))
-
- (set #which-modules
- (cat "Which Effects\nare to be installed?"))
-
- (set #which-modules-help
- (cat "Select which effects you would like to have installed on your system. "
- "All effects with a checkmark will be installed when you click \"Proceed\"."))
-
- (set #which-hardware
- (cat "Which hardware\nwill the effects be used with?"))
-
- (set #which-hardware-help
- (cat "Explaination of controls:\n\n"
- "\" OCS/ECS/AA\" -- "
- "Only those effects will be installed that run on OCS/ECS/AA systems "
- "(Amiga 500, 600, 1000, 1200, 1500, 2500, 3000, 4000).\n\n"
- "\" Graphic Card\" -- "
- "Only those effects will be installed that run on Amigas with additional graphic card.\n\n"
- "\" All Effects\" -- "
- "All effects will be installed."))
-
- (set #MAGICSIZE 800000)
- (set #DesktopMSize 2400000)
-
- (set @abort-button "Abort")
- (set @language "English")
-
- (Procedure Inst_NormFiles
- (if (< (getdiskspace @Dest) @Size)
- (abort #no-inst))
-
- (set @anzeige (cat "Copying "@FName" from "@SOURCE" \nto "@Dest))
- (copyfiles (prompt @anzeige)(help @copyfiles-help)(source @Source)(choices @FName)(files)(infos)(dest @Dest)(confirm))
- )
-
- (Procedure Inst_PatternFiles
- (if (< (getdiskspace @Dest) @Size)
- (abort #no-inst))
-
- (set @anzeige (cat "Copying "@FName" from "@SOURCE" \nto "@Dest))
- (copyfiles (prompt @anzeige)(help @copyfiles-help)(source @Source)(pattern @Pattern)(infos)(dest @Dest)(confirm))
- )
-
- (Procedure Inst_LhaFiles
- ;(set @In_File (tackon @Source @FName.lha))
- (set @TMP (tackon "RAM:" @FName.lha))
- (set @Dest_File (tackon @default-dest @Dest))
- (if ; Verzeichnis erzeugen
- (= (exists @Dest_File) 0)
- (makedir (@Dest_File)(infos))
- )
-
- (if (< (getdiskspace @Dest_File) @Size)
- (abort #no-inst))
-
- (copyfiles (prompt "")(help "")(source @Source)(choices @FName.lha)(dest "RAM:")(confirm))
- (working @Working @Dest)
- (run ("RAM:Lhx -E -N x %s \"%s/\"" @TMP @Dest_File))
- (delete @TMP)
- )
-
- (Procedure Inst_LhaFilesnew
- ;(set @In_File (tackon @Source @FName.lha))
- (set @TMP (tackon "RAM:" @FName.lha))
- (set @Dest_File (tackon @default-dest @Dest))
- (makedir (@Dest_File)(infos))
-
- (if (< (getdiskspace @Dest_File) @Size)
- (abort #no-inst))
-
- (copyfiles (prompt "")(help "")(source @Source)(choices @FName.lha)(dest "RAM:")(confirm))
- (working @Working @Dest)
- (run ("RAM:Lhx -E -N x %s \"%s/\"" @TMP @Dest_File))
- (delete @TMP)
- )
-
- ;--------------------------------------------------------------------------
- ; Here we go...
- ;--------------------------------------------------------------------------
-
- (message #introduction)
- (welcome)
- (set old_level @user-level)
-
- (complete 0)
-
- (set @default-dest ; Choose DesktopMAGIC directory
- (askdir
- (prompt #COPVERZ)
- (help #askdir-help)
- (default "WORK:DMAGIC")
- )
- )
-
- (if ; Create directory
- (= (exists @default-dest) 0)
- (makedir @default-dest)
- )
-
- ;--------------------------------------------------------------------------
- ; Ask for disk 1
- ;--------------------------------------------------------------------------
-
- (askdisk
- (prompt "\n\n\nPlease insert the disk labeled \"DesktopMAGIC 1\".")
- (help
- " Please insert the disk \"DesktopMAGIC 1\" into any floppy drive "
- "and click on \"Proceed\" to install the actual program, "
- "the effects, the tunes, the animated sequences, the pictures "
- "and the sounds on the first disk.\n\n"
- " In order to have a minimum DesktopMAGIC installation, you "
- "MUST install at least the first disk. If you want to save "
- "disk space, you may abort when asked to insert the second or third disk.\n\n"
- " In that case, DesktopMAGIC will still work fine, "
- "but you will only have a limited selection of sounds and tunes."
- )
- (dest "DesktopMAGIC_1")
- )
-
- ;--------------------------------------------------------------------------
- ; Copy DesktopMAGIC, DM_Prefs & Read_me_first! & Attention_DM_Users! files
- ;--------------------------------------------------------------------------
-
- (
- (set @Source "DesktopMAGIC_1:")
- (set @Dest @default-dest)
- (set @FName "DesktopMAGIC")
- (set @Size #MAGICSIZE)
- (Inst_NormFiles)
- )
-
- (
- (set @Source "DesktopMAGIC_1:")
- (set @Dest @default-dest)
- (set @FName "DM_Prefs")
- (set @Size #MAGICSIZE)
- (Inst_NormFiles)
- )
-
- (
- (set @Source "DesktopMAGIC_1:")
- (set @Dest @default-dest)
- (set @FName "Read_me_first!")
- (set @Size #MAGICSIZE)
- (Inst_NormFiles)
- )
-
- (
- (set @Source "DesktopMAGIC_1:")
- (set @Dest @default-dest)
- (set @FName "Attention_DM_Users!")
- (set @Size #MAGICSIZE)
- (Inst_NormFiles)
- )
-
- ;--------------------------------------------------------------------------
- ; Copy rct.library for requesters and user interface
- ;--------------------------------------------------------------------------
-
- (copylib
- (prompt "Copying the \"rct.library\"...")
- (help "The rct.library is needed to generate standard requesters."
- "If this library is already installed on your boot volume, "
- "it may be updated if necessary with the latest version here.\n\n"
- @copyfiles-help
- )
- (source "DesktopMAGIC_1:libs/rct.library")
- (dest "Libs:")
- (confirm)
- )
-
- ;--------------------------------------------------------------------------
- ; Copy Muchmore & PlayHSN
- ;--------------------------------------------------------------------------
-
- (if
- (= (exists "C:MuchMore") 0)
- (copyfiles
- (help @copyfiles-help)
- (source "DesktopMAGIC_1:C")
- (dest "C:")
- (choices "MuchMore")
- )
- )
-
- (if
- (= (exists "C:PlayHSN") 0)
- (copyfiles
- (help @copyfiles-help)
- (source "DesktopMAGIC_1:C")
- (dest "C:")
- (choices "PlayHSN")
- )
- )
-
- (complete 5)
-
- ;--------------------------------------------------------------------------
- ; Copy Sounds, Tunes, Pictures and Animations from Disk 1
- ;--------------------------------------------------------------------------
-
- (
- (set @Source "DesktopMAGIC_1:")
- (set @Dest @default-dest)
- (set @Size #MAGICSize)
-
- (set @Pattern "DM_Sounds") (Inst_PatternFiles) (complete 10)
- (set @Pattern "DM_Tunes") (Inst_PatternFiles) (complete 15)
- (set @Pattern "DM_Pictures") (Inst_PatternFiles) (complete 20)
- (set @Pattern "DM_Anim") (Inst_PatternFiles) (complete 25)
- )
-
- ;--------------------------------------------------------------------------
- ; Ask for hardware
- ;--------------------------------------------------------------------------
-
- (set hardware
- (askchoice
- (prompt #which-hardware)
- (help #which-hardware-help)
- (choices
- "OCS/ECS/AA"
- "Graphic Card"
- "All Effects"
- )
- (default 2)
- )
- )
-
- ;--------------------------------------------------------------------------
- ; Install ALL effects from disk 1
- ;--------------------------------------------------------------------------
-
- (if (or (= 0 hardware) (= 2 hardware))
- (
- (set @Source "DesktopMAGIC_1:")
- (set @Dest @default-dest)
- (set @Size #MAGICSize)
- (set @Pattern "DM_Effects") (Inst_PatternFiles)
- )
- )
-
- ;--------------------------------------------------------------------------
- ; Install only graphic card compatible effects from disk 1
- ;--------------------------------------------------------------------------
-
- (if (= 1 hardware)
- (copyfiles
- (source (cat "DesktopMAGIC_1:DM_Effects"))
- (dest (tackon @default-dest "DM_Effects"))
- (pattern
- (cat
- "(%"
- "CrazyWorms.#?|"
- "Clock.#?|"
- "Eyes.#?|"
- "Meltdown.#?|"
- "Mountain.#?|"
- "MyPicture.#?|"
- "Puzzle.#?|"
- "Spotlights.#?"
- ")"
- )
- )
- )
- )
-
- (complete 33)
-
- ;--------------------------------------------------------------------------
- ; Ask for disk 2
- ;--------------------------------------------------------------------------
-
- (askdisk
- (prompt "\n\n\nPlease insert the disk \"DesktopMAGIC 2\".")
- (help "Please insert the disk \"DesktopMAGIC 2\"\n"
- "and click on \"Proceed\" to install additional effects, sounds, tunes, pictures, and animated sequences.")
- (dest "DesktopMAGIC_2")
- )
-
- ;--------------------------------------------------------------------------
- ; Install remaining effects from disk 2. They run on every hardware.
- ;--------------------------------------------------------------------------
-
- (
- (set @Source "DesktopMAGIC_2:")
- (set @Dest @default-dest)
- (set @Size #MAGICSize)
- (set @Pattern "DM_Effects") (Inst_PatternFiles) (complete 40)
- )
-
- ;--------------------------------------------------------------------------
- ; Effects successfully installed.
- ; If we are running under Kickstart 1.3, delete effects that won't run.
- ;--------------------------------------------------------------------------
-
- (if (< (/ (getversion) 65536) 35)
- (
- (set effpath (tackon @default-dest "DM_Effects"))
-
- (delete (tackon effpath "Flying Breakfast.mpf"))
- (delete (tackon effpath "Flying Breakfast.mod"))
-
- (delete (tackon effpath "CheckeredRace.mpf"))
- (delete (tackon effpath "CheckeredRace.mod"))
-
- (delete (tackon effpath "Cockroaches.mpf"))
- (delete (tackon effpath "Cockroaches.mod"))
-
- (delete (tackon effpath "Curtain.mpf"))
- (delete (tackon effpath "Curtain.mod"))
-
- (delete (tackon effpath "Tunnel.mpf"))
- (delete (tackon effpath "Tunnel.mod"))
- )
- )
-
- ;--------------------------------------------------------------------------
- ; Copy Sounds, Tunes, Pictures and Animations from Disk 2
- ;--------------------------------------------------------------------------
-
- (
- (set @Source "DesktopMAGIC_2:")
- (set @Dest @default-dest)
- (set @Size #MAGICSize)
-
- (set @Pattern "DM_Sounds") (Inst_PatternFiles) (complete 45)
- (set @Pattern "DM_Tunes") (Inst_PatternFiles) (complete 50)
- (set @Pattern "DM_Pictures") (Inst_PatternFiles) (complete 60)
- (set @Pattern "DM_Anim") (Inst_PatternFiles) (complete 67)
- )
-
- ;--------------------------------------------------------------------------
- ; Ask for disk 3
- ;--------------------------------------------------------------------------
-
- (askdisk
- (prompt "\n\n\nPlease insert the disk \"DesktopMAGIC 3\".")
- (help "Please insert the disk \"DesktopMAGIC 3\"\n"
- "and click on \"Proceed\" to install even more sounds, tunes, pictures, and animated sequences.")
- (dest "DesktopMAGIC_3")
- )
-
- ;--------------------------------------------------------------------------
- ; Copy Sounds, Tunes, Pictures and Animations from Disk 3
- ;--------------------------------------------------------------------------
-
- (
- (set @Source "DesktopMAGIC_3:")
- (set @prompt "Installing even more sounds, tunes, pictures, and animated sequences from disk 3.\n")
- (set @Dest @default-dest)
- (set @Size #MAGICSIZE)
-
- (set @Pattern "DM_Sounds") (Inst_PatternFiles) (complete 75)
- (set @Pattern "DM_Tunes") (Inst_PatternFiles) (complete 80)
- (set @Pattern "DM_Pictures") (Inst_PatternFiles) (complete 85)
- (set @Pattern "DM_Anim") (Inst_PatternFiles) (complete 90)
- )
-
- ;--------------------------------------------------------------------------
- ; Ask for user-startup modification - if yes, change it
- ;--------------------------------------------------------------------------
-
- (set changechoice
- (askchoice
- (prompt "\nWould you like to have DesktopMAGIC automatically loaded after booting?\n"
- "A new command will be inserted into the user-startup if you choose \"Yes\".")
- (help @askchoice-help)
- (choices "Yes" "No")
- (default 0)
- )
- )
-
- (set command1 (tackon @default-dest "DesktopMAGIC"))
-
- (if (not changechoice)
- (
- (set command1.txt
- (cat
- "\n\n\nTo have DesktopMAGIC automatically loaded after booting,"
- "a new command \"" command1 "\" must be inserted into \"S:user-startup\"."
- )
- )
- (startup "DesktopMAGIC"
- (prompt command1.txt)
- (help #help-startup)
- (command command1)
- )
- )
- )
-
- (complete 100)
-
- ;--------------------------------------------------------------------------
- ; That's it - we're outta here!
- ;--------------------------------------------------------------------------
-
- (message (cat
- "\nIf there is no line \"" command1 "\"\n"
- "in your \"S:user-startup\" you will have to insert it manually - or consult your manual "
- "on how to put DesktopMAGIC into the \"WBStartup\" drawer.\n\n"
- "Please remove the installation disk(s) now and start DesktopMAGIC - "
- "either double-click on its icon or re-boot your system.\n\n"
- "To access the Main Window, select \"DesktopMAGIC\" in the Workbench \"Tools\" menu "
- "or press <SHIFT-F1>.\n\n"
- "Have fun now with your \"DesktopMAGIC\" Amiga!")
- )
-
- (exit)
-
-