[Incident]: Some users report they are unable to access the case portal. Please see this community notice for more information.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Mohanv
Level 2

Verify the OS version in Install Shield

Hi,

Can anyone please help me to understand how to script in Install Shield to get the OS version such as Windows XP, Windows Vista, including the operating bit(32 bits or 64 bits)?

Regards,
Mohan
Labels (1)
0 Kudos
1 Reply
rune_paulsen
Level 5

With VBscript for example:


Dim OS, Name

OS = Session.Property ("VersionNT")
Name = Session.Property ("ProductName")
Server = Session.Property ("MsiNTProductType")

'Msgbox OS

If(OS = "502" AND Server = "3") then 'Windows server 2003 detected
End If
0 Kudos