This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: InstallScript Question
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 15, 2013
09:06 AM
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 🙂
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 🙂
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 15, 2013
12:57 PM
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;
-------------
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;
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)