RebootFlag = 0 ''if system ini and win ini don't have the
''appropriate entry for mci drivers, then the
''RebootFlag is set TRUE and a reboot dialog box
''appears on the screen reminding them to reboot
OPTCUR$ = "1"
DEST$ = ("C:\" + DIRNAME$)
MinorVersion=GetWindowsMinorVersion()
MajorVersion=GetWindowsMajorVersion()
IF MajorVersion < 3 OR (MajorVersion = 3 AND MinorVersion < 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
'$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
AVI_ENTRY:
WinDrive$ = MID$(GetWindowsDir, 1, 1)
IF GetFreeSpaceForDrive(WinDrive$) < AVISPACE THEN