' 컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴
'  SSG Warlords ][ Install WED-NOV-92
' 컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴컴


BACKGROUND 31
TELESCOPE OFF                        

WINOPEN 0 2 31
"                          S.S.G."
""
"                  Strategic Studies Group"
""
"               Warlords ][  Scenario Builder               "
""

TELESCOPE ON
SHADOW ON

VIDEO VGA                   
JUMP.YES GOTVGA
BEEP
WINOPEN 0 11 78

"  Warlords ][ requires VGA graphics to run!"
""
"         This is not a VGA machine."
"     You can still install Warlords ]["
"           but it will not work!"
""
"Do you wish to continue with the installation?"
""
ASK 40 19
JUMP.NO LEFIN
WINCLOSE
:GOTVGA

CPU 386                
JUMP.YES GOT386
BEEP
WINOPEN 0 11 78

" Warlords ][ requires a 386 or better to run!"
""
"         This is not a 386 machine."
"     You can still install Warlords ]["
"           but it will not work!"
""
"Do you wish to continue with the installation?"
""
ASK 40 19
JUMP.NO LEFIN
WINCLOSE
:GOT386


:PROMPT
SPACE 9000

DRIVE C 0 14 47 15 32 14 79

PATH \WARLORD2 0 14 47 15 32 14 79

EXIST ~1~2\WAR2.BAT
JUMP.NO NO_WARLORDII
EXIST ~1~2\VER111.DAT
JUMP.YES WLII_DONE

WINOPEN 0 14 47
""
"When the Scenario Builder is installed it will automatically"
"upgrade Warlords II to the current version."
""
"Do you wish to proceed with the update proceedure Y or N ?          "
ASK 65 19
WINCLOSE
JUMP.NO TERMINATE
:WARNING

WINOPEN 0 12 47
"UPGRADING  Warlords ][                    "
""
""
""
""
""
""
""

' lets put in the patch for the illuria scenario
EXIST ~1~2\ILLURIA\ILLURIA.CTY
JUMP.NO IGNORE_ILLURIA
TELESCOPE OFF                              
COPY SCENARIO.DAT ~1~2\ILLURIA\SCENARIO.DAT 0 15 47
TELESCOPE ON
:IGNORE_ILLURIA

SHADOW OFF
UNPACK WARUP.PAK 0 15 47 26 14 79
SHADOW ON
JUMP.FAIL INSTALL_FAILURE
WINCLOSE

:WLII_DONE


WINOPEN 0 12 47
"INSTALLING Warlords ][ Scenario Builder    "
""
""
""
""
""
""
""
SHADOW OFF
UNPACK WARSCEN.PAK 0 15 47 26 14 79
SHADOW ON
JUMP.FAIL INSTALL_FAILURE
WINCLOSE

:DONE

'
'       View the readme file
'
WINOPEN 0 14 47
""
"        Press the [Enter] key"
"      to see the Readme.doc file      "
""
WAIT 53 17
WINCLOSE

VIEW ~1~2\README.DOC 47 31

BEEP
WINOPEN 0 12 47
"Warlords ][ Scenario Builder has installed!"
""
"          To start it just type" 
""
"                WARSCEN"
""
"  ...and may you create"
"                 many many worlds......"
""
"   Press the [Enter] key to continue."

WAIT 50 20

WINCLOSE

SHELL
"~1"
"cd ~2"
"cls"

:LEFIN
:TERMINATE
END

:NO_WARLORDII
WINOPEN 0 12 47
"                                                                   "
"**  Error: Warlords II not found in ~1~2 **"
""
"Warlords II is required for the Scenario Builder to work. "
"The installation process is now terminated."
""
"Press the [Enter] key to continue."
""
WAIT 40 19
WINCLOSE
END

' you've seen this before in other examples:

: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 remove incomplete program files."

WAIT 62 19
WINCLOSE

WINOPEN 0 11 31

"Partially Installed Files are Now Deleted."
""
"Please try to install the software again."
"If you get this error message again,"
"call SSG (02) 858-5854 for"
"a new floppy disk."
""
"      Press [Enter] to Quit."

WAIT 47 19
WINCLOSE
