home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Today - The Disc! 15
/
cdrt15.iso
/
mac
/
DKSETUP
/
DKSETUP.MST
< prev
next >
Wrap
Text File
|
1995-04-07
|
3KB
|
112 lines
'$DEFINE DEBUG
'$INCLUDE 'dkgen.inc'
' Paths and INI stuff
CONST APPLICATION_EXE_FILE = "dksd2pc.exe"
CONST INI_FILE_SOURCE = "WinPath" ' OR "AppPath"
CONST APPLICATION_README_FILE = "readme.txt"
CONST STR_README = "Read Me"
CONST STR_MSGCAPTION = "DK Sampler Setup"
CONST STR_PRODUCTNAME = "Dorling Kindersley Sampler CDROM"
CONST DEFAULT_INSTALL_PATH = "\DKMM\SAMPLER"
DECLARE SUB Install()
DECLARE SUB AddFilesToCopyList(szInstallType$)
Init:
Initialise STR_PRODUCTNAME, DEFAULT_INSTALL_PATH, STR_MSGCAPTION
WelcomeDlg:
if Welcome() = NAV_BACK then
' Don nothing - cant go back
end if
if TestSystem() = NAV_BACK then
goto WelcomeDlg
end if
AddFilesToCopyList "FULL"
CommonInstall:
InitCommonInstall
if szMinimalInstall = "ON" and GetFreeSpaceForDrive(mid$(szDestPath,1,1)) < MINIMUM_DISK_SPACE then
error ERR_NODISKSPACE
elseif GetFreeSpaceForDrive(mid$(szDestPath,1,1)) < GetDiskSpaceNeeded( asc(mid$(szDestPath, 1,1))-asc("A")+1 ) then
error ERR_NODISKSPACE
end if
UpdateIndeoAVIDrivers
Install
UpdateProgramManager STR_PRODUCTNAME, APPLICATION_EXE_FILE, "", APPLICATION_README_FILE, STR_README, 1
EndCommonInstall APPLICATION_README_FILE, 1
quit:
on error goto quit
select case ERR
case 0
hDlg = IDD_EXITSUCCESS
case STFQUIT
hDlg = IDD_EXITQUIT
case ERR_NODISKSPACE
hDlg = IDD_NODISKSPACE
case else
hDlg = IDD_EXITFAILURE
end select
UIPop 10
quit2:
szButton = UIStartDlg(CUIDLL_FILENAME, hDlg, "FInfo0DlgProc", 0, "")
select case szButton
case "REACTIVATE"
goto quit2
end select
UIPop 1
goto Finish
quitError:
dButton = DoMsgBox (STR_QUITERROR, STR_MSGCAPTION, MB_OK+MB_TASKMODAL+MB_ICONHAND)
end
Finish:
DeInitialise
stop
end
Sub Install() STATIC
cursor% = ShowWaitCursor()
CreateDir szDestPath, cmoNone
SetRestartDir szDestPath
RestoreCursor(cursor%)
CopyFilesInCopyList
Run ("regedit.exe /s " + MakePath(szWinPath, "mplayer.reg"))
Run ("regedit.exe /s " + MakePath(szWinSysPath, "OLE2.reg"))
Run ("regedit.exe /s " + MakePath(szWinSysPath, "cleanup.reg"))
Run ("profdisp.exe")
End Sub
Sub AddFilesToCopyList(szInstallType$) STATIC
cursor% = ShowWaitCursor()
AddSectionFilesToCopyList "BIN", szSrcBinPath, szDestPath
AddSectionFilesToCopyList "VfW Runtime", szSrcBinPath, szWinSysPath
AddSectionFilesToCopyList "OLE2", szSrcBinPath, szWinSysPath
AddSectionFilesToCopyList "ACM Drivers", szSrcBinPath, szWinSysPath
AddSectionFilesToCopyList "MPlayer", szSrcBinPath, szWinPath
AddSectionFilesToCopyList "AVICodecs", szSrcBinPath, szWinSysPath
RestoreCursor(cursor%)
End Sub