' 컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴
'  SSG Update WED-NOV-92
' 컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴

BACKGROUND 31
TELESCOPE OFF

WINOPEN 0 2 63
"                       S.S.G."
""
"          Carriers At War Construction Kit          "

TELESCOPE ON
SHADOW ON
SPACE 3500			  ' 3.5 Meg required for system
CPU 386
JUMP.YES PROCESSOR_OK
WINOPEN 0 10 63
"Carriers At War Requires a 386 processor or better!"
""
"As you seem to have a slower machine do you wish to terminate"
"the install process at this point Y or N ?"
ASK 63 14
WINCLOSE
JUMP.YES TERMINATE
:PROCESSOR_OK

DRIVE C 28 10 63 15 32 14 79
PATH \CAW 0 12 63 15 32 14 79

EXIST ~1~2\CAW2.EXE
JUMP.YES UCREATE
EXIST ~1~2\CAW1.EXE
JUMP.NO NO_CAW

WINOPEN 0 10 63
"~1~2 currently contains CAW Version 1"
""
"The Construction Kit only works with CAW Version 2.0 so an update must"
"be performed. This will result in the loss of any saved games."
"Do you wish to proceed with the update proceedure Y or N ?              "
ASK 63 15
WINCLOSE
JUMP.NO TERMINATE
' At this point we purge the original CAW directories
WINOPEN 0 10 63
"Removing old Carriers At War Version 1 files"
""
TELESCOPE OFF
SHADOW OFF
DELETE ~1~2\CAW1.EXE 		 1 24 17
DELETE ~1~2\TITLE.EXE 		 1 24 17
DELETE ~1~2\*.BAT 			 1 24 17
DELETE ~1~2\*.SAV 			 1 24 17
DELETE ~1~2\*.DAT 			 1 24 17
DELETE ~1~2\*.TBL 			 1 24 17
DELETE ~1~2\README.COM 	 	 1 24 17
DELETE ~1~2\PICTS\*.PCK 	 1 24 17
DELETE ~1~2\COMBAT\*.PCK 	 1 24 17
DELETE ~1~2\SHIPS\*.PCK 	 1 24 17
DELETE ~1~2\PLANES\*.PCK 	 1 24 17
DELETE ~1~2\SCENARIO\*.PCK  1 24 17
DELETE ~1~2\SCENARIO\*.AIQ  1 24 17
DELETE ~1~2\SCENARIO\*.LST  1 24 17
DELETE ~1~2\SCENARIO\*.OVR  1 24 17
JUMP.FAIL INSTALL_FAILURE
TELESCOPE ON
SHADOW ON
WINCLOSE
WINOPEN 0 10 63
"UPDATING Carriers At War Version 1    "
""
""
""
""
""
""
""
SHADOW OFF
UNPACK CAWV2.PAK 0 13 63 32 14 79
SHADOW ON
JUMP.FAIL INSTALL_FAILURE
WINCLOSE
JUMP UCREATE1
:UCREATE
' Lets ask for the correct disk to be inserted
DISK 2 cawcreat.pak 0 10 63
:UCREATE1
' Now we install the creation kit proper
WINOPEN 0 10 63
"INSTALLING Construction Kit               "
""
""
""
""
""
""
""
SHADOW OFF
UNPACK CAWCREATE.PAK 0 13 63 32 14 79
SHADOW ON
JUMP.FAIL INSTALL_FAILURE
WINCLOSE

:DONE
' ------------------------------------------------------
' Ask user if they would like to view the READ.ME file
' ------------------------------------------------------
WINOPEN 0 12 63
"Would you like to see the READ.ME file  (Y or N)?"

WINUPDATE +42 +1 62           ' yellow text
"(Y or N)"

ASK +51 +1                    ' one method of providing a conditional jump
WINCLOSE                      ' close the above window
JUMP.NO DONE1

VIEW ~1~2\README.DOC 79 63    ' as you can see, The Finishing Touch
                              ' has a built-in file viewer
:DONE1
WINOPEN 0 10 63
"The CAW Construction Kit installation is now completed.                "
""
"To run the Construction Kit type the following"
""
"~1 [Enter]"
"cd ~2 [Enter]"
"create [Enter]"
""
"Press the [Enter] key to continue."

WAIT 40 19
WINCLOSE
END

:TERMINATE
WINOPEN 0 10 63
"The installation program has been terminated at your request           "
""
""
"Press the [Enter] key to continue."
""

WAIT 40 19
WINCLOSE
END

:NO_CAW
WINOPEN 0 10 63
"The installation program has been terminated as Carriers At War        "
"has not been found in ~1~2."
""
"Press the [Enter] key to continue."
""
WAIT 40 19
WINCLOSE
END

:INSTALL_FAILURE
WINOPEN 0 11 79
"THE INSTALLATION PROGRAM FAILED PRIOR TO COMPLETION"
""
"Possible reasons:"
"   -- The floppy disk was damaged during shipping."
"   -- Your disk drive is out of alignment."
"   -- The floppy disk was removed prior to completion."
""
"      Press [Enter] to Quit."

WAIT 62 19
WINCLOSE
