cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
us-vpn
Level 3

InstallScript Question

Hi,
I have an old VB6 Install Script project and I want to allow setup to run only on the following operating systems:

Windows XP, Windows Server 2003
Windows Vista, Windows Server 2008
Windows 7, Windows Server 2008 R2
Windows 8, Windows Server 2012
Windows 8.1, Windows Server 2012 R2

Since the newer Windows versions are not listed there, how can I do it?
Thanks 🙂
Labels (1)
0 Kudos
(1) Reply
us-vpn
Level 3

Is this correct?

-------------
Before Move Data > On Begin
-------------

BOOL osAccept;

osAccept = FALSE;

if (SYSINFO.nOSMajor = 5) then
if (SYSINFO.nOSMinor = 1) || (SYSINFO.nOSMinor = 2) then
osAccept = TRUE;
endif;
endif;

if (SYSINFO.nOSMajor = 6) then
if (SYSINFO.nOSMinor = 0) || (SYSINFO.nOSMinor = 1) || (SYSINFO.nOSMinor = 2) || (SYSINFO.nOSMinor = 3) then
osAccept = TRUE;
endif;
endif;

if osAccept = FALSE then
MessageBox("Application is not compatible with the current operating system.", SEVERE);
abort;
endif;
0 Kudos