diff options
author | Oliver Bolte <obo@openoffice.org> | 2004-10-18 12:55:26 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2004-10-18 12:55:26 +0000 |
commit | ca0d75b1f2d2da49384e967e5bd823004b74a5ed (patch) | |
tree | e9aebb7cece2b59b59c5848c3c68c50b2b1e05f1 /solenv/bin/modules/installer/windows/shortcut.pm | |
parent | 55269b273a0aae374ff7ee5fc2de99424c843a32 (diff) |
INTEGRATION: CWS langsupporter (1.4.4); FILE MERGED
2004/09/23 08:01:54 is 1.4.4.1: #i33916# soffice icon
Diffstat (limited to 'solenv/bin/modules/installer/windows/shortcut.pm')
-rw-r--r-- | solenv/bin/modules/installer/windows/shortcut.pm | 48 |
1 files changed, 46 insertions, 2 deletions
diff --git a/solenv/bin/modules/installer/windows/shortcut.pm b/solenv/bin/modules/installer/windows/shortcut.pm index 310c953df445..75d9b856de83 100644 --- a/solenv/bin/modules/installer/windows/shortcut.pm +++ b/solenv/bin/modules/installer/windows/shortcut.pm @@ -2,9 +2,9 @@ # # $RCSfile: shortcut.pm,v $ # -# $Revision: 1.4 $ +# $Revision: 1.5 $ # -# last change: $Author: hr $ $Date: 2004-09-08 14:57:58 $ +# last change: $Author: obo $ $Date: 2004-10-18 13:55:26 $ # # The Contents of this file are made available subject to the terms of # either of the following licenses @@ -69,6 +69,34 @@ use installer::globals; use installer::windows::idtglobal; ############################################################## +# Returning the file object for the msiassembly table. +############################################################## + +sub get_file_by_name +{ + my ( $filesref, $filename ) = @_; + + my $foundfile = 0; + my $onefile; + + for ( my $i = 0; $i <= $#{$filesref}; $i++ ) + { + $onefile = ${$filesref}[$i]; + my $name = $onefile->{'Name'}; + + if ( $name eq $filename ) + { + $foundfile = 1; + last; + } + } + + if (! $foundfile ) { $onefile = ""; } + + return $onefile; +} + +############################################################## # Returning identifier for shortcut table. ############################################################## @@ -571,6 +599,22 @@ sub create_shortcut_table } } + # if it is part of the product, the soffice.exe has to be included into the icon table + # as icon for the ARP applet + + my $sofficefile = "soffice.exe"; + my $onefile = get_file_by_name($filesref, $sofficefile); + + if ( $onefile ne "" ) + { + my $sourcepath = $onefile->{'sourcepath'}; + if (! installer::existence::exists_in_array($sourcepath, $iconfilecollector)) + { + unshift(@{$iconfilecollector}, $sourcepath); + $installer::globals::sofficeiconadded = 1; + } + } + # Saving the file my $shortcuttablename = $basedir . $installer::globals::separator . "Shortcut.idt" . "." . $onelanguage; |