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: SYSINFO.WINNT.nServicePack fails on WIN SERVER 2008 R2
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
Apr 03, 2012
04:25 AM
SYSINFO.WINNT.nServicePack fails on WIN SERVER 2008 R2
Hi all,
Using basic MSI, I need to enable installation only if the OS is 64 bit, WIN SERVER 2008 R2 SP1.
I successfully use this code to detect WIN SERVER 2008 R2 on 64 bit:
if (svVersionNT64 =="601") then// 64 BIT, win server 2008 R2 or WIN7
if (!(SYSINFO.nOSProductType == VER_NT_WORKSTATION)) then //server
but when I debug this: if (SYSINFO.WINNT.nServicePack >= 1)
I get false value, although the target machine has SP1 installed.
Any suggestions for checking the SP value correctly on WIN SERVER 2008 R2?
Thanks!
Sharon.
Using basic MSI, I need to enable installation only if the OS is 64 bit, WIN SERVER 2008 R2 SP1.
I successfully use this code to detect WIN SERVER 2008 R2 on 64 bit:
if (svVersionNT64 =="601") then// 64 BIT, win server 2008 R2 or WIN7
if (!(SYSINFO.nOSProductType == VER_NT_WORKSTATION)) then //server
but when I debug this: if (SYSINFO.WINNT.nServicePack >= 1)
I get false value, although the target machine has SP1 installed.
Any suggestions for checking the SP value correctly on WIN SERVER 2008 R2?
Thanks!
Sharon.
1 Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 04, 2012
06:14 PM
With a Basic MSI project, one could set up a launch condition with the following condition to detect Windows Server 2008 R2 SP1.
VersionNT = 601 AND MsiNTProductType = 3 AND ServicePackLevel = 1For more info, please refer to Operating System Property Values.
