home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Evita!
/
Evita2-de-2.iso
/
TANGO!
/
STP
/
STCHECK.INC
< prev
next >
Wrap
Text File
|
1995-09-30
|
2KB
|
92 lines
' ===================================================================
' Sierra 3
' ARCHIVO: STCHECK.INC
' PROYECTO: INSTALAR (Tango!) VERSION: 0.0
' CULPABLE: Sergio D. Llorens FECHA: 2/8/95
' ULTIMA MODIFICACION: 2/8/95
' DESCRIPCION: Chequeo del sistema para instalacion de Tango!
' ===================================================================
CONST CHECKING = 170
CONST CHECK_CPU = 171
CONST CHECK_WINVER = 172
CONST CHECK_VIDEO = 173
CONST CHECK_RAM = 174
CONST CHECK_AUDIO = 175
Declare Sub CheckSystem Lib "mscuistf.dll"
SYSCHECK:
SetSymbolValue "DIAG_CPU", "OK"
SetSymbolValue "DIAG_WINVER", "OK"
SetSymbolValue "DIAG_VIDEO", "OK"
SetSymbolValue "DIAG_RAM", "OK"
SetSymbolValue "DIAG_AUDIO", "OK"
sz$ = UIStartDlg( "mscuistf.dll", CHECKING, "FCheckingDlgProc", 0, "" )
CheckSystem
UIPop 1
' --- CPU < 386: Aborta instalaci≤n
SYSCHECK_CPU:
If GetSymbolValue( "DIAG_CPU" ) = "ERROR" Then
sz$ = UIStartDlg("mscuistf.dll", CHECK_CPU, "FInfoDlgProc", 0, "")
If sz$ = "REACTIVATE" THEN
GoTo SYSCHECK_CPU
End If
UIPop 1
' GoTo QUIT_FAILURE
End If
' --- WinVer < 3.1: Aborta instalaci≤n
SYSCHECK_WINVER:
If GetSymbolValue( "DIAG_WINVER" ) = "ERROR" Then
sz$ = UIStartDlg("mscuistf.dll", CHECK_WINVER, "FInfoDlgProc", 0, "")
If sz$ = "REACTIVATE" THEN
GoTo SYSCHECK_WINVER
End If
UIPop 1
' GoTo QUIT_FAILURE
End If
' --- Video no se banca 256 colores o mas: Continua instalaci≤n
SYSCHECK_VIDEO:
If GetSymbolValue( "DIAG_VIDEO" ) = "ERROR" Then
sz$ = UIStartDlg("mscuistf.dll", CHECK_VIDEO, "FInfoDlgProc", 0, "")
If sz$ = "REACTIVATE" THEN
GoTo SYSCHECK_VIDEO
End If
UIPop 1
End If
' --- RAM < 4MB: Continua instalaci≤n
SYSCHECK_RAM:
If GetSymbolValue("DIAG_RAM" ) = "ERROR" Then
sz$ = UIStartDlg("mscuistf.dll", CHECK_RAM, "FInfoDlgProc", 0, "")
If sz$ = "REACTIVATE" THEN
GoTo SYSCHECK_RAM
End If
UIPop 1
End If
' --- No hay plaqueta de audio: Continua instalaci≤n
SYSCHECK_AUDIO:
If GetSymbolValue( "DIAG_AUDIO" ) = "ERROR" Then
sz$ = UIStartDlg("mscuistf.dll", CHECK_AUDIO, "FInfoDlgProc", 0, "")
If sz$ = "REACTIVATE" THEN
GoTo SYSCHECK_AUDIO
End If
UIPop 1
End If
RETURN