diff options
author | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2010-12-18 00:41:26 +0100 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2010-12-18 00:41:26 +0100 |
commit | bd4bacb31288a63dccc87049f388facec8512f02 (patch) | |
tree | c5cc89e4a90a9e6bcc9d6692e33ba9421bb2e238 /solenv | |
parent | 9e25eb53d58a8fa57345f321f66a0cf812424a50 (diff) |
don't try to be smart, just hardcode one of the help files
Diffstat (limited to 'solenv')
-rw-r--r-- | solenv/bin/modules/installer/globals.pm | 2 | ||||
-rw-r--r-- | solenv/bin/modules/installer/windows/createfolder.pm | 53 |
2 files changed, 2 insertions, 53 deletions
diff --git a/solenv/bin/modules/installer/globals.pm b/solenv/bin/modules/installer/globals.pm index d638e8cdab26..00ccdbaecfad 100644 --- a/solenv/bin/modules/installer/globals.pm +++ b/solenv/bin/modules/installer/globals.pm @@ -419,7 +419,7 @@ BEGIN $cab_file_per_component = 0; $cabfilecompressionlevel = 7; $number_of_cabfiles = 1; # only for $fix_number_of_cab_files = 1 - $include_cab_in_msi = 1; + $include_cab_in_msi = 0; $use_packages_for_cabs = 0; $msidatabasename = ""; $prepare_winpatch = 0; diff --git a/solenv/bin/modules/installer/windows/createfolder.pm b/solenv/bin/modules/installer/windows/createfolder.pm index 1c7d995195d5..cc3d87e47bb7 100644 --- a/solenv/bin/modules/installer/windows/createfolder.pm +++ b/solenv/bin/modules/installer/windows/createfolder.pm @@ -75,57 +75,6 @@ sub get_languagepack_file } ############################################################## -# Searching the correct file for help pack directories. -############################################################## - -sub get_helppack_file -{ - my ($filesref, $onedir) = @_; - - my $language = $onedir->{'specificlanguage'}; - my $foundfile = 0; - my $onefile = ""; - - for ( my $i = 0; $i <= $#{$filesref}; $i++ ) - { - last if ($foundfile); - - $onefile = ${$filesref}[$i]; - - my $styles = ""; - if ( $onefile->{'Styles'} ) { $styles = $onefile->{'Styles'}; } - - # we need a file with the HELPPACK flag - if (( $styles =~ /\bHELPPACK\b/ ) || ( $styles =~ /\bFORCEHELPPACK\b/ )) - { - # chect that the language is correct - if ($onefile->{'ismultilingual'};) - { - my $specificlanguage = ""; - if ( $onefile->{'specificlanguage'} ) { $specificlanguage = $onefile->{'specificlanguage'}; } - - for ( my $j = 0; $j <= $#{$languagesarrayref}; $j++ ) # iterating over all languages - { - my $onelanguage = ${$languagesarrayref}[$j]; - my $locallang = $onelanguage; - $locallang =~ s/-/_/; - - if ( $specificlanguage eq $onelanguage ) - { - $foundfile = 1; - last; - } - } - } - } - } - - if ( ! $foundfile ) { installer::exiter::exit_program("ERROR: No file with correct language found (language pack build)!", "get_languagepack_file"); } - - return $onefile; -} - -############################################################## # Returning component for createfolder table. ############################################################## @@ -147,7 +96,7 @@ sub get_createfolder_component my $onefile = ""; if ( $installer::globals::languagepack ) { $onefile = get_languagepack_file($filesref, $onedir); } - elsif ( $installer::globals::helppack ) { $onefile = get_helppack_file($filesref, $onedir); } + elsif ( $installer::globals::helppack ) { $onefile = installer::existence::get_specified_file($filesref, 'gid_File_Help_Common_Zip'); } else { $onefile = installer::existence::get_specified_file($filesref, $globalfilegid); } return $onefile->{'componentname'}; |