Kaydet (Commit) 01f4383f authored tarafından Thomas Arnhold's avatar Thomas Arnhold

installer: restore generate_cab_filename_for_some_cabs

Change-Id: I98155bcf6663aa0e7944807fd7cc8b49ab349ee8
üst ae4382f7
......@@ -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) = @_;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment