Install_VFW% = 1 ''default is to install VFW drivers
WIN_Sys_Write% = 1 ''default...can write to WIN SYS directory
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
WinCheck95$ = WinSysDir$+"IOSUBSYS"
HasWin95% = DoesDirExist(WinCheck95$)
WinCheckNT$ = WinDir$+"SYSTEM32"
HasNT% = DoesDirExist(WinCheckNT$)
'$IFDEF DEMOQUICK
PRODUCT$ = "DEMOQUICK"
'$ELSEIFDEF VHELP
PRODUCT$ = "VHELP"
'$ELSEIFDEF PRODDE
PRODUCT$ = "PRODDE"
'$ELSEIFDEF CBIQUICK
PRODUCT$ = "CBIQUICK"
'$ELSEIFDEF CBIPRO
PRODUCT$ = "CBIPRO"
'$ELSE
i% = DoMsgBox("Product type not defined.", "Define product", MB_OK+MB_TASKMODAL+MB_ICONHAND)
END
'$ENDIF
WinSysDir$ = GetWindowsSysDir() ''Avoid the OnWindowsNT() call due to extra space
IF (HasNT%) OR ((MajorVer% = 3) AND (MinorVer% = 95)) THEN
Install_VFW% = 0
END IF
SetBitmap CUIDLL$, LOGO
IF (PRODUCT$="DEMOQUICK") OR (PRODUCT$="VHELP") OR (PRODUCT$="PRODDE") THEN
SetTitle "Demo/Tutorial Install ... Created with DEMOquick"
IF ((OKWRITE% <> 1) OR (OKWRITE1% <> 1) OR (OKWRITE2% <> 1) OR (OKWRITE3% <> 1)) THEN
i% = DoMsgBox("Can't access WINDOWS directory...VFW Video drivers will not be installed. Continuing the install.", "Setup Will Continue...", MB_OK+MB_TASKMODAL+MB_ICONINFORMATION)
i% = DoMsgBox("Your system administrator will need to load Microsoft Video-For-Windows 1.1a drivers if not already present.", "Video-For-Windows Drivers", MB_OK+MB_TASKMODAL+MB_ICONINFORMATION)
i% = DoMsgBox("Can't access WINDOWS directory. Drivers not installed. Install continuing.", "Video-For-Windows Drivers", MB_OK+MB_TASKMODAL+MB_ICONINFORMATION)
ClearCopyList
ELSE
''Check windrive diskspace
SizeReq& = GetCopyListCost ("","", "")
IF SizeReq& <> 0 THEN
i% = DoMsgBox("The WINDOWS directory does not have enough disk space. VFW Drivers will need to be installed if not already present.", "Can't Install Video-For-Windows Drivers", MB_OK+MB_TASKMODAL+MB_ICONHAND)
ClearCopyList
Install_VFW% = 0
ELSE
CopyFilesInCopyList
ENDIF
ENDIF
ENDIF
''Update WIN.INI and SYSTEM.INI......................................
''Do RESTART if needed--------------------------------------------
IF RestartListEmpty() = 0 THEN
i% = DoMsgBox("Windows will now be exited and restarted.", "Setup Complete", MB_OK+MB_ICONINFORMATION)
err:
i% = ExitExecRestart()
i% = DoMsgBox("Windows cannot be restarted because MS-DOS applications are active. Close all MS-DOS applications and then click on OK.", "Setup Complete", MB_OK+MB_ICONSTOP)