home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sexy Bytes: Outside Dreams
/
SexyBytes_OutsideDreams_PCD0895.bin
/
setup
/
erotic.mst
< prev
next >
Wrap
Text File
|
1995-08-17
|
7KB
|
285 lines
'**************************************************************************
'* Erotic... Setup
'**************************************************************************
'$DEFINE DEBUG ''Define for script development/debugging
'$INCLUDE 'setupapi.inc'
'$INCLUDE 'msdetect.inc'
'$INCLUDE 'msregdb.inc'
'$INCLUDE 'msshared.inc'
''Dialog ID's
CONST OPTIONS = 800
CONST ASKQUIT = 200
CONST APPHELP = 900
CONST EXITE = 2000
CONST EXITG = 2200
CONST QUITE = 2300
CONST QUITG = 2700
CONST FAILE = 2800
CONST FAILG = 3000
CONST ASKG = 3100
CONST ASKE = 600
''Bitmap ID
CONST LOGO = 1
GLOBAL DEST$ ''Default destination directory.
GLOBAL OPTCUR$ ''Option selection from option dialog.
GLOBAL NAM$ ''User Name
GLOBAL FIRM$ ''Company Name
GLOBAL WINDRIVE$ ''Windows Drive Letter VFW
SrcDir$ = GetSymbolValue("STF_SRCDIR")
WinDir$ = GetWindowsDir()
WinSysDir$ = GetWindowSSysDir()
DECLARE SUB Install
DECLARE FUNCTION MakePath (szDir$, szFile$) AS STRING
DECLARE SUB BWCCREGISTER LIB "BWCC.DLL"
CONST SW_SHOWMAXIMIZED=3
DECLARE FUNCTION ShowWindow LIB "user.exe" (hWnd%,iShow%) AS INTEGER
INIT:
BWCCREGISTER
CUIDLL$ = "mscuistf.dll" ''Custom user interface dll
HELPPROC$ = "FHelpDlgProc" ''Help dialog procedure
hWnd%=HwndFrame()
junk%=ShowWindow(hWnd%,SW_SHOWMAXIMIZED)
MajorVer% = GetWindowsMajorVersion()
MinorVer% = GetWindowsMinorVersion()
IF MajorVer% < 3 OR (MajorVer% = 3 AND MinorVer% < 10) THEN
i% = DoMsgBox("Microsoft Windows version 3.10 or greater is required for this software. Please upgrade your version of Windows.", "Installation Problem", MB_OK+MB_TASKMODAL+MB_ICONHAND)
END
END IF
SetBitmap CUIDLL$, LOGO
SetTitle "Setup"
szInf$ = GetSymbolValue("STF_SRCINFPATH")
IF szInf$ = "" THEN
szInf$ = GetSymbolValue("STF_CWDDIR") + "erotic.INF"
END IF
ReadInfFile szInf$
OPTCUR$ = "1"
DEST$ = "C:\erotic"
WINDRIVE$ = MID$(WinDir$, 1, 1)
FIRM$ = ""
NAM$ = ""
UDEST$ = ""
'$IFDEF DEBUG
i% = SetSizeCheckMode(scmOnIgnore) '' could use scmOff; def = scmOnFatal
WinDrive$ = MID$(GetWindowsDir, 1, 1)
IF IsDriveValid(WinDrive$) = 0 THEN
i% = DoMsgBox("Windows drive ('"+WinDrive$+"') is not a valid drive.", "DEBUG", MB_TASKMODAL+MB_ICONHAND+MB_OK)
GOTO QUIT
END IF
'$ENDIF ''DEBUG
OPTION:
SetSymbolValue "RadioDefault", OPTCUR$
OPTL1:
sz$ = UIStartDlg(CUIDLL$, OPTIONS, "FRadioDlgProc", APPHELP, HELPPROC$)
OPTCUR$ = GetSymbolValue("ButtonChecked")
IF sz$ = "CONTINUE" THEN
UIPop(1)
IF OPTCUR$ = "1" THEN '' Deutsch
GOTO INSTALL_B
ELSE
IF OPTCUR$ = "2" THEN '' English
GOTO INSTALL_B
END IF
END IF
ELSE
GOSUB ASKQUIT
GOTO OPTION
END IF
INSTALL_B:
Install
QUIT:
ON ERROR GOTO ERRQUIT
IF ERR = 0 THEN
IF OPTCUR$ = "1" THEN
dlg% = EXITG
ELSE
IF OPTCUR$ = "2" THEN
dlg% = EXITE
END IF
END IF
ELSEIF ERR = STFQUIT THEN
IF OPTCUR$ = "1" THEN
dlg% = QUITG
ELSE
IF OPTCUR$ = "2" THEN
dlg% = QUITE
END IF
END IF
ELSE
IF OPTCUR$ = "1" THEN
dlg% = FAILG
ELSE
IF OPTCUR$ = "2" THEN
dlg% = FAILE
END IF
END IF
END IF
QUITL1:
sz$ = UIStartDlg(CUIDLL$, dlg%, "FInfo0DlgProc", 0, "")
IF sz$ = "REACTIVATE" THEN
GOTO QUITL1
END IF
UIPop 1
END
ERRQUIT:
IF OPTCUR$ = "1" THEN
i% = DoMsgBox("Setup Quelle defekt, bitte nehmen Sie mit Sentfactor Limited Kontakt auf.", "Setup Meldung", MB_OK+MB_TASKMODAL+MB_ICONHAND)
ELSE
IF OPTCUR$ = "2" THEN
i% = DoMsgBox("Setup sources were corrupted, please contact Sentfactor Limited.", "Setup Message", MB_OK+MB_TASKMODAL+MB_ICONHAND)
END IF
END IF
END
ASKQUIT:
sz$ = UIStartDlg(CUIDLL$, ASKQUIT, "FQuitDlgProc", 0, "")
IF sz$ = "EXIT" THEN
UIPopAll
ERROR STFQUIT
ELSEIF sz$ = "REACTIVATE" THEN
GOTO ASKQUIT
ELSE
UIPop 1
END IF
RETURN
ASK_G:
sz$ = UIStartDlg(CUIDLL$, ASKG, "FQuitDlgProc", 0, "")
IF sz$ = "EXIT" THEN
UIPopAll
ERROR STFQUIT
ELSEIF sz$ = "REACTIVATE" THEN
GOTO ASK_G
ELSE
UIPop 1
END IF
RETURN
ASK_E:
sz$ = UIStartDlg(CUIDLL$, ASKE, "FQuitDlgProc", 0, "")
IF sz$ = "EXIT" THEN
UIPopAll
ERROR STFQUIT
ELSEIF sz$ = "REACTIVATE" THEN
GOTO ASK_E
ELSE
UIPop 1
END IF
RETURN
'**
'** Purpose:
'** Builds the copy list and performs all installation operations.
'** Arguments:
'** none.
'** Returns:
'** none.
'*************************************************************************
SUB Install STATIC
SrcDir$ = GetSymbolValue("STF_SRCDIR")
WinDir$ = GetWindowsDir()
WinSysDir$ = GetWindowSSysDir()
IF OPTCUR$ = "1" THEN
CreateProgmanGroup "Erotic", "", cmoNone
ShowProgmanGroup "Erotic", 1, cmoNone
CreateProgmanItem "Erotic", "Outside Dreams", SrcDir$ + "deutsch" + "\" + "1066g.exe", "", cmoOverwrite
ELSE
CreateProgmanGroup "Erotic", "", cmoNone
ShowProgmanGroup "Erotic", 1, cmoNone
CreateProgmanItem "Erotic", "Outside Dreams", SrcDir$ + "english" + "\" + "1066e.exe", "", cmoOverwrite
ENDIF
END SUB
'**
'** Purpose:
'** Appends a file name to the end of a directory path,
'** inserting a backslash character as needed.
'** Arguments:
'** szDir$ - full directory path (with optional ending "\")
'** szFile$ - filename to append to directory
'** Returns:
'** Resulting fully qualified path name.
'*************************************************************************
FUNCTION MakePath (szDir$, szFile$) STATIC AS STRING
IF szDir$ = "" THEN
MakePath = szFile$
ELSEIF szFile$ = "" THEN
MakePath = szDir$
ELSEIF MID$(szDir$, LEN(szDir$), 1) = "\" THEN
MakePath = szDir$ + szFile$
ELSE
MakePath = szDir$ + "\" + szFile$
END IF
END FUNCTION