CUIDLL$ = "mscuistf.dll" ''Custom user interface dll
INFFILE$ = "setup.inf"
WIN32ENABLED% = 0
TITLE$ = "MediaMania Demo Setup"
DEST$ = "C:\MDMDEMO"
WinDir$ = GetWindowsDir
IF IsWindowsShared THEN
SHAREDIR$ = WinDir$
ELSE
SHAREDIR$ = GetWindowsSysDir
END IF
MajorVer% = GetWindowsMajorVersion()
MinorVer% = GetWindowsMinorVersion()
Processor% = GetProcessorType()
WinSysDir$ = SHAREDIR$
WinSys32Dir$ = WinDir$ + "system32"
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
'Prevents installation on 286
IF Processor% < 3 THEN
i% = DoMsgBox("Video for Windows requires a 386 or greater processor or emulator.", "Installation Problem", MB_OK+MB_TASKMODAL+MB_ICONHAND)
END
END IF
' Use Wowexec to determine version of NT. 3.1 did not stamp wowexec and wow returns 3.1 as version
i% = DoMsgBox("Video for Windows does not run on Windows NT 3.1. Please upgrade your version of Windows.", "Installation Problem", MB_OK+MB_TASKMODAL+MB_ICONHAND)