; Script file to decompress .jdc files and assign MACII:

copy MAC2:lhex ram:
makedir ram:EMPLANT_Temp
assign MACII: ram:EMPLANT_Temp

echo "Copying files to temporary storage..."
echo
copy >NIL: MAC2: MACII: all
copy >NIL: MACII:iconx sys:c/

cd MACII:MAC_EMU/c

ram:lhex -qf x RsrvMem.lha
delete >NIL: #?.lha

cd /devs/
ram:lhex -qf x devs.lha
delete >NIL: #?.lha

cd /documentation/
ram:lhex -qf x docs.lha
delete >NIL: #?.lha

cd /Ext_IO/
ram:lhex -qf x ExtIO.lha
delete >NIL: #?.lha

cd /Fonts/
ram:lhex -qf x Fonts.lha
delete >NIL: #?.lha

cd /Logos/
ram:lhex -qf x Logos.lha
delete >NIL: #?.lha

cd /libs/
ram:lhex -qf x libs.lha
delete >NIL: #?.lha

cd /Video_Drivers/
ram:lhex -qf x videodrivers.lha
delete >NIL: #?.lha

cd /
ram:lhex -qf x MACII.lha
ram:lhex -qf x ConverterII.lha
ram:lhex -qf x Diagnostic.lha
ram:lhex -qf x Dump256KDIPS.lha
ram:lhex -qf x Dump256KSIMM.lha
ram:lhex -qf x HardFileSetup.lha
ram:lhex -qf x HardKickMMU.lha
ram:lhex -qf x InitRetina.lha
ram:lhex -qf x MAC_HDSetup.lha
ram:lhex -qf x ROMINFO.lha
ram:lhex -qf x SoftKickMMU.lha
delete >NIL: #?.lha

delete >NIL: ram:lhex

cd MACII:

installer SCRIPT InstallerScript APPNAME "EMPLANT's MAC Emulation Upgrade" MINUSER average DEFUSER average
assign MACII: remove
echo " "
echo "Cleaning up temporary installation storage..."
echo
cd ram:
delete >NIL: EMPLANT#? all
