.key adspec/s
; Adspec Programming
; Floppy Drive install script for Aladdin 4D version 3.0
; Last revised: December 1, 1993

.bra «
.ket »

echo "*Ec*N*N*N*E[1m                Welcome to Aladdin 4D version 3.0 !"
echo "*E[0m*NThis script file will install Aladdin 4D version 3.0 onto several"
echo "disks. You will need six (6) blank floppy disks on which to install"
echo "the program. They do not have to be formatted. Please follow along"
echo "and you will be prompted for the required information as needed."
echo "Also, remember to wait until the drive activity light has gone off"
echo "before removing any disk from the drive.

ask "*N*N*E[1mDo you wish to install Aladdin 4D at this time (Y/N) ? *E[0m"
if not warn
 skip exit
endif

; get path to install to
echo "*EcWe will use drive *E[1mdf0:*E[0m to install Aladdin 4D 3.0"

echo "*NWe will now install Aladdin 4D version 3.0"
ask "*N*E[1mContinue (Y/N) ? *E[0m"
if not warn
 skip exit
endif

; set up ram:
echo "*NSetting up files in RAM:"
makedir >NIL: ram:A4DTemp
cd ram:A4DTemp
copy c:copy ram:A4DTemp
copy Aladdin_4D.1:lharc ram:A4DTemp
copy Aladdin_4D.1:IconX ram:A4DTemp
copy c:delete ram:A4DTemp
copy sys:system/format ram:A4DTemp

; begin installation

echo "*NInstalling DCTV Library in LIBS:"
copy Aladdin_4D.1:DCTVLib.LZH ram:A4DTemp
ram:A4DTemp/lharc -x -m x ram:A4DTemp/DCTVLib.LZH LIBS:
delete >NIL: ram:A4DTemp/DCTVLib.LZH


; Disk 1 - Program & Help
echo "*NCopying Program archive to ram:"
copy Aladdin_4D.1:Prog.LZH ram:A4DTemp
echo "*NCopying Help archive to ram:"
copy Aladdin_4D.1:Help.LZH ram:A4DTemp
copy Aladdin_4D.1:MAFP.LZH ram:A4DTemp
wait 1
echo "Please remove any disk in drive *E[1mdf0:*E[0m."
echo "Hit *E[1mRETURN*E[0m to continue." noline
set >NIL: 4dcont ?
echo "*NCreating Aladdin_4D disk"
echo "*N*NAny information on the disk that will be inserted will be lost!!"
echo "This disk will be named: *E[1mA4D_3.0*E[0m"
echo "Please wait for drive activity light to go out before hitting *E[1mRETURN*E[0m"
wait 1
failat 21
format drive df0: name A4D_3.0 noicons
if error
 skip exit
endif
echo "Dearchiving Program files"
ram:A4DTemp/lharc -x -m x ram:A4DTemp/Prog.LZH A4D_3.0:
delete >NIL: ram:A4DTemp/Prog.LZH
echo "Dearchiving Help directory"
ram:A4DTemp/lharc -x -m x ram:A4DTemp/Help.LZH A4D_3.0:
delete >NIL: ram:A4DTemp/Help.LZH
ram:A4DTemp/lharc -x -m x ram:A4DTemp/MAFP.LZH A4D_3.0:
delete >NIL: ram:A4DTemp/MAFP.LZH
copy ram:A4DTemp/IconX A4D_3.0:

; Disk 2 - Support & others (see below)
echo "*NCopying Support archive to ram:"
copy Aladdin_4D.1:Support.LZH ram:A4DTemp
wait 1
echo "Please remove any disk in drive *E[1mdf0:*E[0m."
echo "Hit *E[1mRETURN*E[0m to continue." noline
set >NIL: 4dcont ?
echo "*NCreating Support disk"
echo "*N*NAny information on the disk that will be inserted will be lost!!"
echo "This disk will be named: *E[1mAladdin4D*E[0m"
echo "Please wait for drive activity light to go out before hitting *E[1mRETURN*E[0m"
wait 1
failat 21
format drive df0: name Aladdin4D noicons
if error
 skip exit
endif
echo "Dearchiving Support directory"
ram:A4DTemp/lharc -x -m x ram:A4DTemp/Support.LZH Aladdin4D:
delete >NIL: ram:A4DTemp/Support.LZH

; Disk 3 - Tools & Fonts
echo "*NCopying Tools archive to ram:"
copy Aladdin_4D.1:Tools.LZH ram:A4DTemp
echo "*NCopying 4DFonts archive to ram:"
copy Aladdin_4D.2:4DFonts.LZH ram:A4DTemp
wait 1
echo "Please remove any disk in drive *E[1mdf0:*E[0m."
echo "Hit *E[1mRETURN*E[0m to continue." noline
set >NIL: 4dcont ?
echo "*NCreating Tools disk"
echo "*N*NAny information on the disk that will be inserted will be lost!!"
echo "This disk will be named: *E[1mAladdin4D_Tools*E[0m"
echo "Please wait for drive activity light to go out before hitting *E[1mRETURN*E[0m"
wait 1
failat 21
format drive df0: name Aladdin4D_Tools noicons
if error
 skip exit
endif
echo "Dearchiving Tools directory"
ram:A4DTemp/lharc -x -m x ram:A4DTemp/Tools.LZH Aladdin4D_Tools:
delete >NIL: ram:A4DTemp/Tools.LZH
echo "Dearchiving 4DFonts directory"
ram:A4DTemp/lharc -x -m x ram:A4DTemp/4DFonts.LZH Aladdin4D_Tools:
delete >NIL: ram:A4DTemp/4DFonts.LZH

; Add these to Disk 2 - Support
echo "*NCopying ATLists archive to ram:"
copy Aladdin_4D.2:ATLists.LZH ram:A4DTemp
echo "*NCopying Convolves archive to ram:"
copy Aladdin_4D.2:Convolves.LZH ram:A4DTemp
echo "*NCopying CSplines archive to ram:"
copy Aladdin_4D.2:CSplines.LZH ram:A4DTemp
echo "*NCopying FrameScriptExample archive to ram:"
copy Aladdin_4D.2:FSExample.LZH ram:A4DTemp
echo "*NCopying TXLists archive to ram:"
copy Aladdin_4D.2:TXLists.LZH ram:A4DTemp
echo "Dearchiving ATLists directory"
ram:A4DTemp/lharc -x -m x ram:A4DTemp/ATLists.LZH Aladdin4D:
delete >NIL: ram:A4DTemp/ATLists.LZH
echo "Dearchiving Convolves directory"
ram:A4DTemp/lharc -x -m x ram:A4DTemp/Convolves.LZH Aladdin4D:
delete >NIL: ram:A4DTemp/Convolves.LZH
echo "Dearchiving CSplines directory"
ram:A4DTemp/lharc -x -m x ram:A4DTemp/CSplines.LZH Aladdin4D:
delete >NIL: ram:A4DTemp/CSplines.LZH
echo "Dearchiving FrameScriptExample directory"
ram:A4DTemp/lharc -x -m x ram:A4DTemp/FSExample.LZH
delete >NIL: ram:A4DTemp/FSExample.LZH
echo "Dearchiving TXLists directory"
ram:A4DTemp/lharc -x -m x ram:A4DTemp/TXLists.LZH
delete >NIL: ram:A4DTemp/TXLists.LZH

; Disk 4 - Drawings
echo "*NCopying Drawings archive to ram:"
copy Aladdin_4D.2:Drawings.LZH ram:A4DTemp
echo "*NCopying Drawing Textures archive to ram:"
copy Aladdin_4D.2:DrawingTxtrs.LZH ram:A4DTemp
wait 1
echo "Please remove any disk in drive *E[1mdf0:*E[0m."
echo "Hit *E[1mRETURN*E[0m to continue." noline
set >NIL: 4dcont ?
echo "*NCreating Drawings disk"
echo "*N*NAny information on the disk that will be inserted will be lost!!"
echo "This disk will be named: *E[1mDrawings*E[0m"
echo "Please wait for drive activity light to go out before hitting *E[1mRETURN*E[0m"
wait 1
failat 21
format drive df0: name Drawings noicons
if error
 skip exit
endif
echo "Dearchiving Drawings directory"
ram:A4DTemp/lharc -x -m x ram:A4DTemp/Drawings.LZH Drawings:
delete >NIL: ram:A4DTemp/Drawings.LZH
echo "Dearchiving Drawing Textures"
ram:A4DTemp/lharc -x -m x ram:A4DTemp/DrawingTxtrs.LZH Drawings:
delete >NIL: ram:A4DTemp/DrawingTxtrs.LZH

; Disk 6 - Developer
echo "*NThe Developer archive contains the various files that are need to"
echo "develop your own tools for Aladdin 4D. You should only install the"
echo "developer files if you want to develop your own tools and have some"
echo "programming experience."
ask "*N*N*E[1mWould you like to install the developer files (Y/N) ? *E[0m"
if warn
 echo "*NCopying Developer archive to ram:"
 copy Aladdin_4D.2:Developer.LZH ram:A4DTemp
 echo "*NCopying Sample Picture archives to ram:"
 copy Aladdin_4D.2:SPics1.LZH ram:A4DTemp
 copy Aladdin_4D.3:SPics2.LZH ram:A4DTemp
 wait 1
 echo "Please remove any disk in drive *E[1mdf0:*E[0m."
 echo "Hit *E[1mRETURN*E[0m to continue." noline
 set >NIL: 4dcont ?
 echo "*NCreating Developer disk"
 echo "*N*NAny information on the disk that will be inserted will be lost!!"
 echo "This disk will be named: *E[1mSamplePics_Devs*E[0m"
 echo "Please wait for drive activity light to go out before hitting *E[1mRETURN*E[0m"
 wait 1
 failat 21
 format drive df0: name SamplePics_Devs noicons
 if error
  skip exit
 endif
 echo "Dearchiving Developer directory"
 makedir SamplePics_Devs:Devs
 ram:A4DTemp/lharc -x -m x ram:A4DTemp/Developer.LZH SamplePics_Devs:Devs/
 delete >NIL: ram:A4DTemp/Developer.LZH
 echo "Dearchiving Sample Pictures directory"
 makedir SamplePics_Devs:Pics
 ram:A4DTemp/lharc -x -m x ram:A4DTemp/SPics1.LZH SamplePics_Devs:Pics/
 ram:A4DTemp/lharc -x -m x ram:A4DTemp/SPics2.LZH SamplePics_Devs:Pics/
 delete >NIL: ram:A4DTemp/SPics1.LZH
 delete >NIL: ram:A4DTemp/SPics2.LZH
else
 echo "*NCopying Sample Picture archives to ram:"
 copy Aladdin_4D.2:SPics1.LZH ram:A4DTemp
 copy Aladdin_4D.3:SPics2.LZH ram:A4DTemp
 wait 1
 echo "Please remove any disk in drive *E[1mdf0:*E[0m."
 echo "Hit *E[1mRETURN*E[0m to continue." noline
 set >NIL: 4dcont ?
 echo "*NCreating Sample Picture & Developer disk"
 echo "*N*NAny information on the disk that will be inserted will be lost!!"
 echo "This disk will be named: *E[1mSamplePics*E[0m"
 echo "Please wait for drive activity light to go out before hitting *E[1mRETURN*E[0m"
 wait 1
 failat 21
 format drive df0: name SamplePics noicons
 if error
  skip exit
 endif
 echo "Dearchiving Sample Pictures directory"
 ram:A4DTemp/lharc -x -m x ram:A4DTemp/SPics1.LZH SamplePics:
 ram:A4DTemp/lharc -x -m x ram:A4DTemp/SPics2.LZH SamplePics:
 delete >NIL: ram:A4DTemp/SPics1.LZH
 delete >NIL: ram:A4DTemp/SPics2.LZH
endif

; Disk 5 - Flares & Gases
echo "*NCopying Flares archive to ram:"
copy Aladdin_4D.3:Flares.LZH ram:A4DTemp
echo "*NCopying Gases archive to ram:"
copy Aladdin_4D.3:Gases.LZH ram:A4DTemp
wait 1
echo "Please remove any disk in drive *E[1mdf0:*E[0m."
echo "Hit *E[1mRETURN*E[0m to continue." noline
set >NIL: 4dcont ?
echo "*NCreating Flares & Gases Texture disk"
echo "*N*NAny information on the disk that will be inserted will be lost!!"
echo "This disk will be named: *E[1mFGTextures*E[0m"
echo "Please wait for drive activity light to go out before hitting *E[1mRETURN*E[0m"
wait 1
failat 21
format drive df0: name FGTextures noicons
if error
 skip exit
endif
echo "Dearchiving Flares directory"
ram:A4DTemp/lharc -x -m x ram:A4DTemp/Flares.LZH FGTextures:
delete >NIL: ram:A4DTemp/Flares.LZH
echo "Dearchiving Gases directory"
ram:A4DTemp/lharc -x -m x ram:A4DTemp/Gases.LZH FGTextures:
delete >NIL: ram:A4DTemp/Gases.LZH

echo "*EcThe required files have been copied to your floppy disks."

echo "*NDeleting setup files"
cd ram:
delete >NIL: ram:A4DTemp all
unset 4dtargetdir
unset 4dassign
echo "*N*NInstallation of Aladdin 4D version 3.0 is complete. Enjoy!*N*N*N"
wait 3
skip done

lab exit
cd ram:
delete >NIL: ram:A4DTemp all
unset 4dassign
unset 4dcont
echo "*N*NInstallation of Aladdin 4D version 3.0 aborted!*N*N*N"
wait 3
lab done
