i am a first time user. i have version 5.05 and am trying to get a script to run "on click". i continue to get a syntax error (it refers to the text in bold):
Syntax Error: [Location="Install:System Test", Event "On Click", Line=10]
Error Detail: [`then' expected near `='] in [if result1 = true, then ]
any help would be appreciated... and this is the script that i have created....
result1 = System.GetOSName("Windows XP", "Windows Server 2003', "Windows 2000", "Windows NT 4", "Windows NT 3", "Windows ME", "Windows 98SE", true);
result1 = System.GetOSName("Windows '98", "Windows '95", false);
result2 = System.GetOSVersionInfo("MajorVersion", "MinorVersion", "BuildNumber", "PlatformId", "CSDVersion");
result3 = System.GetMemoryInfo("AvailableRAM");
Dialog.Message("System Information", "Result1 \nResult2 \nResult3",
MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
if result1 = true, then end
elseif result1 = false, then
Dialog.Message("Notice", "Your system is running a version of Windows that is incompatible
with the AccuShade software. The software can not be installed. Please upgrade your operating
system to Windows '98SE, Windows ME, Windows 2000, or Windows XP.",
MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
Application.Exit(0);
end if
if Result3 < "96" then
Dialog.Message("Notice", "Your System does not have enough RAM Memory to handle the installation or
the running of the AccuShade Color Retrieval System. Please upgrade your system's RAM to at least
128 MB (128,000 KB)."
MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
Application.Exit(0);
end if
end
Syntax Error: [Location="Install:System Test", Event "On Click", Line=10]
Error Detail: [`then' expected near `='] in [if result1 = true, then ]
any help would be appreciated... and this is the script that i have created....
result1 = System.GetOSName("Windows XP", "Windows Server 2003', "Windows 2000", "Windows NT 4", "Windows NT 3", "Windows ME", "Windows 98SE", true);
result1 = System.GetOSName("Windows '98", "Windows '95", false);
result2 = System.GetOSVersionInfo("MajorVersion", "MinorVersion", "BuildNumber", "PlatformId", "CSDVersion");
result3 = System.GetMemoryInfo("AvailableRAM");
Dialog.Message("System Information", "Result1 \nResult2 \nResult3",
MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
if result1 = true, then end
elseif result1 = false, then
Dialog.Message("Notice", "Your system is running a version of Windows that is incompatible
with the AccuShade software. The software can not be installed. Please upgrade your operating
system to Windows '98SE, Windows ME, Windows 2000, or Windows XP.",
MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
Application.Exit(0);
end if
if Result3 < "96" then
Dialog.Message("Notice", "Your System does not have enough RAM Memory to handle the installation or
the running of the AccuShade Color Retrieval System. Please upgrade your system's RAM to at least
128 MB (128,000 KB)."
MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
Application.Exit(0);
end if
end
Comment