summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2015-04-09 19:17:52 +0200
committerAndras Timar <andras.timar@collabora.com>2015-04-10 07:10:06 +0000
commitd96d76480257cc9cfd5c6dfa8eba6847d5fdafc4 (patch)
tree0eb49f613c9718c8c17477787c1021151b6ab7d6 /solenv
parentc18cdfb1c16f4c334f31dfb9a09ef9ef20fcf752 (diff)
Don't try to install LibreOffice on XP, if it was built with SDK 8.x or higher
Change-Id: I79a357a51a3d98774745001d5f99b045ef964255 Reviewed-on: https://gerrit.libreoffice.org/15218 Reviewed-by: Andras Timar <andras.timar@collabora.com> Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'solenv')
-rw-r--r--solenv/bin/modules/installer/windows/property.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/solenv/bin/modules/installer/windows/property.pm b/solenv/bin/modules/installer/windows/property.pm
index d09d315fa81a..d96678b602e3 100644
--- a/solenv/bin/modules/installer/windows/property.pm
+++ b/solenv/bin/modules/installer/windows/property.pm
@@ -418,6 +418,14 @@ sub update_property_table
my $productname = get_productname_for_property_table($language, $allvariables);
my $productversion = get_productversion_for_property_table();
my $quickstarterlinkname = get_quickstarterlinkname_for_property_table($language, $allvariables);
+ my $windowsminversiontext = "Windows Vista";
+ my $windowsminversionnumber = "600";
+
+ if ( $allvariables->{'WINDOWSSDKVERSION'} eq '70' )
+ {
+ $windowsminversiontext = "Windows XP";
+ $windowsminversionnumber = "501";
+ }
# Updating the values
@@ -431,6 +439,8 @@ sub update_property_table
${$propertyfile}[$i] =~ s/\bPRODUCTNAMETEMPLATE\b/$productname/;
${$propertyfile}[$i] =~ s/\bPRODUCTVERSIONTEMPLATE\b/$productversion/;
${$propertyfile}[$i] =~ s/\bQUICKSTARTERLINKNAMETEMPLATE\b/$quickstarterlinkname/;
+ ${$propertyfile}[$i] =~ s/\bWINDOWSMINVERSIONTEXTTEMPLATE\b/$windowsminversiontext/;
+ ${$propertyfile}[$i] =~ s/\bWINDOWSMINVERSIONNUMBERTEMPLATE\b/$windowsminversionnumber/;
if ( ${$propertyfile}[$i] =~ m/\bARPNOMODIFY\b/ ) { $hasarpnomodify = 1; }
}