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: Windows 7 - MIN_Win7_Server2008R2_SQLVERSION
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
‎Oct 12, 2009
10:34 AM
Windows 7 - MIN_Win7_Server2008R2_SQLVERSION
1st of 3 code snippets below works. Second 2 do not.
// The following code works:
if (SYSINFO.WINNT.bWinVista=TRUE) then
szSQLVersion = MIN_Vista_SQLVERSION;
endif;
//below does not work
if (SYSINFO.WINNT.bWin7_Server2008R2=TRUE) then
MessageBox("1. 2008 or Win7",SEVERE);
szSQLVersion = MIN_Win7_Server2008R2_SQLVERSION;
endif;
//below does not work either
if (SYSINFO.nISOSL=ISOSL_WIN7_SERVER2008R2) then
MessageBox("2. 2008 or Win7",SEVERE);
szSQLVersion = MIN_Win7_Server2008R2_SQLVERSION;
endif;
Any ideas?
Thanks,
Ron
// The following code works:
if (SYSINFO.WINNT.bWinVista=TRUE) then
szSQLVersion = MIN_Vista_SQLVERSION;
endif;
//below does not work
if (SYSINFO.WINNT.bWin7_Server2008R2=TRUE) then
MessageBox("1. 2008 or Win7",SEVERE);
szSQLVersion = MIN_Win7_Server2008R2_SQLVERSION;
endif;
//below does not work either
if (SYSINFO.nISOSL=ISOSL_WIN7_SERVER2008R2) then
MessageBox("2. 2008 or Win7",SEVERE);
szSQLVersion = MIN_Win7_Server2008R2_SQLVERSION;
endif;
Any ideas?
Thanks,
Ron
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 13, 2009
01:47 PM
If you are running this from a custom action in an MSI package, Windows shims msiexec.exe with a GetVersion/Ex lie to indicate the process is running on a Vista/2008 (version 6.0) machine. More information is available here.
If you are running in an immediate custom action, you can read the value of the VersionNT property which will have the correct Windows version.
If you are running in an immediate custom action, you can read the value of the VersionNT property which will have the correct Windows version.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 15, 2009
11:49 AM
🙂 Thanks Josh. VersionNT is correct for Windows 7 as you say. Although as it was pointed out on the link you provided:
"...unfortunately Vista and Server 2008 share the same VersionNT value. This means you have to additionally check to see if the MsiNTProductType = 1 (Server 2008) or 3 (Desktop a.k.a Vista)."
Thanks Again,
Ron
"...unfortunately Vista and Server 2008 share the same VersionNT value. This means you have to additionally check to see if the MsiNTProductType = 1 (Server 2008) or 3 (Desktop a.k.a Vista)."
Thanks Again,
Ron
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 28, 2009
02:18 PM
I was just reading in a different post that a MsiNTProductType of 1 is client and >1 is server OS. Wouldn't that mean Vista would be VersionNT = 600 And MsiNTProductType = 1? And Windows 7, VersionNT = 601 And MsiNTProductType = 1?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 29, 2009
11:10 AM
Right. If you don't care about differentiating between client and server variants, you can ignore MsiNTProductType. If you need to do something differently between Vista and 2008, or Windows 7 and 2008 R2, then definitely read up on http://msdn.microsoft.com/en-us/library/aa370329(VS.85).aspx