Hi all,
Using basic MSI (isd 2009), 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.
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

SYSINFO.WINNT.nServicePack fails on WIN SERVER 200
Started by
SHARONC
, Apr 03 2012 10:58
2 replies to this topic
Posted 03 April 2012 - 11:29
Why are you using InstallScript for this? Please try the built in properties like ServicePackLevel, VersionNT64, MsiNTProductType etc.
Stefan Krüger
InstallSite.org twitter facebook
Posted 03 April 2012 - 13:48
Thanks a lot Stefan!
I am now using ServicePackLevel.
This was very helpful.
Sharon.
I am now using ServicePackLevel.
This was very helpful.
Sharon.