Windows MSI: set minimum support for MSI installation to Windows 7

This commit is contained in:
Mounir IDRASSI 2022-02-01 23:30:05 +01:00
parent 9b88625d97
commit 06841f67c7
No known key found for this signature in database
GPG Key ID: 02C30AE90FAE4A6F

View File

@ -82,16 +82,16 @@
Schedule="afterInstallExecute" Schedule="afterInstallExecute"
/> />
<!-- Windows 8 (602) is our Min OS --> <!-- Windows 7 (601) is our Min OS -->
<!-- See https://docs.microsoft.com/en-us/windows/win32/msi/operating-system-property-values --> <!-- See https://docs.microsoft.com/en-us/windows/win32/msi/operating-system-property-values -->
<!-- 'Installed' is a Windows Installer property that is set only if the product is installed per-machine or for the current user. <!-- 'Installed' is a Windows Installer property that is set only if the product is installed per-machine or for the current user.
Using !Installed ensures the check is only done when the user is installing the application, rather than on a repair or remove --> Using !Installed ensures the check is only done when the user is installing the application, rather than on a repair or remove -->
<!-- Notice the ! : If Not Installed AND VersionNT < 602 => Show error message --> <!-- Notice the ! : If Not Installed AND VersionNT < 601 => Show error message -->
<Condition Message="!(loc.MinOs)"> <Condition Message="!(loc.MinOs)">
<![CDATA[ <![CDATA[
Installed Installed
OR (VersionNT = 602) OR (VersionNT = 601)
OR (VersionNT > 602) OR (VersionNT > 601)
]]> ]]>
</Condition> </Condition>