; FLAG1 TRUE if on Win 3.1
; FLAG3 TRUE if user wants to register.
; FLAG4 TRUE if user wants HD version installed.
; FLAG5 TRUE for Win32s is up-to-date.
; FLAG6 TRUE for Win32s to be installed.
; FLAG7 TRUE for Win32s install failure.
; FLAG8 TRUE if user wants to reboot.

[Ident]
Version=0911
ProductID=32025
PatchVersion=0.9.1.1

[Script]
:Begin
;
RESETFLAGS
NOTWINNT FLAG1
;
PICKDEST End
;
COPY
;
; Delete old settings
DELETEFILE *DESTDIR\*.log
DELETEFILE *DESTDIR\*.ini
DELETEFILE *DESTDIR\*.sav
;
ADDPROGMANGROUP HoyleŽ
ADDPROGMANITEM *DESTDIR\Card.EXE, Title, *DESTDIR\Card.ICO
;
; *** Start Win32s stuff **
FLAG1 GOTO DOWIN32S
GOTO AFTERWIN32S
:DOWIN32S
VERSIONCHECK *SYSTEMDIR\WIN32S16.DLL 1.30.172.0 FLAG5
FLAG5 GOTO WIN32S
GOTO AFTERWIN32S
:WIN32S
ADDTOINI *SYSTEMDIR\WIN32S.INI, Win32s, Setup, 0
ADDTOINI *SYSTEMDIR\WIN32S.INI, OLE, Setup, 0
DIALOG Win32sDialog
FLAG6 run 0 *sourcedir\win32s\wsetup.exe *sourcedir\win32s\wsetup.exe
VERSIONCHECK *SYSTEMDIR\WIN32S16.DLL 1.30.172.0 FLAG7
FLAG7 GOTO WIN32SERROR
GOTO AFTERWIN32S
:WIN32SERROR
Dialog Win32sErrorDialog
GOTO END
:AFTERWIN32S
; *** End Win32s stuff ***
;
DIALOG Register
FLAG3 REGISTER
;
FLAG22 DIALOG NeedToRestart
FLAG22 GOTO AFTERRESTARTDIALOG
FLAG6 DIALOG NeedToRestart
FLAG6 GOTO AFTERRESTARTDIALOG
:AFTERRESTARTDIALOG
FLAG8 RESTARTWINDOWS
;
DIALOG AllDone
;
:End
END

[Requirements]
WinVer=310
CPU=486-66
Colors=256
256only=FALSE
Wave=1
MIDI=0
CDROM=2
ScreenWidth=640
ScreenHeight=480
MemKB=8192
PhysicalMem=7168
VideoSpeed=500

[Archives]
;HD\	, 1, 0, 0

[Files]
*destdir\Card.EXE   	,NOARCHIVE      ,1      ,1272320	,1
*destdir\Card.HLP   	,NOARCHIVE      ,1      ,15127		,1
*destdir\Card.ico   	,NOARCHIVE      ,1      ,1078		,1
*destdir\sos32s03.dll	,NOARCHIVE	,1	,24064		,1
*destdir\sos9503.dll	,NOARCHIVE	,1	,105472		,1
*destdir\soslibs3.dll	,NOARCHIVE	,1	,76941		,1
;
*destdir\card.prf	,NOARCHIVE      ,1      ,10514606	,1
*destdir\crdsyncs.prf	,NOARCHIVE      ,1      ,10702		,1
*destdir\crd1.prf	,NOARCHIVE      ,1      ,3104908	,1
*destdir\blinks.prf	,NOARCHIVE      ,1      ,2611		,1
*destdir\gendemo.prf	,NOARCHIVE      ,1      ,7612305	,1
;

[Setup]
SetupSize=2000
CanInstallDOS=No

[Dialogs]
;
BEGIN 2, NeedToRestart
NeedToRestartTitle
1, RestartText1
1, RestartText2
10, OKText, (), FLAG8
10, NOText
END
;
BEGIN 3, Register
RegisterTitle
1, RegisterPrompt1
10, YESText, (), FLAG3
13, NOText
END
;
BEGIN 4, AllDone
AllDoneTitle
1, AllDonePrompt1
1, AllDonePrompt2
10, OKText
END
;
BEGIN 5, AllIsOK
AllIsOKTitle
1, GoodNews
10, OKText
END
;
BEGIN 7, NotInstalled
AllDoneNoGoodTitle
1, AllDoneNoGood
10, OKText
END
;
