summaryrefslogtreecommitdiff
path: root/solenv/bin
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2013-09-12 06:29:13 +0200
committerThomas Arnhold <thomas@arnhold.org>2013-09-12 06:29:13 +0200
commit01f4383f62b0a4e3b9184456a923d6f8c975cb8b (patch)
treea8ad28af17f5b87921a6fe93488e401aaa4fbf2b /solenv/bin
parentae4382f7e082b372524be9285eb48058e354f81f (diff)
installer: restore generate_cab_filename_for_some_cabs
Change-Id: I98155bcf6663aa0e7944807fd7cc8b49ab349ee8
Diffstat (limited to 'solenv/bin')
-rw-r--r--solenv/bin/modules/installer/windows/media.pm24
1 files changed, 24 insertions, 0 deletions
diff --git a/solenv/bin/modules/installer/windows/media.pm b/solenv/bin/modules/installer/windows/media.pm
index 9f530699547b..7214e90cfa7b 100644
--- a/solenv/bin/modules/installer/windows/media.pm
+++ b/solenv/bin/modules/installer/windows/media.pm
@@ -61,6 +61,30 @@ sub get_media_source
return "";
}
+#################################################
+# Creating the cab file name dynamically
+#################################################
+
+sub generate_cab_filename_for_some_cabs
+{
+ my ( $allvariables, $id ) = @_;
+
+ my $name = $allvariables->{'PRODUCTNAME'};
+
+ $name = lc($name);
+ $name =~ s/\.//g;
+ $name =~ s/\s//g;
+
+ # possibility to overwrite the name with variable CABFILENAME
+ if ( $allvariables->{'CABFILENAME'} ) { $name = $allvariables->{'CABFILENAME'}; }
+
+ $name = $name . $id . ".cab";
+
+ if ( $installer::globals::include_cab_in_msi ) { $name = "\#" . $name; }
+
+ return $name;
+}
+
sub get_maximum_filenumber
{
my ($allfiles, $maxcabfilenumber) = @_;