yogesh12
Posts: 23
Joined: Mon Sep 01, 2008 6:52 am

How to restrict Installation to happen only on Windows 7?

Hello All,

We are building different packages for 32 and 64 bit systems.
we want to restrict that my 32 bit package must get installed on Windows 7 (32-bit) and 64 bit package must get installed on Windows 7 (64-bit) only.

In the "Custom Launch Conditions" we have added the condition as "VersionNT = 601" and Description="Installation on Windows 7 only.".
But its getting installed on Windows 2008 R2 server as well and that is not our requirement.

Please suggest us is there away to address this.

Thanks,
Yogesh
Dan
Posts: 4529
Joined: Wed Apr 24, 2013 3:51 pm

Re: How to restrict Installation to happen only on Windows 7?

Hi Yogesh,

This is happening because both Windows 7 and Windows Server 2008 R2 have the same VersionNT = 601.

In order to restrict the installation, you need to use the MsiNTProductType property.

So, in order to install only on Windows 7, the following condition should be used:

Code: Select all

 VersionNT = 601 AND MsiNTProductType = 1
If you want to only install on Windows Server 2008 R2, the following condition should be used:

Code: Select all

VersionNT = 601 AND MsiNTProductType <> 1
If there is anything else I can help you with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”