Startup State: Windows OS Service Pack version with OS bit

For a windows application, I create a deployment project in VS2010

. I want to add Launch Condition

for example:

The setup should start with:

  • Windows XP Service Pack 3 32-bit

    OR

  • Windows XP Service Pack 2 (SP2) 64-bit

I am currently trying with Condition (VersionNT = "501") AND (ServicePackLevel = "3")

, but this condition only checks for Windows XP and Service Pack version 3, which works on 32-bit Windows XP, but when I run on 64-bit Windows XP, it gives the message I gave.

So how can I check the Windows version and bit along with the service pack version?

+3


source to share


1 answer


I achieved this by writing this trigger condition:

((VersionNT = "501") AND (Not VersionNT64) AND (ServicePackLevel = "3")) OR ((VersionNT = "501") AND (VersionNT64) AND (ServicePackLevel = "2"))

      



VersionNT

and ServicePackLevel

will check the Windows OS name and service pack version. more details @ https://msdn.microsoft.com/en-us/library/aa370556%28v=vs.85%29.aspx

VersionNT64

means 64 bit OS and Not VersionNT64

32 bit OS. more details @ http://blogs.flexerasoftware.com/installtalk/2010/11/using-msi-launch-conditions-to-prevent-installation-on-unsupported-windows-platforms.html

0


source







All Articles