Add checks for Win8.1 and Server2012 in the MSI installer (#18904)
This commit is contained in:
parent
80b5df4b7f
commit
2c70f3c7d3
@ -1,6 +1,4 @@
|
||||
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
||||
<!-- MSI installs on Win7 and above -->
|
||||
<?define MinOSVersionSupported = "VersionNT >= 601" ?>
|
||||
<!-- The URL for add/remove programs -->
|
||||
<!-- TBD:Point to the actual release -->
|
||||
<?define InfoURL="https://github.com/PowerShell/PowerShell" ?>
|
||||
@ -135,8 +133,11 @@
|
||||
<Publish Dialog="MyExitDialog" Control="Finish" Order="1" Event="DoAction" Value="LaunchApplication">LAUNCHAPPONEXIT=1</Publish>
|
||||
</UI>
|
||||
<!-- Prerequisites -->
|
||||
<Condition Message="Supported only on Windows 7 and above">
|
||||
<![CDATA[ Installed OR $(var.MinOSVersionSupported) ]]>
|
||||
<Condition Message="Supported only on Windows 8.1 and above">
|
||||
<![CDATA[ Installed OR MsiNTProductType <> 1 OR VersionNT >= 603 ]]>
|
||||
</Condition>
|
||||
<Condition Message="Supported only on Windows Server 2012 and above">
|
||||
<![CDATA[ Installed OR MsiNTProductType = 1 OR VersionNT >= 602 ]]>
|
||||
</Condition>
|
||||
<!-- Information About When Older Versions Are Trying To Be Installed-->
|
||||
<MajorUpgrade AllowSameVersionUpgrades="yes" DowngradeErrorMessage="A newer version of $(var.ProductName) is already installed." />
|
||||
|
Loading…
Reference in New Issue
Block a user