Reputation: 359
I have a WIX setup MSI. I want to prevent it to install on WIN XP. I was using the InstallPrivileges property of WIX but it did not solve my problem:-
<Package InstallerVersion="200" Platform="$(var.Platform)" InstallPrivileges="limited" />
How can i achieve this?
Upvotes: 0
Views: 617
Reputation: 719
Priyanka, You are going in wrong direction.
InstallPrivileges attribute is use to specify the privileges required to install the package on Windows Vista and above.
Windows vista onward by default runs most applications with least privilege access (non-admin) in an attempt to keep both malicious virus code and inexperienced end users from damaging the system.
limited and elevated value from InstallPrivileges attribute specifies whether to use elevated privileges or not.
If you select Limited installer will run without Admin privileges and if you use elevated then your installer will ask for administrator privileges using UAC prompt.This attribute will be neglected if you are running it on windows xp (NOT SURE).
And Now to completely block your installer to run on windows XP then you need to use VersionNT property which will detect the version of the user's operating system.
The following sample demonstrates how to use this property to block installation of an application on operating systems prior to Windows Vista/Windows Server 2008
<Condition Message="This application is only supported on Windows Vista, Windows Server 2008, or higher.">
<![CDATA[Installed OR (VersionNT >= 600)]]>
</Condition>
Refer VersionNT values to choose for Which OS you want to block your installer.
refer for more info How To: Block Installation Based on OS Version
Upvotes: 3