From 949ee7c30806357a5e7fc678c7bbf53f991c71e8 Mon Sep 17 00:00:00 2001 From: Andras Timar Date: Fri, 18 Nov 2011 23:40:08 +0100 Subject: add --enable-silent-msi configure switch On Windows it is now configurable to create an MSI installer which installs LibreOffice without user interaction. --- solenv/bin/modules/installer/windows/property.pm | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'solenv') diff --git a/solenv/bin/modules/installer/windows/property.pm b/solenv/bin/modules/installer/windows/property.pm index b7aa5ca03685..ee33596760cb 100644 --- a/solenv/bin/modules/installer/windows/property.pm +++ b/solenv/bin/modules/installer/windows/property.pm @@ -480,6 +480,8 @@ sub update_property_table my $propertyfile = installer::files::read_file($properyfilename); + my $hasarpnomodify = false; + # Getting the new values # Some values (arpcomments, arpcontacts, ...) are inserted from the Property.mlf @@ -504,6 +506,17 @@ sub update_property_table ${$propertyfile}[$i] =~ s/\bPRODUCTNAMETEMPLATE\b/$productname/; ${$propertyfile}[$i] =~ s/\bPRODUCTVERSIONTEMPLATE\b/$productversion/; ${$propertyfile}[$i] =~ s/\bQUICKSTARTERLINKNAMETEMPLATE\b/$quickstarterlinkname/; + if ( ${$propertyfile}[$i] =~ m/\bARPNOMODIFY\b/ ) { $hasarpnomodify = true; } + } + + # Check if are building silent MSI + if ( $ENV{ENABLE_SILENT_MSI} eq "TRUE" ) + { + push(@{$propertyfile}, "LIMITUI" . "\t" . "1" . "\n"); + if ( !($hasarpnomodify) ) + { + push(@{$propertyfile}, "ARPNOMODIFY" . "\t" . "1" . "\n"); + } } # Setting variables into propertytable -- cgit