summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorAndras Timar <atimar@suse.com>2011-11-18 23:40:08 +0100
committerAndras Timar <atimar@suse.com>2011-11-18 23:47:35 +0100
commit949ee7c30806357a5e7fc678c7bbf53f991c71e8 (patch)
tree855b44ad5b9c51d8f98291dc79f47f87b8915089 /solenv
parent59a0064c2a195368379c5816640737e787550207 (diff)
add --enable-silent-msi configure switch
On Windows it is now configurable to create an MSI installer which installs LibreOffice without user interaction.
Diffstat (limited to 'solenv')
-rw-r--r--solenv/bin/modules/installer/windows/property.pm13
1 files changed, 13 insertions, 0 deletions
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