![]() |
System Requirement Page
Anyone have a new version System Requirement Page (HWREQ_Page), because in the version that i have i cant make compare mayor, minor, and Service Pack windows version
|
http://fileforums.com/showthread.php?t=95775
use this library |
I have w7 service pack 1
and if i set #define WinVerMajor "8" #define WinVerMinor "3" #define WinVerService "0" WHY?? Alway CompareWindows "OK" *Hwerq Module.iss* function HWREQ_CompareWindows(): Boolean; var tmp: TWindowsVersion; begin Result:= False; if HWREQ.WinVer.NTPlatform then begin if (tmp.Major <= {#WinVerMajor}) then if (tmp.Minor <= {#WinVerMinor}) then if (tmp.ServicePackMajor <= {#WinVerService}) then Result:= True; end; end; |
You would rather get build number.
Build numbers simplify everything, Windows 7 build is 7600, SP1 version is 7601. #define WinBuild "7600" procedure GetSysInfo(var SysInfo: TSysInfo); external 'GetSysInfo@files:Isab.dll stdcall delayload'; var SystemInfo: TSysInfo; GetSysInfo(SystemInfo); function CompreWindows:Boolean; begin Result:=SystemInfo.OSBuildNumbers>={#WinBuild}; end; http://fileforums.com/showpost.php?p=430455&postcount=1 |
1 Attachment(s)
Quote:
|
function HWREQ_CompareWindows(): Boolean;
var S: String; begin RegQueryStringValue(HKLM,'SOFTWARE\Microsoft\Windo ws NT\CurrentVersion','CurrentBuildNumber',S); Result:= StrToInt(S) >= {#WinBuild}; end; |
razor bro thanks for you help, now i need your help again
how i do to add and compare the directx version in system page requeriments |
| All times are GMT -7. The time now is 19:46. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com