mirror of
https://github.com/shlomif/PySolFC.git
synced 2025-04-05 00:02:29 -04:00
test Windows version in the installer
Windows XP SP3 or higher is required see issue #161
This commit is contained in:
parent
b6f014f6e0
commit
068d72d634
2 changed files with 22 additions and 2 deletions
|
@ -35,7 +35,7 @@ and implemented some other enhancements.
|
|||
|
||||
## Installation.
|
||||
|
||||
We provide an [installer for Windows](https://sourceforge.net/projects/pysolfc/files/PySolFC/)
|
||||
We provide an [installer for Windows](https://sourceforge.net/projects/pysolfc/files/PySolFC/) (requires Windows XP SP3 or higher)
|
||||
as well as an Android package on F-droid.
|
||||
|
||||
For installation from source, see: http://www.python.org/doc/current/inst/
|
||||
|
|
|
@ -76,6 +76,26 @@ begin
|
|||
Result := False;
|
||||
end;
|
||||
end;
|
||||
''', file=out)
|
||||
|
||||
function InitializeSetup(): Boolean;
|
||||
var
|
||||
Version: TWindowsVersion;
|
||||
begin
|
||||
GetWindowsVersionEx(Version);
|
||||
|
||||
// Windows XP SP3 and higher
|
||||
if ((Version.Major = 5) and ((Version.Minor = 1) and
|
||||
(Version.ServicePackMajor >= 3) or (Version.Minor > 1)) or
|
||||
(Version.Major > 5)) then
|
||||
Result := True
|
||||
else begin
|
||||
MsgBox(
|
||||
'This version of Windows is not supported. PySolFC %(prog_version)s \
|
||||
requires Windows XP SP3 or higher.',
|
||||
mbCriticalError, MB_OK);
|
||||
Result := False;
|
||||
end;
|
||||
end;
|
||||
''' % vars(), file=out)
|
||||
|
||||
out.close()
|
||||
|
|
Loading…
Add table
Reference in a new issue