← Index
NYTProf Performance Profile   « block view • line view • sub view »
For C:/lo/libo-master/solenv/bin/make_installer.pl
  Run on Mon Sep 24 00:52:54 2012
Reported on Mon Sep 24 07:34:30 2012

Filename/cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/modules/installer.pm
StatementsExecuted 14462 statements in 5.66s
Subroutines
Calls P F Exclusive
Time
Inclusive
Time
Subroutine
111288ms288msinstaller::::CORE:backtickinstaller::CORE:backtick (opcode)
33160.3ms60.3msinstaller::::CORE:printinstaller::CORE:print (opcode)
11129.5ms60.2msinstaller::::BEGIN@41installer::BEGIN@41
1102122.0ms22.0msinstaller::::CORE:ftdirinstaller::CORE:ftdir (opcode)
11118.9ms19.8msinstaller::::BEGIN@75installer::BEGIN@75
11118.6ms19.4msinstaller::::BEGIN@74installer::BEGIN@74
11117.6ms79.2msinstaller::::BEGIN@32installer::BEGIN@32
11115.5ms20.7msinstaller::::BEGIN@33installer::BEGIN@33
11115.5ms29.0msinstaller::::BEGIN@76installer::BEGIN@76
11112.8ms28.5msinstaller::::BEGIN@34installer::BEGIN@34
1119.83ms20.6msinstaller::::BEGIN@68installer::BEGIN@68
1117.76ms8.23msinstaller::::BEGIN@77installer::BEGIN@77
1117.58ms11.0msinstaller::::BEGIN@39installer::BEGIN@39
1117.55ms10.6msinstaller::::BEGIN@57installer::BEGIN@57
1116.80ms7.49msinstaller::::BEGIN@50installer::BEGIN@50
1116.33ms6.81msinstaller::::BEGIN@80installer::BEGIN@80
1116.31ms309msinstaller::::BEGIN@35installer::BEGIN@35
1116.25ms6.89msinstaller::::BEGIN@45installer::BEGIN@45
1115.94ms6.44msinstaller::::BEGIN@65installer::BEGIN@65
1115.90ms6.52msinstaller::::BEGIN@46installer::BEGIN@46
1115.11ms5.99msinstaller::::BEGIN@66installer::BEGIN@66
1114.79ms8.81msinstaller::::BEGIN@30installer::BEGIN@30
1114.68ms5.11msinstaller::::BEGIN@63installer::BEGIN@63
1114.60ms5.04msinstaller::::BEGIN@79installer::BEGIN@79
1113.29ms22.4msinstaller::::BEGIN@61installer::BEGIN@61
1113.02ms3.47msinstaller::::BEGIN@73installer::BEGIN@73
1112.73ms3.26msinstaller::::BEGIN@52installer::BEGIN@52
1112.48ms2.94msinstaller::::BEGIN@59installer::BEGIN@59
1112.44ms2.89msinstaller::::BEGIN@83installer::BEGIN@83
1112.37ms2.94msinstaller::::BEGIN@67installer::BEGIN@67
1112.28ms8.83msinstaller::::BEGIN@53installer::BEGIN@53
1112.19ms2.79msinstaller::::BEGIN@81installer::BEGIN@81
1112.05ms2.87msinstaller::::BEGIN@38installer::BEGIN@38
3311.94ms1.94msinstaller::::CORE:openinstaller::CORE:open (opcode)
1111.94ms2.35msinstaller::::BEGIN@64installer::BEGIN@64
1111.89ms2.27msinstaller::::BEGIN@40installer::BEGIN@40
1111.88ms2.31msinstaller::::BEGIN@72installer::BEGIN@72
1111.69ms2.11msinstaller::::BEGIN@78installer::BEGIN@78
1111.29ms1.77msinstaller::::BEGIN@70installer::BEGIN@70
1111.13ms1.53msinstaller::::BEGIN@62installer::BEGIN@62
11161µs-8913sinstaller::::maininstaller::main
11120µs22µsinstaller::::BEGIN@51installer::BEGIN@51
11119µs22µsinstaller::::BEGIN@36installer::BEGIN@36
11119µs21µsinstaller::::BEGIN@60installer::BEGIN@60
11119µs20µsinstaller::::BEGIN@42installer::BEGIN@42
11118µs21µsinstaller::::BEGIN@49installer::BEGIN@49
11118µs20µsinstaller::::BEGIN@47installer::BEGIN@47
11117µs19µsinstaller::::BEGIN@37installer::BEGIN@37
11117µs20µsinstaller::::BEGIN@84installer::BEGIN@84
11117µs19µsinstaller::::BEGIN@69installer::BEGIN@69
11116µs19µsinstaller::::BEGIN@82installer::BEGIN@82
11116µs18µsinstaller::::BEGIN@43installer::BEGIN@43
11116µs18µsinstaller::::BEGIN@85installer::BEGIN@85
11116µs18µsinstaller::::BEGIN@54installer::BEGIN@54
11116µs18µsinstaller::::BEGIN@44installer::BEGIN@44
11115µs71µsinstaller::::BEGIN@58installer::BEGIN@58
11115µs56µsinstaller::::BEGIN@48installer::BEGIN@48
11114µs16µsinstaller::::BEGIN@71installer::BEGIN@71
11114µs44µsinstaller::::BEGIN@56installer::BEGIN@56
11114µs14µsinstaller::::CORE:substinstaller::CORE:subst (opcode)
33114µs14µsinstaller::::CORE:matchinstaller::CORE:match (opcode)
11113µs16µsinstaller::::BEGIN@55installer::BEGIN@55
111-7726s-8913sinstaller::::runinstaller::run
Call graph for these subroutines as a Graphviz dot language file.
Line State
ments
Time
on line
Calls Time
in subs
Code
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2010 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org. If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28package installer;
29
3022.80ms212.5ms
# spent 8.81ms (4.79+4.02) within installer::BEGIN@30 which was called: # once (4.79ms+4.02ms) by main::BEGIN@33 at line 30
use base 'Exporter';
# spent 8.81ms making 1 call to installer::BEGIN@30 # spent 3.69ms making 1 call to base::import
31
3222.47ms279.3ms
# spent 79.2ms (17.6+61.6) within installer::BEGIN@32 which was called: # once (17.6ms+61.6ms) by main::BEGIN@33 at line 32
use Cwd;
# spent 79.2ms making 1 call to installer::BEGIN@32 # spent 90µs making 1 call to Exporter::import
3322.55ms220.8ms
# spent 20.7ms (15.5+5.24) within installer::BEGIN@33 which was called: # once (15.5ms+5.24ms) by main::BEGIN@33 at line 33
use Data::Dumper;
# spent 20.7ms making 1 call to installer::BEGIN@33 # spent 66µs making 1 call to Exporter::import
3422.63ms228.6ms
# spent 28.5ms (12.8+15.7) within installer::BEGIN@34 which was called: # once (12.8ms+15.7ms) by main::BEGIN@33 at line 34
use File::Copy;
# spent 28.5ms making 1 call to installer::BEGIN@34 # spent 78µs making 1 call to Exporter::import
3521.12ms2309ms
# spent 309ms (6.31+303) within installer::BEGIN@35 which was called: # once (6.31ms+303ms) by main::BEGIN@33 at line 35
use installer::archivefiles;
# spent 309ms making 1 call to installer::BEGIN@35 # spent 7µs making 1 call to UNIVERSAL::import
36259µs225µs
# spent 22µs (19+3) within installer::BEGIN@36 which was called: # once (19µs+3µs) by main::BEGIN@33 at line 36
use installer::control;
# spent 22µs making 1 call to installer::BEGIN@36 # spent 3µs making 1 call to UNIVERSAL::import
37262µs221µs
# spent 19µs (17+2) within installer::BEGIN@37 which was called: # once (17µs+2µs) by main::BEGIN@33 at line 37
use installer::converter;
# spent 19µs making 1 call to installer::BEGIN@37 # spent 2µs making 1 call to UNIVERSAL::import
3821.48ms22.88ms
# spent 2.87ms (2.05+823µs) within installer::BEGIN@38 which was called: # once (2.05ms+823µs) by main::BEGIN@33 at line 38
use installer::copyproject;
# spent 2.87ms making 1 call to installer::BEGIN@38 # spent 3µs making 1 call to UNIVERSAL::import
3921.09ms211.0ms
# spent 11.0ms (7.58+3.44) within installer::BEGIN@39 which was called: # once (7.58ms+3.44ms) by main::BEGIN@33 at line 39
use installer::download;
# spent 11.0ms making 1 call to installer::BEGIN@39 # spent 6µs making 1 call to UNIVERSAL::import
4021.06ms22.27ms
# spent 2.27ms (1.89+376µs) within installer::BEGIN@40 which was called: # once (1.89ms+376µs) by main::BEGIN@33 at line 40
use installer::environment;
# spent 2.27ms making 1 call to installer::BEGIN@40 # spent 3µs making 1 call to UNIVERSAL::import
4121.04ms260.2ms
# spent 60.2ms (29.5+30.7) within installer::BEGIN@41 which was called: # once (29.5ms+30.7ms) by main::BEGIN@33 at line 41
use installer::epmfile;
# spent 60.2ms making 1 call to installer::BEGIN@41 # spent 11µs making 1 call to UNIVERSAL::import
42255µs222µs
# spent 20µs (19+2) within installer::BEGIN@42 which was called: # once (19µs+2µs) by main::BEGIN@33 at line 42
use installer::exiter;
# spent 20µs making 1 call to installer::BEGIN@42 # spent 2µs making 1 call to UNIVERSAL::import
43253µs219µs
# spent 18µs (16+1) within installer::BEGIN@43 which was called: # once (16µs+1µs) by main::BEGIN@33 at line 43
use installer::files;
# spent 18µs making 1 call to installer::BEGIN@43 # spent 2µs making 1 call to UNIVERSAL::import
44253µs221µs
# spent 18µs (16+3) within installer::BEGIN@44 which was called: # once (16µs+3µs) by main::BEGIN@33 at line 44
use installer::globals;
# spent 18µs making 1 call to installer::BEGIN@44 # spent 2µs making 1 call to UNIVERSAL::import
4521.17ms26.90ms
# spent 6.89ms (6.25+643µs) within installer::BEGIN@45 which was called: # once (6.25ms+643µs) by main::BEGIN@33 at line 45
use installer::helppack;
# spent 6.89ms making 1 call to installer::BEGIN@45 # spent 10µs making 1 call to UNIVERSAL::import
4621.42ms26.53ms
# spent 6.52ms (5.90+624µs) within installer::BEGIN@46 which was called: # once (5.90ms+624µs) by main::BEGIN@33 at line 46
use installer::languagepack;
# spent 6.52ms making 1 call to installer::BEGIN@46 # spent 7µs making 1 call to UNIVERSAL::import
47255µs223µs
# spent 20µs (18+3) within installer::BEGIN@47 which was called: # once (18µs+3µs) by main::BEGIN@33 at line 47
use installer::languages;
# spent 20µs making 1 call to installer::BEGIN@47 # spent 3µs making 1 call to UNIVERSAL::import
48252µs296µs
# spent 56µs (15+41) within installer::BEGIN@48 which was called: # once (15µs+41µs) by main::BEGIN@33 at line 48
use installer::logger;
# spent 56µs making 1 call to installer::BEGIN@48 # spent 41µs making 1 call to Exporter::import
49257µs223µs
# spent 21µs (18+2) within installer::BEGIN@49 which was called: # once (18µs+2µs) by main::BEGIN@33 at line 49
use installer::packagelist;
# spent 21µs making 1 call to installer::BEGIN@49 # spent 2µs making 1 call to UNIVERSAL::import
5021.47ms27.50ms
# spent 7.49ms (6.80+694µs) within installer::BEGIN@50 which was called: # once (6.80ms+694µs) by main::BEGIN@33 at line 50
use installer::parameter;
# spent 7.49ms making 1 call to installer::BEGIN@50 # spent 9µs making 1 call to UNIVERSAL::import
51256µs224µs
# spent 22µs (20+2) within installer::BEGIN@51 which was called: # once (20µs+2µs) by main::BEGIN@33 at line 51
use installer::pathanalyzer;
# spent 22µs making 1 call to installer::BEGIN@51 # spent 2µs making 1 call to UNIVERSAL::import
5221.09ms23.27ms
# spent 3.26ms (2.73+527µs) within installer::BEGIN@52 which was called: # once (2.73ms+527µs) by main::BEGIN@33 at line 52
use installer::profiles;
# spent 3.26ms making 1 call to installer::BEGIN@52 # spent 4µs making 1 call to UNIVERSAL::import
5321.02ms28.83ms
# spent 8.83ms (2.28+6.55) within installer::BEGIN@53 which was called: # once (2.28ms+6.55ms) by main::BEGIN@33 at line 53
use installer::scppatchsoname;
# spent 8.83ms making 1 call to installer::BEGIN@53 # spent 3µs making 1 call to UNIVERSAL::import
54253µs220µs
# spent 18µs (16+2) within installer::BEGIN@54 which was called: # once (16µs+2µs) by main::BEGIN@33 at line 54
use installer::scpzipfiles;
# spent 18µs making 1 call to installer::BEGIN@54 # spent 2µs making 1 call to UNIVERSAL::import
55251µs218µs
# spent 16µs (13+3) within installer::BEGIN@55 which was called: # once (13µs+3µs) by main::BEGIN@33 at line 55
use installer::scriptitems;
# spent 16µs making 1 call to installer::BEGIN@55 # spent 2µs making 1 call to UNIVERSAL::import
56252µs274µs
# spent 44µs (14+30) within installer::BEGIN@56 which was called: # once (14µs+30µs) by main::BEGIN@33 at line 56
use installer::setupscript;
# spent 44µs making 1 call to installer::BEGIN@56 # spent 30µs making 1 call to Exporter::import
5721.10ms210.6ms
# spent 10.6ms (7.55+3.08) within installer::BEGIN@57 which was called: # once (7.55ms+3.08ms) by main::BEGIN@33 at line 57
use installer::simplepackage;
# spent 10.6ms making 1 call to installer::BEGIN@57 # spent 6µs making 1 call to UNIVERSAL::import
58257µs2127µs
# spent 71µs (15+56) within installer::BEGIN@58 which was called: # once (15µs+56µs) by main::BEGIN@33 at line 58
use installer::strip qw(strip_libraries);
# spent 71µs making 1 call to installer::BEGIN@58 # spent 56µs making 1 call to Exporter::import
5921.09ms22.95ms
# spent 2.94ms (2.48+461µs) within installer::BEGIN@59 which was called: # once (2.48ms+461µs) by main::BEGIN@33 at line 59
use installer::substfilenamefiles;
# spent 2.94ms making 1 call to installer::BEGIN@59 # spent 10µs making 1 call to UNIVERSAL::import
60256µs223µs
# spent 21µs (19+2) within installer::BEGIN@60 which was called: # once (19µs+2µs) by main::BEGIN@33 at line 60
use installer::systemactions;
# spent 21µs making 1 call to installer::BEGIN@60 # spent 2µs making 1 call to UNIVERSAL::import
6121.20ms222.4ms
# spent 22.4ms (3.29+19.1) within installer::BEGIN@61 which was called: # once (3.29ms+19.1ms) by main::BEGIN@33 at line 61
use installer::windows::assembly;
# spent 22.4ms making 1 call to installer::BEGIN@61 # spent 5µs making 1 call to UNIVERSAL::import
6221.06ms21.53ms
# spent 1.53ms (1.13+392µs) within installer::BEGIN@62 which was called: # once (1.13ms+392µs) by main::BEGIN@33 at line 62
use installer::windows::binary;
# spent 1.53ms making 1 call to installer::BEGIN@62 # spent 3µs making 1 call to UNIVERSAL::import
6321.04ms25.12ms
# spent 5.11ms (4.68+438µs) within installer::BEGIN@63 which was called: # once (4.68ms+438µs) by main::BEGIN@33 at line 63
use installer::windows::component;
# spent 5.11ms making 1 call to installer::BEGIN@63 # spent 4µs making 1 call to UNIVERSAL::import
6421.04ms22.36ms
# spent 2.35ms (1.94+418µs) within installer::BEGIN@64 which was called: # once (1.94ms+418µs) by main::BEGIN@33 at line 64
use installer::windows::createfolder;
# spent 2.35ms making 1 call to installer::BEGIN@64 # spent 4µs making 1 call to UNIVERSAL::import
6521.15ms26.45ms
# spent 6.44ms (5.94+502µs) within installer::BEGIN@65 which was called: # once (5.94ms+502µs) by main::BEGIN@33 at line 65
use installer::windows::directory;
# spent 6.44ms making 1 call to installer::BEGIN@65 # spent 8µs making 1 call to UNIVERSAL::import
6621.65ms26.00ms
# spent 5.99ms (5.11+883µs) within installer::BEGIN@66 which was called: # once (5.11ms+883µs) by main::BEGIN@33 at line 66
use installer::windows::feature;
# spent 5.99ms making 1 call to installer::BEGIN@66 # spent 8µs making 1 call to UNIVERSAL::import
6721.46ms22.95ms
# spent 2.94ms (2.37+569µs) within installer::BEGIN@67 which was called: # once (2.37ms+569µs) by main::BEGIN@33 at line 67
use installer::windows::featurecomponent;
# spent 2.94ms making 1 call to installer::BEGIN@67 # spent 5µs making 1 call to UNIVERSAL::import
6821.22ms220.6ms
# spent 20.6ms (9.83+10.8) within installer::BEGIN@68 which was called: # once (9.83ms+10.8ms) by main::BEGIN@33 at line 68
use installer::windows::file;
# spent 20.6ms making 1 call to installer::BEGIN@68 # spent 6µs making 1 call to UNIVERSAL::import
69252µs222µs
# spent 19µs (17+3) within installer::BEGIN@69 which was called: # once (17µs+3µs) by main::BEGIN@33 at line 69
use installer::windows::font;
# spent 19µs making 1 call to installer::BEGIN@69 # spent 2µs making 1 call to UNIVERSAL::import
7021.20ms21.78ms
# spent 1.77ms (1.29+481µs) within installer::BEGIN@70 which was called: # once (1.29ms+481µs) by main::BEGIN@33 at line 70
use installer::windows::icon;
# spent 1.77ms making 1 call to installer::BEGIN@70 # spent 3µs making 1 call to UNIVERSAL::import
71251µs218µs
# spent 16µs (14+2) within installer::BEGIN@71 which was called: # once (14µs+2µs) by main::BEGIN@33 at line 71
use installer::windows::idtglobal;
# spent 16µs making 1 call to installer::BEGIN@71 # spent 2µs making 1 call to UNIVERSAL::import
7221.05ms22.31ms
# spent 2.31ms (1.88+428µs) within installer::BEGIN@72 which was called: # once (1.88ms+428µs) by main::BEGIN@33 at line 72
use installer::windows::inifile;
# spent 2.31ms making 1 call to installer::BEGIN@72 # spent 4µs making 1 call to UNIVERSAL::import
7321.10ms23.48ms
# spent 3.47ms (3.02+449µs) within installer::BEGIN@73 which was called: # once (3.02ms+449µs) by main::BEGIN@33 at line 73
use installer::windows::media;
# spent 3.47ms making 1 call to installer::BEGIN@73 # spent 4µs making 1 call to UNIVERSAL::import
7421.06ms219.4ms
# spent 19.4ms (18.6+757µs) within installer::BEGIN@74 which was called: # once (18.6ms+757µs) by main::BEGIN@33 at line 74
use installer::windows::mergemodule;
# spent 19.4ms making 1 call to installer::BEGIN@74 # spent 7µs making 1 call to UNIVERSAL::import
7521.18ms219.8ms
# spent 19.8ms (18.9+818µs) within installer::BEGIN@75 which was called: # once (18.9ms+818µs) by main::BEGIN@33 at line 75
use installer::windows::msiglobal;
# spent 19.8ms making 1 call to installer::BEGIN@75 # spent 9µs making 1 call to UNIVERSAL::import
7621.41ms229.0ms
# spent 29.0ms (15.5+13.5) within installer::BEGIN@76 which was called: # once (15.5ms+13.5ms) by main::BEGIN@33 at line 76
use installer::windows::msp;
# spent 29.0ms making 1 call to installer::BEGIN@76 # spent 9µs making 1 call to UNIVERSAL::import
7721.48ms28.24ms
# spent 8.23ms (7.76+475µs) within installer::BEGIN@77 which was called: # once (7.76ms+475µs) by main::BEGIN@33 at line 77
use installer::windows::property;
# spent 8.23ms making 1 call to installer::BEGIN@77 # spent 5µs making 1 call to UNIVERSAL::import
7821.09ms22.11ms
# spent 2.11ms (1.69+419µs) within installer::BEGIN@78 which was called: # once (1.69ms+419µs) by main::BEGIN@33 at line 78
use installer::windows::removefile;
# spent 2.11ms making 1 call to installer::BEGIN@78 # spent 4µs making 1 call to UNIVERSAL::import
7921.06ms25.04ms
# spent 5.04ms (4.60+434µs) within installer::BEGIN@79 which was called: # once (4.60ms+434µs) by main::BEGIN@33 at line 79
use installer::windows::registry;
# spent 5.04ms making 1 call to installer::BEGIN@79 # spent 4µs making 1 call to UNIVERSAL::import
8021.13ms26.82ms
# spent 6.81ms (6.33+475µs) within installer::BEGIN@80 which was called: # once (6.33ms+475µs) by main::BEGIN@33 at line 80
use installer::windows::shortcut;
# spent 6.81ms making 1 call to installer::BEGIN@80 # spent 7µs making 1 call to UNIVERSAL::import
8121.11ms22.79ms
# spent 2.79ms (2.19+603µs) within installer::BEGIN@81 which was called: # once (2.19ms+603µs) by main::BEGIN@33 at line 81
use installer::windows::strip;
# spent 2.79ms making 1 call to installer::BEGIN@81 # spent 4µs making 1 call to UNIVERSAL::import
82257µs222µs
# spent 19µs (16+3) within installer::BEGIN@82 which was called: # once (16µs+3µs) by main::BEGIN@33 at line 82
use installer::windows::update;
# spent 19µs making 1 call to installer::BEGIN@82 # spent 3µs making 1 call to UNIVERSAL::import
8321.09ms22.89ms
# spent 2.89ms (2.44+448µs) within installer::BEGIN@83 which was called: # once (2.44ms+448µs) by main::BEGIN@33 at line 83
use installer::windows::upgrade;
# spent 2.89ms making 1 call to installer::BEGIN@83 # spent 4µs making 1 call to UNIVERSAL::import
84254µs222µs
# spent 20µs (17+3) within installer::BEGIN@84 which was called: # once (17µs+3µs) by main::BEGIN@33 at line 84
use installer::worker;
# spent 20µs making 1 call to installer::BEGIN@84 # spent 3µs making 1 call to UNIVERSAL::import
85216.5ms221µs
# spent 18µs (16+3) within installer::BEGIN@85 which was called: # once (16µs+3µs) by main::BEGIN@33 at line 85
use installer::ziplist;
# spent 18µs making 1 call to installer::BEGIN@85 # spent 2µs making 1 call to UNIVERSAL::import
86
8715µsour @EXPORT_OK = qw(main);
88
89
# spent -8913s (61µs+-8913) within installer::main which was called: # once (61µs+-8913s) by main::RUNTIME at line 35 of /cygdrive/c/lo/libo-master/instsetoo_native/util/C:/lo/libo-master/solenv/bin/make_installer.pl
sub main {
90732µs14µs installer::logger::starttime();
# spent 4µs making 1 call to installer::logger::starttime
91
92 my $exit_code = 0;
93
94 eval {
951-8913s run();
# spent - 8913s making 1 call to installer::run
96 };
97 if ($@) {
98 warn "$@\n";
99 $exit_code = -1;
100 }
101
1021238µs installer::logger::stoptime();
# spent 238µs making 1 call to installer::logger::stoptime
103
104 return $exit_code;
105}
106
107
# spent -8913s (-7726+-1188) within installer::run which was called: # once (-7726s+-1188s) by installer::main at line 95
sub run {
108143435.59s125µs installer::logger::print_message( "... checking environment variables ...\n" );
# spent 25µs making 1 call to installer::logger::print_message
109139µs my $environmentvariableshashref = installer::control::check_system_environment();
# spent 39µs making 1 call to installer::control::check_system_environment
110
111135µs installer::environment::set_global_environment_variables($environmentvariableshashref);
112
113 #################################
114 # Check and output of parameter
115 #################################
116
1171144µs installer::parameter::saveparameter();
# spent 144µs making 1 call to installer::parameter::saveparameter
118144µs installer::parameter::getparameter();
# spent 44µs making 1 call to installer::parameter::getparameter
119
12014µs installer::parameter::control_fundamental_parameter();
1211227ms installer::parameter::setglobalvariables();
# spent 227ms making 1 call to installer::parameter::setglobalvariables
1221214ms installer::parameter::control_required_parameter();
# spent 214ms making 1 call to installer::parameter::control_required_parameter
123
124137µs if (!($installer::globals::languages_defined_in_productlist)) { installer::languages::analyze_languagelist(); }
# spent 37µs making 1 call to installer::languages::analyze_languagelist
1251355µs installer::parameter::outputparameter();
# spent 355µs making 1 call to installer::parameter::outputparameter
126
127 $installer::globals::build = uc($installer::globals::build); # using "SRC680" instead of "src680"
128
129 ######################################
130 # Creating the log directory
131 ######################################
132
13312.22ms my $loggingdir = installer::systemactions::create_directories("logging", "");
# spent 2.22ms making 1 call to installer::systemactions::create_directories
134 $loggingdir = $loggingdir . $installer::globals::separator;
135 $installer::globals::exitlog = $loggingdir;
136
137 my $installdir = "";
138114µs my $currentdir = cwd();
# spent 14µs making 1 call to Cwd::__ANON__[Cwd.pm:406]
139 my $shipinstalldir = "";
140 my $current_install_number = "";
141
142 ######################################
143 # Checking the system requirements
144 ######################################
145
146110µs installer::logger::print_message( "... checking required files ...\n" );
# spent 10µs making 1 call to installer::logger::print_message
14712.60s installer::control::check_system_path();
# spent 2.60s making 1 call to installer::control::check_system_path
148
149146µs my $pathvariableshashref = installer::environment::create_pathvariables($environmentvariableshashref);
# spent 46µs making 1 call to installer::environment::create_pathvariables
150
151 ###############################################
152 # Checking saved setting for Windows patches
153 ###############################################
154
155 if (( $installer::globals::iswindowsbuild ) && ( $installer::globals::prepare_winpatch )) { installer::windows::msiglobal::read_saved_mappings(); }
156
157 ###################################################
158 # Analyzing the settings and variables in zip.lst
159 ###################################################
160
161177µs installer::logger::globallog("zip list file: $installer::globals::ziplistname");
# spent 77µs making 1 call to installer::logger::globallog
162
16311.96ms my $ziplistref = installer::files::read_file($installer::globals::ziplistname);
# spent 1.96ms making 1 call to installer::files::read_file
164
16519µs installer::logger::print_message( "... analyzing $installer::globals::ziplistname ... \n" );
# spent 9µs making 1 call to installer::logger::print_message
166
16714.98ms my ($productblockref, $parent) = installer::ziplist::getproductblock($ziplistref, $installer::globals::product, 1); # product block from zip.lst
# spent 4.98ms making 1 call to installer::ziplist::getproductblock
168
16911.03ms my ($settingsblockref, undef) = installer::ziplist::getproductblock($productblockref, "Settings", 0); # settings block from zip.lst
# spent 1.03ms making 1 call to installer::ziplist::getproductblock
170
17112.01ms $settingsblockref = installer::ziplist::analyze_settings_block($settingsblockref); # select data from settings block in zip.lst
# spent 2.01ms making 1 call to installer::ziplist::analyze_settings_block
172
17311.22ms my $allsettingsarrayref = installer::ziplist::get_settings_from_ziplist($settingsblockref);
# spent 1.22ms making 1 call to installer::ziplist::get_settings_from_ziplist
174
17511.41ms my $allvariablesarrayref = installer::ziplist::get_variables_from_ziplist($settingsblockref);
# spent 1.41ms making 1 call to installer::ziplist::get_variables_from_ziplist
176
17714.72ms my ($globalproductblockref, undef) = installer::ziplist::getproductblock($ziplistref, $installer::globals::globalblock, 0); # global product block from zip.lst
# spent 4.72ms making 1 call to installer::ziplist::getproductblock
178
179 while (defined $parent)
180 {
181 my $parentproductblockref;
182 ($parentproductblockref, $parent) = installer::ziplist::getproductblock(
183 $ziplistref, $parent, 1);
184 my ($parentsettingsblockref, undef) = installer::ziplist::getproductblock(
185 $parentproductblockref, "Settings", 0);
186 $parentsettingsblockref = installer::ziplist::analyze_settings_block(
187 $parentsettingsblockref);
188 my $allparentsettingsarrayref =
189 installer::ziplist::get_settings_from_ziplist($parentsettingsblockref);
190 my $allparentvariablesarrayref =
191 installer::ziplist::get_variables_from_ziplist($parentsettingsblockref);
192 $allsettingsarrayref =
193 installer::converter::combine_arrays_from_references_first_win(
194 $allsettingsarrayref, $allparentsettingsarrayref)
195 if $#{$allparentsettingsarrayref} > -1;
196 $allvariablesarrayref =
197 installer::converter::combine_arrays_from_references_first_win(
198 $allvariablesarrayref, $allparentvariablesarrayref)
199 if $#{$allparentvariablesarrayref} > -1;
200 }
201
202 if ( $#{$globalproductblockref} > -1 )
203 {
2041817µs my ($globalsettingsblockref, undef) = installer::ziplist::getproductblock($globalproductblockref, "Settings", 0); # settings block from zip.lst
# spent 817µs making 1 call to installer::ziplist::getproductblock
205
20611.50ms $globalsettingsblockref = installer::ziplist::analyze_settings_block($globalsettingsblockref); # select data from settings block in zip.lst
# spent 1.50ms making 1 call to installer::ziplist::analyze_settings_block
207
2081830µs my $allglobalsettingsarrayref = installer::ziplist::get_settings_from_ziplist($globalsettingsblockref);
# spent 830µs making 1 call to installer::ziplist::get_settings_from_ziplist
209
21011.19ms my $allglobalvariablesarrayref = installer::ziplist::get_variables_from_ziplist($globalsettingsblockref);
# spent 1.19ms making 1 call to installer::ziplist::get_variables_from_ziplist
211
212 if ( $#{$allglobalsettingsarrayref} > -1 ) { $allsettingsarrayref = installer::converter::combine_arrays_from_references_first_win($allsettingsarrayref, $allglobalsettingsarrayref); }
21311.05ms if ( $#{$allglobalvariablesarrayref} > -1 ) { $allvariablesarrayref = installer::converter::combine_arrays_from_references_first_win($allvariablesarrayref, $allglobalvariablesarrayref); }
214 }
215
2161942µs $allsettingsarrayref = installer::ziplist::remove_multiples_from_ziplist($allsettingsarrayref); # the settings from the zip.lst
# spent 942µs making 1 call to installer::ziplist::remove_multiples_from_ziplist
217
218139.0ms $allvariablesarrayref = installer::ziplist::remove_multiples_from_ziplist($allvariablesarrayref);
# spent 39.0ms making 1 call to installer::ziplist::remove_multiples_from_ziplist
219
22011.41ms installer::ziplist::replace_variables_in_ziplist_variables($allvariablesarrayref);
221
2221726µs my $allvariableshashref = installer::converter::convert_array_to_hash($allvariablesarrayref); # the variables from the zip.lst
# spent 726µs making 1 call to installer::converter::convert_array_to_hash
223
22416µs installer::ziplist::set_default_productversion_if_required($allvariableshashref);
225
226150µs installer::ziplist::add_variables_to_allvariableshashref($allvariableshashref);
227
228115µs installer::ziplist::overwrite_branding( $allvariableshashref );
# spent 15µs making 1 call to installer::ziplist::overwrite_branding
229
230
231 ########################################################
232 # Check if this is simple packaging mechanism
233 ########################################################
234
23517µs installer::simplepackage::check_simple_packager_project($allvariableshashref);
236
237 ####################################################################
238 # setting global variables
239 ####################################################################
240
241115µs installer::control::set_addsystemintegration($allvariableshashref);
# spent 15µs making 1 call to installer::control::set_addsystemintegration
242
243 ########################################################
244 # Re-define logging dir, after all variables are set
245 ########################################################
246
247 my $oldloggingdir = $loggingdir;
2481942µs installer::systemactions::remove_complete_directory($oldloggingdir);
24911.23ms $loggingdir = installer::systemactions::create_directories("logging", "");
# spent 1.23ms making 1 call to installer::systemactions::create_directories
250 $loggingdir = $loggingdir . $installer::globals::separator;
251 $installer::globals::exitlog = $loggingdir;
252
253 # checking, whether this is an opensource product
254
255112µs if (!($installer::globals::is_copy_only_project)) { installer::ziplist::set_manufacturer($allvariableshashref); }
# spent 12µs making 1 call to installer::ziplist::set_manufacturer
256
257 ##############################################
258 # Checking version of makecab.exe
259 ##############################################
260
2611120ms if ( $installer::globals::iswindowsbuild && (!defined($ENV{'CROSS_COMPILING'}) || $ENV{'CROSS_COMPILING'} ne 'YES' || $installer::globals::packageformat eq 'msi')) { installer::control::check_makecab_version(); }
# spent 120ms making 1 call to installer::control::check_makecab_version
262
263 ##########################################################
264 # Getting the include path from the settings in zip list
265 ##########################################################
266
2671186µs my $includepathref = installer::ziplist::getinfofromziplist($allsettingsarrayref, "include");
# spent 186µs making 1 call to installer::ziplist::getinfofromziplist
268 if ( $$includepathref eq "" )
269 {
270 installer::exiter::exit_program("ERROR: Definition for \"include\" not found in $installer::globals::ziplistname", "Main");
271 }
272
273165µs my $includepatharrayref = installer::converter::convert_stringlist_into_array($includepathref, ",");
274
27514.22ms installer::ziplist::replace_all_variables_in_paths($includepatharrayref, $pathvariableshashref);
276
2771182µs installer::ziplist::replace_minor_in_paths($includepatharrayref);
# spent 182µs making 1 call to installer::ziplist::replace_minor_in_paths
278
2791101µs installer::ziplist::replace_packagetype_in_paths($includepatharrayref);
# spent 101µs making 1 call to installer::ziplist::replace_packagetype_in_paths
280
28112.31ms installer::ziplist::resolve_relative_paths($includepatharrayref);
# spent 2.31ms making 1 call to installer::ziplist::resolve_relative_paths
282
2831477µs installer::ziplist::remove_ending_separator($includepatharrayref);
# spent 477µs making 1 call to installer::ziplist::remove_ending_separator
284
285 ##############################################
286 # Collecting all files from all include
287 # paths in global hashes.
288 ##############################################
289
29012.67s installer::worker::collect_all_files_from_includepaths($includepatharrayref);
291
292 ##############################################
293 # Analyzing languages in zip.lst if required
294 # Probably no longer used.
295 ##############################################
296
297 if ($installer::globals::languages_defined_in_productlist) { installer::languages::get_info_about_languages($allsettingsarrayref); }
298
299 #####################################
300 # Windows requires the encoding list
301 #####################################
302
30315.11ms if ( $installer::globals::iswindowsbuild ) { installer::control::read_encodinglist($includepatharrayref); }
# spent 5.11ms making 1 call to installer::control::read_encodinglist
304
305 #####################################################################
306 # Including additional inc files for variable settings, if defined
307 #####################################################################
308
30911.61ms if ( $allvariableshashref->{'ADD_INCLUDE_FILES'} ) { installer::worker::add_variables_from_inc_to_hashref($allvariableshashref, $includepatharrayref); }
310
311 #####################################
312 # Analyzing the setup script
313 #####################################
314
3151153µs if ($installer::globals::setupscript_defined_in_productlist) { installer::setupscript::set_setupscript_name($allsettingsarrayref, $includepatharrayref); }
# spent 153µs making 1 call to installer::setupscript::set_setupscript_name
316
317153µs installer::logger::globallog("setup script file: $installer::globals::setupscriptname");
# spent 53µs making 1 call to installer::logger::globallog
318
319116µs installer::logger::print_message( "... analyzing script: $installer::globals::setupscriptname ... \n" );
# spent 16µs making 1 call to installer::logger::print_message
320
3211527ms my $setupscriptref = installer::files::read_file($installer::globals::setupscriptname); # Reading the setup script file
# spent 527ms making 1 call to installer::files::read_file
322
323 # Resolving variables defined in the zip list file into setup script
324 # All the variables are defined in $allvariablesarrayref
325
3261468ms installer::scpzipfiles::replace_all_ziplistvariables_in_file($setupscriptref, $allvariableshashref);
327
328 # Resolving %variables defined in the installation object
329
3301304µs my $allscriptvariablesref = installer::setupscript::get_all_scriptvariables_from_installation_object($setupscriptref);
331
3321442µs installer::setupscript::add_lowercase_productname_setupscriptvariable($allscriptvariablesref);
333
3341550µs installer::setupscript::resolve_lowercase_productname_setupscriptvariable($allscriptvariablesref);
335
33611.03s $setupscriptref = installer::setupscript::replace_all_setupscriptvariables_in_script($setupscriptref, $allscriptvariablesref);
337
338 # Adding all variables defined in the installation object into the hash of all variables.
339 # This is needed if variables are defined in the installation object, but not in the zip list file.
340 # If there is a definition in the zip list file and in the installation object, the installation object is more important
341
3421402µs installer::setupscript::add_installationobject_to_variables($allvariableshashref, $allscriptvariablesref);
343
344 # Adding also all variables, that must be included into the $allvariableshashref.
345124µs installer::setupscript::add_forced_properties($allvariableshashref);
# spent 24µs making 1 call to installer::setupscript::add_forced_properties
346
347 # Replacing preset properties, not using the default mechanisms (for example for UNIXPRODUCTNAME)
348120µs installer::setupscript::replace_preset_properties($allvariableshashref);
349
3501475ms installer::scpzipfiles::replace_all_ziplistvariables_in_file($setupscriptref, $allvariableshashref);
351
352
3531522µs installer::logger::log_hashref($allvariableshashref);
# spent 522µs making 1 call to installer::logger::log_hashref
354
355121µs installer::logger::print_message( "... analyzing directories ... \n" );
# spent 21µs making 1 call to installer::logger::print_message
356
357 # Collect all directories in the script to get the destination dirs
358
35911.14s my $dirsinproductarrayref = installer::setupscript::get_all_items_from_script($setupscriptref, "Directory");
360
361 if ( $installer::globals::languagepack ) { installer::scriptitems::use_langpack_hostname($dirsinproductarrayref); }
362 if ( $installer::globals::patch ) { installer::scriptitems::use_patch_hostname($dirsinproductarrayref); }
363
364 if ( $allvariableshashref->{'SHIFT_BASIS_INTO_BRAND_LAYER'} ) { $dirsinproductarrayref = installer::scriptitems::shift_basis_directory_parents($dirsinproductarrayref); }
365 if ( $allvariableshashref->{'OFFICEDIRECTORYNAME'} ) { installer::scriptitems::set_officedirectory_name($dirsinproductarrayref, $allvariableshashref->{'OFFICEDIRECTORYNAME'}); }
366
367
368181.3ms installer::scriptitems::resolve_all_directory_names($dirsinproductarrayref);
369
370124µs installer::logger::print_message( "... analyzing files ... \n" );
# spent 24µs making 1 call to installer::logger::print_message
371
37211.42s my $filesinproductarrayref = installer::setupscript::get_all_items_from_script($setupscriptref, "File");
373
374 if (( ! $installer::globals::iswindowsbuild ) &&
375 ( ! $installer::globals::isrpmbuild ) &&
376 ( ! $installer::globals::isdebbuild ) &&
377 ( ! $installer::globals::issolarispkgbuild ) &&
378 ( $installer::globals::packageformat ne "installed" ) &&
379 ( $installer::globals::packageformat ne "dmg" ) &&
380 ( $installer::globals::packageformat ne "archive" ))
381 { installer::control::check_oxtfiles($filesinproductarrayref); }
382
38316.06ms if (! $installer::globals::languagepack)
384 {
385 $filesinproductarrayref = installer::scriptitems::remove_Languagepacklibraries_from_Installset($filesinproductarrayref);
386 }
387
38815.68ms if (! $installer::globals::helppack)
389 {
390 $filesinproductarrayref = installer::scriptitems::remove_Helppacklibraries_from_Installset($filesinproductarrayref);
391 }
392
39315.53ms if (! $installer::globals::patch)
394 {
395 $filesinproductarrayref = installer::scriptitems::remove_patchonlyfiles_from_Installset($filesinproductarrayref);
396 }
397
398122µs installer::logger::print_message( "... analyzing scpactions ... \n" );
# spent 22µs making 1 call to installer::logger::print_message
399
40011.05s my $scpactionsinproductarrayref = installer::setupscript::get_all_items_from_script($setupscriptref, "ScpAction");
401
402 if ( $installer::globals::languagepack ) { installer::scriptitems::use_langpack_copy_scpaction($scpactionsinproductarrayref); }
403 if ( $installer::globals::helppack ) { installer::scriptitems::use_langpack_copy_scpaction($scpactionsinproductarrayref); }
404 if ( $allvariableshashref->{'PRODUCTNAME'} eq "LibO-dev" ) { installer::scriptitems::use_devversion_copy_scpaction($scpactionsinproductarrayref); }
405 if ( $installer::globals::patch ) { installer::scriptitems::use_patch_copy_scpaction($scpactionsinproductarrayref); }
406
407113µs installer::scriptitems::change_keys_of_scpactions($scpactionsinproductarrayref);
408
409124µs installer::logger::print_message( "... analyzing shortcuts ... \n" );
# spent 24µs making 1 call to installer::logger::print_message
410
41111.05s my $linksinproductarrayref = installer::setupscript::get_all_items_from_script($setupscriptref, "Shortcut");
412
413126µs installer::logger::print_message( "... analyzing unix links ... \n" );
# spent 26µs making 1 call to installer::logger::print_message
414
41511.06s my $unixlinksinproductarrayref = installer::setupscript::get_all_items_from_script($setupscriptref, "Unixlink");
416
417126µs installer::logger::print_message( "... analyzing profile ... \n" );
# spent 26µs making 1 call to installer::logger::print_message
418
41911.06s my $profilesinproductarrayref = installer::setupscript::get_all_items_from_script($setupscriptref, "Profile");
420
421125µs installer::logger::print_message( "... analyzing profileitems ... \n" );
# spent 25µs making 1 call to installer::logger::print_message
422
42311.07s my $profileitemsinproductarrayref = installer::setupscript::get_all_items_from_script($setupscriptref, "ProfileItem");
424
425 my $folderinproductarrayref;
426 my $folderitemsinproductarrayref;
427 my $registryitemsinproductarrayref;
428 my $windowscustomactionsarrayref;
429 my $mergemodulesarrayref;
430
431 if ( $installer::globals::iswindowsbuild ) # Windows specific items: Folder, FolderItem, RegistryItem, WindowsCustomAction
432 {
433124µs installer::logger::print_message( "... analyzing folders ... \n" );
# spent 24µs making 1 call to installer::logger::print_message
434
43511.06s $folderinproductarrayref = installer::setupscript::get_all_items_from_script($setupscriptref, "Folder");
436
437125µs installer::logger::print_message( "... analyzing folderitems ... \n" );
# spent 25µs making 1 call to installer::logger::print_message
438
43911.09s $folderitemsinproductarrayref = installer::setupscript::get_all_items_from_script($setupscriptref, "FolderItem");
440
441191µs installer::setupscript::add_predefined_folder($folderitemsinproductarrayref, $folderinproductarrayref);
# spent 91µs making 1 call to installer::setupscript::add_predefined_folder
442
44311.92ms installer::setupscript::prepare_non_advertised_files($folderitemsinproductarrayref, $filesinproductarrayref);
444
445118µs installer::logger::print_message( "... analyzing registryitems ... \n" );
# spent 18µs making 1 call to installer::logger::print_message
446
44711.84s $registryitemsinproductarrayref = installer::setupscript::get_all_items_from_script($setupscriptref, "RegistryItem");
448
44919.46ms $registryitemsinproductarrayref = installer::scriptitems::remove_uninstall_regitems_from_script($registryitemsinproductarrayref);
450
451123µs installer::logger::print_message( "... analyzing Windows custom actions ... \n" );
# spent 23µs making 1 call to installer::logger::print_message
452
45311.08s $windowscustomactionsarrayref = installer::setupscript::get_all_items_from_script($setupscriptref, "WindowsCustomAction");
454
455120µs installer::logger::print_message( "... analyzing Windows merge modules ... \n" );
# spent 20µs making 1 call to installer::logger::print_message
456
45711.05s $mergemodulesarrayref = installer::setupscript::get_all_items_from_script($setupscriptref, "MergeModule");
458 }
459
460 my $modulesinproductarrayref;
461
462 if (!($installer::globals::is_copy_only_project))
463 {
464122µs installer::logger::print_message( "... analyzing modules ... \n" );
# spent 22µs making 1 call to installer::logger::print_message
465
46613.82s $modulesinproductarrayref = installer::setupscript::get_all_items_from_script($setupscriptref, "Module");
467
468134.5ms installer::scriptitems::resolve_assigned_modules($modulesinproductarrayref);
# spent 34.5ms making 1 call to installer::scriptitems::resolve_assigned_modules
469
470111.3ms $modulesinproductarrayref = installer::scriptitems::remove_template_modules($modulesinproductarrayref);
# spent 11.3ms making 1 call to installer::scriptitems::remove_template_modules
471
4721100ms installer::scriptitems::set_children_flag($modulesinproductarrayref);
# spent 100ms making 1 call to installer::scriptitems::set_children_flag
473
4741280ms installer::scriptitems::collect_all_languagemodules($modulesinproductarrayref);
475
476 # Assigning the modules to the items
477
4781193ms installer::scriptitems::assigning_modules_to_items($modulesinproductarrayref, $filesinproductarrayref, "Files");
479
48011.96ms installer::scriptitems::assigning_modules_to_items($modulesinproductarrayref, $unixlinksinproductarrayref, "Unixlinks");
481
482117.0ms installer::scriptitems::assigning_modules_to_items($modulesinproductarrayref, $dirsinproductarrayref, "Dirs");
483 }
484
485 #################################################
486 # Part 1b: The language dependent part
487 # (still platform independent)
488 #################################################
489
490 # Now starts the language dependent part, if more than one product is defined on the command line
491 # Example -l en-US,de#es,fr,it defines two multilingual products
492
493 ###############################################################################
494 # Beginning of language dependent part
495 # The for iterates over all products, separated by an # in the language list
496 ###############################################################################
497
498 for ( my $n = 0; $n <= $#installer::globals::languageproducts; $n++ )
499 {
50012.78ms my $languagesarrayref = installer::languages::get_all_languages_for_one_product($installer::globals::languageproducts[$n], $allvariableshashref);
501
5021158µs my $languagestringref = installer::languages::get_language_string($languagesarrayref);
# spent 158µs making 1 call to installer::languages::get_language_string
503119µs installer::logger::print_message( "------------------------------------\n" );
# spent 19µs making 1 call to installer::logger::print_message
50419µs installer::logger::print_message( "... languages $$languagestringref ... \n" );
# spent 9µs making 1 call to installer::logger::print_message
505
506 if ( $installer::globals::patch )
507 {
508 $installer::globals::addlicensefile = 0; # no license files for patches
509 $installer::globals::makedownload = 0;
510 }
511
512 if ( $installer::globals::languagepack )
513 {
514 $installer::globals::addsystemintegration = 0;
515 $installer::globals::addlicensefile = 0;
516 $installer::globals::makedownload = 1;
517 }
518
519 if ( $installer::globals::helppack )
520 {
521 $installer::globals::addsystemintegration = 0;
522 $installer::globals::addlicensefile = 0;
523 $installer::globals::makedownload = 1;
524 }
525
526 ############################################################
527 # Beginning of language specific logging mechanism
528 # Until now only global logging into default: logfile.txt
529 ############################################################
530
531 @installer::globals::logfileinfo = (); # new logfile array and new logfile name
5321459µs installer::logger::copy_globalinfo_into_logfile();
# spent 459µs making 1 call to installer::logger::copy_globalinfo_into_logfile
533 $installer::globals::globalinfo_copied = 1;
534
535 my $logminor = "";
536 $logminor = $installer::globals::minor;
537
538 my $loglanguagestring = $$languagestringref;
539 my $loglanguagestring_orig = $loglanguagestring;
540 if (length($loglanguagestring) > $installer::globals::max_lang_length)
541 {
5421827µs my $number_of_languages = installer::systemactions::get_number_of_langs($loglanguagestring);
# spent 827µs making 1 call to installer::systemactions::get_number_of_langs
5431288ms chomp(my $shorter = `echo $loglanguagestring | md5sum | sed -e "s/ .*//g"`);
# spent 288ms making 1 call to installer::CORE:backtick
544 my $id = substr($shorter, 0, 8); # taking only the first 8 digits
545 $loglanguagestring = "lang_" . $number_of_languages . "_id_" . $id;
546 }
547
548 $installer::globals::logfilename = "log_" . $installer::globals::build;
549 if ( $logminor ne "" ) { $installer::globals::logfilename .= "_" . $logminor; }
550 $installer::globals::logfilename .= "_" . $loglanguagestring;
551 $installer::globals::logfilename .= ".log";
552 $loggingdir = $loggingdir . $loglanguagestring . $installer::globals::separator;
55311.32ms installer::systemactions::create_directory($loggingdir);
# spent 1.32ms making 1 call to installer::systemactions::create_directory
554
555 if ($loglanguagestring ne $loglanguagestring_orig) {
556114µs (my $dir = $loggingdir) =~ s!/$!!;
# spent 14µs making 1 call to installer::CORE:subst
5571562µs open(my $F1, "> $dir.dir");
# spent 562µs making 1 call to installer::CORE:open
5581496µs open(my $F2, "> " . $loggingdir . $installer::globals::logfilename . '.file');
# spent 496µs making 1 call to installer::CORE:open
559 my @s = map { "$_\n" } split('_', $loglanguagestring_orig);
560115µs print $F1 @s;
# spent 15µs making 1 call to installer::CORE:print
561113µs print $F2 @s;
# spent 13µs making 1 call to installer::CORE:print
562 }
563
564 $installer::globals::exitlog = $loggingdir;
565
566 ###################################################################
567 # Reading an existing msi database, to prepare update and patch
568 ###################################################################
569
570 my $refdatabase = "";
571 my $uniquefilename = "";
572 my $revuniquefilename = "";
573 my $revshortfilename = "";
574 my $allupdatesequences = "";
575 my $allupdatecomponents = "";
576 my $allupdatefileorder = "";
577 my $allupdatecomponentorder = "";
578 my $shortdirname = "";
579 my $componentid = "";
580 my $componentidkeypath = "";
581 my $alloldproperties = "";
582 my $allupdatelastsequences = "";
583 my $allupdatediskids = "";
584
585 if ( $installer::globals::iswindowsbuild || $installer::globals::packageformat eq 'msi' )
586 {
587 if ( $allvariableshashref->{'UPDATE_DATABASE'} )
588 {
589121µs installer::logger::print_message( "... analyzing update database ...\n" );
# spent 21µs making 1 call to installer::logger::print_message
5901697µs $refdatabase = installer::windows::update::readdatabase($allvariableshashref, $languagestringref, $includepatharrayref);
# spent 697µs making 1 call to installer::windows::update::readdatabase
591
592 if ( $installer::globals::updatedatabase )
593 {
594 ($uniquefilename, $revuniquefilename, $revshortfilename, $allupdatesequences, $allupdatecomponents, $allupdatefileorder, $allupdatecomponentorder, $shortdirname, $componentid, $componentidkeypath, $alloldproperties, $allupdatelastsequences, $allupdatediskids) = installer::windows::update::create_database_hashes($refdatabase);
595 if ( $mergemodulesarrayref > -1 ) { installer::windows::update::readmergedatabase($mergemodulesarrayref, $languagestringref, $includepatharrayref); }
596 }
597 }
598 }
599
600 ##############################################
601 # Setting global code variables for Windows
602 ##############################################
603
6041124ms if (!($installer::globals::is_copy_only_project))
605 {
606 if ((( $installer::globals::iswindowsbuild ) && ( $installer::globals::packageformat ne "archive" ) && ( $installer::globals::packageformat ne "installed" ) ) || $installer::globals::packageformat eq 'msi' )
607 {
608 installer::windows::msiglobal::set_global_code_variables($languagesarrayref, $languagestringref, $allvariableshashref, $alloldproperties);
609 }
610 }
611
612 ################################################
613 # Resolving include paths (language dependent)
614 ################################################
615
6161221µs $includepatharrayref_lang = installer::ziplist::replace_languages_in_paths($includepatharrayref, $languagesarrayref);
# spent 221µs making 1 call to installer::ziplist::replace_languages_in_paths
617
618 if ( $installer::globals::refresh_includepaths ) { installer::worker::collect_all_files_from_includepaths($includepatharrayref_lang); }
619
6201342µs installer::ziplist::list_all_files_from_include_path($includepatharrayref_lang);
621
622 ##############################################
623 # Analyzing spellchecker languages
624 ##############################################
625
62614.64ms if ( $allvariableshashref->{'SPELLCHECKERFILE'} ) { installer::worker::set_spellcheckerlanguages($languagesarrayref, $allvariableshashref); }
# spent 4.64ms making 1 call to installer::worker::set_spellcheckerlanguages
627
628 #####################################
629 # Language dependent directory part
630 #####################################
631
63212.67s my $dirsinproductlanguageresolvedarrayref = installer::scriptitems::resolving_all_languages_in_productlists($dirsinproductarrayref, $languagesarrayref);
633
634 # A new directory array is needed ($dirsinproductlanguageresolvedarrayref instead of $dirsinproductarrayref)
635 # because $dirsinproductarrayref is needed in get_Destination_Directory_For_Item_From_Directorylist
636
637164.1ms installer::scriptitems::changing_name_of_language_dependent_keys($dirsinproductlanguageresolvedarrayref);
638
63917.27ms installer::scriptitems::checking_directories_with_corrupt_hostname($dirsinproductlanguageresolvedarrayref, $languagesarrayref);
640
641111.7ms installer::scriptitems::set_global_directory_hostnames($dirsinproductlanguageresolvedarrayref, $allvariableshashref);
642
643 #####################################
644 # files part, language dependent
645 #####################################
646
647122µs installer::logger::print_message( "... analyzing files ...\n" );
# spent 22µs making 1 call to installer::logger::print_message
648
649124.9s my $filesinproductlanguageresolvedarrayref = installer::scriptitems::resolving_all_languages_in_productlists($filesinproductarrayref, $languagesarrayref);
650
651155.7ms if ( ! $installer::globals::set_office_start_language )
652 {
653 $filesinproductlanguageresolvedarrayref = installer::scriptitems::remove_office_start_language_files($filesinproductlanguageresolvedarrayref);
654 }
655
6561374ms installer::scriptitems::changing_name_of_language_dependent_keys($filesinproductlanguageresolvedarrayref);
657
65816µs if ( $installer::globals::iswin and $^O =~ /MSWin/i ) { installer::converter::convert_slash_to_backslash($filesinproductlanguageresolvedarrayref); }
# spent 6µs making 1 call to installer::CORE:match
659
660143.7ms $filesinproductlanguageresolvedarrayref = installer::scriptitems::remove_non_existent_languages_in_productlists($filesinproductlanguageresolvedarrayref, $languagestringref, "Name", "file");
661
6621800ms installer::scriptitems::get_Destination_Directory_For_Item_From_Directorylist($filesinproductlanguageresolvedarrayref, $dirsinproductarrayref);
663
6641439ms installer::scriptitems::get_Source_Directory_For_Files_From_Includepathlist($filesinproductlanguageresolvedarrayref, $includepatharrayref_lang, $dirsinproductlanguageresolvedarrayref, "Files");
665
666123.9ms $filesinproductlanguageresolvedarrayref = installer::scriptitems::remove_Files_Without_Sourcedirectory($filesinproductlanguageresolvedarrayref);
667
668 if ($installer::globals::languagepack)
669 {
670 $filesinproductlanguageresolvedarrayref = installer::scriptitems::remove_Files_For_Languagepacks($filesinproductlanguageresolvedarrayref);
671 }
672
6731114ms if ( ! $allvariableshashref->{'NO_README_IN_ROOTDIR'} )
674 {
675 $filesinproductlanguageresolvedarrayref = installer::scriptitems::add_License_Files_into_Installdir($filesinproductlanguageresolvedarrayref, $dirsinproductlanguageresolvedarrayref, $languagesarrayref);
676 }
677
678156.5ms installer::scriptitems::make_filename_language_specific($filesinproductlanguageresolvedarrayref);
679
680 ######################################################################################
681 # Unzipping files with flag ARCHIVE and putting all included files into the file list
682 ######################################################################################
683
684123µs installer::logger::print_message( "... analyzing files with flag ARCHIVE ...\n" );
# spent 23µs making 1 call to installer::logger::print_message
685
686 my @additional_paths_from_zipfiles = ();
687
688150.0s $filesinproductlanguageresolvedarrayref = installer::archivefiles::resolving_archive_flag($filesinproductlanguageresolvedarrayref, \@additional_paths_from_zipfiles, $languagestringref, $loggingdir);
# spent 50.0s making 1 call to installer::archivefiles::resolving_archive_flag
689
690 # packed files sometimes contain a "$" in their name: HighlightText$1.class. For epm the "$" has to be quoted by "$$"
691
692 if (!( $installer::globals::iswindowsbuild || $installer::globals::simple ) )
693 {
694 installer::scriptitems::quoting_illegal_filenames($filesinproductlanguageresolvedarrayref);
695 }
696
697 #####################################
698 # Files with flag SUBST_FILENAME
699 #####################################
700
701123µs installer::logger::print_message( "... analyzing files with flag SUBST_FILENAME ...\n" );
# spent 23µs making 1 call to installer::logger::print_message
702
7031407ms installer::substfilenamefiles::resolving_subst_filename_flag($filesinproductlanguageresolvedarrayref, $allvariableshashref, $languagestringref);
704
705 #####################################
706 # Files with flag SCPZIP_REPLACE
707 #####################################
708
709126µs installer::logger::print_message( "... analyzing files with flag SCPZIP_REPLACE ...\n" );
# spent 26µs making 1 call to installer::logger::print_message
710
711 # Editing files with flag SCPZIP_REPLACE.
712
71311.13s installer::scpzipfiles::resolving_scpzip_replace_flag($filesinproductlanguageresolvedarrayref, $allvariableshashref, "File", $languagestringref);
714
715 #####################################
716 # Files with flag PATCH_SO_NAME
717 #####################################
718
719121µs installer::logger::print_message( "... analyzing files with flag PATCH_SO_NAME ...\n" );
# spent 21µs making 1 call to installer::logger::print_message
720
721 # Editing files with flag PATCH_SO_NAME.
722
7231443ms installer::scppatchsoname::resolving_patchsoname_flag($filesinproductlanguageresolvedarrayref, $allvariableshashref, "File", $languagestringref);
724
725 #####################################
726 # Files with flag HIDDEN
727 #####################################
728
729126µs installer::logger::print_message( "... analyzing files with flag HIDDEN ...\n" );
# spent 26µs making 1 call to installer::logger::print_message
730
7311401ms installer::worker::resolving_hidden_flag($filesinproductlanguageresolvedarrayref, $allvariableshashref, "File", $languagestringref);
# spent 401ms making 1 call to installer::worker::resolving_hidden_flag
732
733 ############################################
734 # Collecting directories for epm list file
735 ############################################
736
737125µs installer::logger::print_message( "... analyzing all directories for this product ...\n" );
# spent 25µs making 1 call to installer::logger::print_message
738
739 # There are two ways for a directory to be included into the epm directory list:
740 # 1. Looking for all destination paths in the files array
741 # 2. Looking for directories with CREATE flag in the directory array
742 # Advantage: Many paths are hidden in zip files, they are not defined in the setup script.
743 # It will be possible, that in the setup script only those directoies have to be defined,
744 # that have a CREATE flag. All other directories are created, if they contain at least one file.
745
74612.51s my ($directoriesforepmarrayref, $alldirectoryhash) = installer::scriptitems::collect_directories_from_filesarray($filesinproductlanguageresolvedarrayref);
747
7481102ms ($directoriesforepmarrayref, $alldirectoryhash) = installer::scriptitems::collect_directories_with_create_flag_from_directoryarray($dirsinproductlanguageresolvedarrayref, $alldirectoryhash);
749
750 #########################################################
751 # language dependent scpactions part
752 #########################################################
753
754113µs my $scpactionsinproductlanguageresolvedarrayref = installer::scriptitems::resolving_all_languages_in_productlists($scpactionsinproductarrayref, $languagesarrayref);
755
75617µs installer::scriptitems::changing_name_of_language_dependent_keys($scpactionsinproductlanguageresolvedarrayref);
757
7581162µs installer::scriptitems::get_Source_Directory_For_Files_From_Includepathlist($scpactionsinproductlanguageresolvedarrayref, $includepatharrayref_lang, $dirsinproductlanguageresolvedarrayref, "ScpActions");
759
760 # Editing scpactions with flag SCPZIP_REPLACE and PATCH_SO_NAME.
761
7621289ms installer::scpzipfiles::resolving_scpzip_replace_flag($scpactionsinproductlanguageresolvedarrayref, $allvariableshashref, "ScpAction", $languagestringref);
763
7641292ms installer::scppatchsoname::resolving_patchsoname_flag($scpactionsinproductlanguageresolvedarrayref, $allvariableshashref, "ScpAction", $languagestringref);
765
766 #########################################################
767 # language dependent links part
768 #########################################################
769
770119µs installer::logger::print_message( "... analyzing links ...\n" );
# spent 19µs making 1 call to installer::logger::print_message
771
772116µs my $linksinproductlanguageresolvedarrayref = installer::scriptitems::resolving_all_languages_in_productlists($linksinproductarrayref, $languagesarrayref);
773
77417µs installer::scriptitems::changing_name_of_language_dependent_keys($linksinproductlanguageresolvedarrayref);
775
776113µs installer::scriptitems::get_destination_file_path_for_links($linksinproductlanguageresolvedarrayref, $filesinproductlanguageresolvedarrayref);
777
77818µs installer::scriptitems::get_Destination_Directory_For_Item_From_Directorylist($linksinproductlanguageresolvedarrayref, $dirsinproductarrayref);
779
780 # Now taking all links that have no FileID but a ShortcutID, linking to another link
781
782110µs installer::scriptitems::get_destination_link_path_for_links($linksinproductlanguageresolvedarrayref);
783
78419µs $linksinproductlanguageresolvedarrayref = installer::scriptitems::remove_workstation_only_items($linksinproductlanguageresolvedarrayref);
785
78618µs installer::scriptitems::resolve_links_with_flag_relative($linksinproductlanguageresolvedarrayref);
787
788 #########################################################
789 # language dependent unix links part
790 #########################################################
791
79218µs installer::logger::print_message( "... analyzing unix links ...\n" );
# spent 8µs making 1 call to installer::logger::print_message
793
79417µs my $unixlinksinproductlanguageresolvedarrayref = installer::scriptitems::resolving_all_languages_in_productlists($unixlinksinproductarrayref, $languagesarrayref);
795
79614µs installer::scriptitems::changing_name_of_language_dependent_keys($unixlinksinproductlanguageresolvedarrayref);
797
79814µs installer::scriptitems::get_Destination_Directory_For_Item_From_Directorylist($unixlinksinproductlanguageresolvedarrayref, $dirsinproductarrayref);
799
800 #########################################################
801 # language dependent part for profiles and profileitems
802 #########################################################
803
804 my $profilesinproductlanguageresolvedarrayref;
805 my $profileitemsinproductlanguageresolvedarrayref;
806
80714µs if ((!($installer::globals::is_copy_only_project)) && (!($installer::globals::product =~ /ada/i )) && (!($installer::globals::languagepack)) && (!($installer::globals::helppack)))
# spent 4µs making 1 call to installer::CORE:match
808 {
80919µs installer::logger::print_message( "... creating profiles ...\n" );
# spent 9µs making 1 call to installer::logger::print_message
810
811162µs $profilesinproductlanguageresolvedarrayref = installer::scriptitems::resolving_all_languages_in_productlists($profilesinproductarrayref, $languagesarrayref);
812
8131436µs $profileitemsinproductlanguageresolvedarrayref = installer::scriptitems::resolving_all_languages_in_productlists($profileitemsinproductarrayref, $languagesarrayref);
814
815128µs installer::scriptitems::changing_name_of_language_dependent_keys($profilesinproductlanguageresolvedarrayref);
816
8171210µs installer::scriptitems::changing_name_of_language_dependent_keys($profileitemsinproductlanguageresolvedarrayref);
818
81911.40s installer::scriptitems::replace_setup_variables($profileitemsinproductlanguageresolvedarrayref, $languagestringref, $allvariableshashref);
# spent 1.40s making 1 call to installer::scriptitems::replace_setup_variables
820
821 if ( $installer::globals::patch_user_dir )
822 {
823 installer::scriptitems::replace_userdir_variable($profileitemsinproductlanguageresolvedarrayref);
824 }
825
8261471µs installer::scriptitems::get_Destination_Directory_For_Item_From_Directorylist($profilesinproductlanguageresolvedarrayref, $dirsinproductarrayref);
827
828 # Now the Profiles can be created
829
8301397ms installer::profiles::create_profiles($profilesinproductlanguageresolvedarrayref, $profileitemsinproductlanguageresolvedarrayref, $filesinproductlanguageresolvedarrayref, $languagestringref, $allvariableshashref);
# spent 397ms making 1 call to installer::profiles::create_profiles
831 }
832
833 my $registryitemsinproductlanguageresolvedarrayref; # cannot be defined in the following "if ( $installer::globals::iswindowsbuild )"
834 my $folderinproductlanguageresolvedarrayref; # cannot be defined in the following "if ( $installer::globals::iswindowsbuild )"
835 my $folderitemsinproductlanguageresolvedarrayref; # cannot be defined in the following "if ( $installer::globals::iswindowsbuild )"
836
837 if ( $installer::globals::iswindowsbuild ) # Windows specific items: Folder, FolderItem, RegistryItem
838 {
839 #########################################################
840 # language dependent part for folder
841 #########################################################
842
843122µs installer::logger::print_message( "... analyzing folder ...\n" );
# spent 22µs making 1 call to installer::logger::print_message
844
845129µs $folderinproductlanguageresolvedarrayref = installer::scriptitems::resolving_all_languages_in_productlists($folderinproductarrayref, $languagesarrayref);
846
847115µs installer::scriptitems::changing_name_of_language_dependent_keys($folderinproductlanguageresolvedarrayref);
848
849 #########################################################
850 # language dependent part for folderitems
851 #########################################################
852
85318µs installer::logger::print_message( "... analyzing folderitems ...\n" );
# spent 8µs making 1 call to installer::logger::print_message
854
85511.40s $folderitemsinproductlanguageresolvedarrayref = installer::scriptitems::resolving_all_languages_in_productlists($folderitemsinproductarrayref, $languagesarrayref);
856
857168.0ms installer::scriptitems::changing_name_of_language_dependent_keys($folderitemsinproductlanguageresolvedarrayref);
858
859 #########################################################
860 # language dependent part for registryitems
861 #########################################################
862
863123µs installer::logger::print_message( "... analyzing registryitems ...\n" );
# spent 23µs making 1 call to installer::logger::print_message
864
865125.7s $registryitemsinproductlanguageresolvedarrayref = installer::scriptitems::resolving_all_languages_in_productlists($registryitemsinproductarrayref, $languagesarrayref);
866
8671756ms installer::scriptitems::changing_name_of_language_dependent_keys($registryitemsinproductlanguageresolvedarrayref);
868 }
869
870 #########################################################
871 # language dependent part for modules
872 #########################################################
873
874 my $modulesinproductlanguageresolvedarrayref;
875
876 if (!($installer::globals::is_copy_only_project))
877 {
878132µs installer::logger::print_message( "... analyzing modules ...\n" );
# spent 32µs making 1 call to installer::logger::print_message
879
8801103s $modulesinproductlanguageresolvedarrayref = installer::scriptitems::resolving_all_languages_in_productlists($modulesinproductarrayref, $languagesarrayref);
881
88213.28s $modulesinproductlanguageresolvedarrayref = installer::scriptitems::remove_not_required_language_modules($modulesinproductlanguageresolvedarrayref, $languagesarrayref);
883
884 if ( $installer::globals::analyze_spellcheckerlanguage )
885 {
8861119ms $modulesinproductlanguageresolvedarrayref = installer::scriptitems::remove_not_required_spellcheckerlanguage_modules($modulesinproductlanguageresolvedarrayref);
887
888159.9ms $filesinproductlanguageresolvedarrayref = installer::scriptitems::remove_not_required_spellcheckerlanguage_files($filesinproductlanguageresolvedarrayref);
889 }
890
89112.30s installer::scriptitems::changing_name_of_language_dependent_keys($modulesinproductlanguageresolvedarrayref);
892
8931365ms installer::scriptitems::select_required_language_strings($modulesinproductlanguageresolvedarrayref); # using english strings
894
895 }
896
897 # Copy-only projects can now start to copy all items File and ScpAction
898 if ( $installer::globals::is_copy_only_project ) { installer::copyproject::copy_project($filesinproductlanguageresolvedarrayref, $scpactionsinproductlanguageresolvedarrayref, $loggingdir, $languagestringref, $shipinstalldir, $allsettingsarrayref); }
899
900 # Language pack projects can now start to select the required information
901 if ( $installer::globals::languagepack )
902 {
903 $filesinproductlanguageresolvedarrayref = installer::languagepack::select_language_items($filesinproductlanguageresolvedarrayref, $languagesarrayref, "File");
904 $scpactionsinproductlanguageresolvedarrayref = installer::languagepack::select_language_items($scpactionsinproductlanguageresolvedarrayref, $languagesarrayref, "ScpAction");
905 $linksinproductlanguageresolvedarrayref = installer::languagepack::select_language_items($linksinproductlanguageresolvedarrayref, $languagesarrayref, "Shortcut");
906 $unixlinksinproductlanguageresolvedarrayref = installer::languagepack::select_language_items($unixlinksinproductlanguageresolvedarrayref, $languagesarrayref, "Unixlink");
907 @{$folderitemsinproductlanguageresolvedarrayref} = (); # no folderitems in languagepacks
908
909 # Collecting the directories again, to include only the language specific directories
910 ($directoriesforepmarrayref, $alldirectoryhash) = installer::scriptitems::collect_directories_from_filesarray($filesinproductlanguageresolvedarrayref);
911 ($directoriesforepmarrayref, $alldirectoryhash) = installer::scriptitems::collect_directories_with_create_flag_from_directoryarray($dirsinproductlanguageresolvedarrayref, $alldirectoryhash);
912 @$directoriesforepmarrayref = sort { $a->{"HostName"} cmp $b->{"HostName"} } @$directoriesforepmarrayref;
913
914 if ( $installer::globals::iswindowsbuild )
915 {
916 $registryitemsinproductlanguageresolvedarrayref = installer::worker::select_langpack_items($registryitemsinproductlanguageresolvedarrayref, "RegistryItem");
917 }
918
919 }
920
921 # Help pack projects can now start to select the required information
922 if ( $installer::globals::helppack )
923 {
924 $filesinproductlanguageresolvedarrayref = installer::helppack::select_help_items($filesinproductlanguageresolvedarrayref, $languagesarrayref, "File");
925 $scpactionsinproductlanguageresolvedarrayref = installer::helppack::select_help_items($scpactionsinproductlanguageresolvedarrayref, $languagesarrayref, "ScpAction");
926 $linksinproductlanguageresolvedarrayref = installer::helppack::select_help_items($linksinproductlanguageresolvedarrayref, $languagesarrayref, "Shortcut");
927 $unixlinksinproductlanguageresolvedarrayref = installer::helppack::select_help_items($unixlinksinproductlanguageresolvedarrayref, $languagesarrayref, "Unixlink");
928 @{$folderitemsinproductlanguageresolvedarrayref} = (); # no folderitems in helppacks
929
930 # Collecting the directories again, to include only the language specific directories
931 ($directoriesforepmarrayref, $alldirectoryhash) = installer::scriptitems::collect_directories_from_filesarray($filesinproductlanguageresolvedarrayref);
932 ($directoriesforepmarrayref, $alldirectoryhash) = installer::scriptitems::collect_directories_with_create_flag_from_directoryarray($dirsinproductlanguageresolvedarrayref, $alldirectoryhash);
933 @$directoriesforepmarrayref = sort { $a->{"HostName"} cmp $b->{"HostName"} } @$directoriesforepmarrayref;
934
935 if ( $installer::globals::iswindowsbuild )
936 {
937 $registryitemsinproductlanguageresolvedarrayref = installer::worker::select_helppack_items($registryitemsinproductlanguageresolvedarrayref, "RegistryItem");
938 }
939
940 }
941
942 # Collecting all files without flag PATCH (for maintenance reasons)
943 if ( $installer::globals::patch ) { installer::worker::collect_all_files_without_patch_flag($filesinproductlanguageresolvedarrayref); }
944
945 # Patch projects can now start to select the required information
946 if (( $installer::globals::patch ) && (( $installer::globals::issolarispkgbuild ) || ( $installer::globals::iswindowsbuild )))
947 {
948 $filesinproductlanguageresolvedarrayref = installer::worker::select_patch_items($filesinproductlanguageresolvedarrayref, "File");
949 $scpactionsinproductlanguageresolvedarrayref = installer::worker::select_patch_items($scpactionsinproductlanguageresolvedarrayref, "ScpAction");
950 $linksinproductlanguageresolvedarrayref = installer::worker::select_patch_items($linksinproductlanguageresolvedarrayref, "Shortcut");
951 $unixlinksinproductlanguageresolvedarrayref = installer::worker::select_patch_items($unixlinksinproductlanguageresolvedarrayref, "Unixlink");
952 $folderitemsinproductlanguageresolvedarrayref = installer::worker::select_patch_items($folderitemsinproductlanguageresolvedarrayref, "FolderItem");
953 # @{$folderitemsinproductlanguageresolvedarrayref} = (); # no folderitems in languagepacks
954
955 if ( $installer::globals::iswindowsbuild )
956 {
957 $registryitemsinproductlanguageresolvedarrayref = installer::worker::select_patch_items_without_name($registryitemsinproductlanguageresolvedarrayref, "RegistryItem");
958
959 installer::worker::prepare_windows_patchfiles($filesinproductlanguageresolvedarrayref, $languagestringref, $allvariableshashref);
960
961 # For Windows patches, the directories can now be collected again
962 ($directoriesforepmarrayref, $alldirectoryhash) = installer::scriptitems::collect_directories_from_filesarray($filesinproductlanguageresolvedarrayref);
963
964 @$directoriesforepmarrayref = sort { $a->{"HostName"} cmp $b->{"HostName"} } @$directoriesforepmarrayref;
965 }
966 }
967
968 #########################################################
969 # Collecting all scp actions
970 #########################################################
971
972116µs installer::worker::collect_scpactions($scpactionsinproductlanguageresolvedarrayref);
# spent 16µs making 1 call to installer::worker::collect_scpactions
973
974 ###########################################################
975 # Simple package projects can now start to create the
976 # installation structure by creating Directories, Files
977 # Links and ScpActions. This is the last platform
978 # independent part.
979 ###########################################################
980
981 if ( $installer::globals::is_simple_packager_project )
982 {
983 installer::simplepackage::create_simple_package($filesinproductlanguageresolvedarrayref, $directoriesforepmarrayref, $scpactionsinproductlanguageresolvedarrayref, $linksinproductlanguageresolvedarrayref, $unixlinksinproductlanguageresolvedarrayref, $loggingdir, $languagestringref, $shipinstalldir, $allsettingsarrayref, $allvariableshashref, $includepatharrayref);
984 next; # ! leaving the current loop, because no further packaging required.
985 }
986
987 ###########################################################
988 # Analyzing the package structure
989 ###########################################################
990
991129µs installer::logger::print_message( "... analyzing package list ...\n" );
# spent 29µs making 1 call to installer::logger::print_message
992
993110.0s my $packages = installer::packagelist::collectpackages($modulesinproductlanguageresolvedarrayref, $languagesarrayref);
# spent 10.0s making 1 call to installer::packagelist::collectpackages
994113.4ms installer::packagelist::check_packagelist($packages);
# spent 13.4ms making 1 call to installer::packagelist::check_packagelist
995
996172.6s $packages = installer::packagelist::analyze_list($packages, $modulesinproductlanguageresolvedarrayref);
# spent 72.6s making 1 call to installer::packagelist::analyze_list
997123.5s installer::packagelist::remove_multiple_modules_packages($packages);
998
999 # printing packages content:
10001202ms installer::packagelist::log_packages_content($packages);
# spent 202ms making 1 call to installer::packagelist::log_packages_content
100112.71s installer::packagelist::create_module_destination_hash($packages, $allvariableshashref);
1002
1003 #################################################
1004 # Part 2: The platform dependent part
1005 #################################################
1006
1007 #################################################
1008 # Part 2a: All non-Windows platforms
1009 #################################################
1010
1011 #########################################################
1012 # ... creating epm list file ...
1013 # Only for non-Windows platforms
1014 #########################################################
1015
1016 if (!( $installer::globals::iswindowsbuild ))
1017 {
1018 ####################################################
1019 # Writing log file before packages are packed
1020 ####################################################
1021
1022 installer::logger::print_message( "... creating log file " . $loggingdir . $installer::globals::logfilename . "\n" );
1023 installer::files::save_file($loggingdir . $installer::globals::logfilename, \@installer::globals::logfileinfo);
1024
1025 ####################################################
1026 # Creating directories
1027 ####################################################
1028
1029 if ( $allvariableshashref->{'OOODOWNLOADNAME'} ) { installer::download::set_download_filename($languagestringref, $allvariableshashref); }
1030 else { installer::download::resolve_variables_in_downloadname($allvariableshashref, "", $languagestringref); }
1031
1032 $installdir = installer::worker::create_installation_directory($shipinstalldir, $languagestringref, \$current_install_number);
1033
1034 my $listfiledir = installer::systemactions::create_directories("listfile", $languagestringref);
1035 my $installlogdir = installer::systemactions::create_directory_next_to_directory($installdir, "log");
1036
1037 ####################################################
1038 # Reading for Solaris all package descriptions
1039 # from file defined in property PACKAGEMAP
1040 ####################################################
1041
1042 if ( $installer::globals::issolarisbuild ) { installer::epmfile::read_packagemap($allvariableshashref, $includepatharrayref, $languagesarrayref); }
1043
1044 ###########################################
1045 # Checking epm state
1046 ###########################################
1047
1048 my $epmexecutable = "";
1049 if ( $installer::globals::call_epm )
1050 {
1051 $epmexecutable = installer::epmfile::find_epm_on_system($includepatharrayref);
1052 installer::epmfile::set_patch_state($epmexecutable); # setting $installer::globals::is_special_epm
1053 }
1054
1055 # shuffle array to reduce parallel packaging process in pool
1056 installer::worker::shuffle_array($packages)
1057 unless $installer::globals::simple;
1058
1059 # iterating over all packages
1060 for my $onepackage ( @{$packages} )
1061 {
1062 # checking, if this is a language pack or a project pack.
1063 # Creating language packs only, if $installer::globals::languagepack is set. Parameter: -languagepack
1064
1065 if ( $installer::globals::languagepack ) { installer::languagepack::replace_languagestring_variable($onepackage, $languagestringref); }
1066
1067 # checking, if this is a help pack
1068 # Creating help packs only, if $installer::globals::helppack is set. Parameter: -helppack
1069
1070 if ( $installer::globals::helppack ) { installer::helppack::replace_languagestring_variable($onepackage, $languagestringref); }
1071
1072 my $onepackagename = $onepackage->{'module'}; # name of the top module (required)
1073
1074 my $shellscriptsfilename = "";
1075 if ( $onepackage->{'script'} ) { $shellscriptsfilename = $onepackage->{'script'}; }
1076 # no scripts for Solaris patches!
1077 if (( $installer::globals::patch ) && ( $installer::globals::issolarispkgbuild )) { $shellscriptsfilename = ""; }
1078
1079 ###########################
1080 # package name
1081 ###########################
1082
1083 my $packagename = "";
1084
1085 if ( $installer::globals::issolarisbuild ) # only for Solaris
1086 {
1087 if ( $onepackage->{'solarispackagename'} ) { $packagename = $onepackage->{'solarispackagename'}; }
1088 }
1089 else # not Solaris
1090 {
1091 if ( $onepackage->{'packagename'} ) { $packagename = $onepackage->{'packagename'}; }
1092 }
1093
1094 if (!($packagename eq ""))
1095 {
1096 installer::packagelist::resolve_packagevariables(\$packagename, $allvariableshashref, 0);
1097 }
1098
1099 # Debian allows no underline in package name
1100 if ( $installer::globals::debian ) { $packagename =~ s/_/-/g; }
1101
1102 ####################################################
1103 # Header for this package into log file
1104 ####################################################
1105
1106 installer::logger::include_header_into_logfile("Creating package: $packagename");
1107
1108 ###########################################
1109 # Root path, can be defined as parameter
1110 ###########################################
1111
1112 my $packagerootpath = "";
1113
1114 if ($installer::globals::rootpath eq "")
1115 {
1116 $packagerootpath = $onepackage->{'destpath'};
1117 installer::packagelist::resolve_packagevariables(\$packagerootpath, $allvariableshashref, 1);
1118 # we put branding and common stuff into the same prefix on unixes => $packagerootpath must be the whole prefix, including the product name
1119 if ($installer::globals::isunix) { $packagerootpath .= "/$allvariableshashref->{'UNIXBASISROOTNAME'}"; }
1120 if ( $^O =~ /darwin/i ) { $packagerootpath =~ s/\/opt\//\/Applications\//; }
1121 }
1122 else
1123 {
1124 $packagerootpath = $installer::globals::rootpath;
1125 }
1126
1127 #############################################
1128 # copying the collectors for each package
1129 #############################################
1130
1131 my $filesinpackage = installer::converter::copy_collector($filesinproductlanguageresolvedarrayref);
1132 my $linksinpackage = installer::converter::copy_collector($linksinproductlanguageresolvedarrayref);
1133 my $unixlinksinpackage = installer::converter::copy_collector($unixlinksinproductlanguageresolvedarrayref);
1134 my $dirsinpackage = installer::converter::copy_collector($directoriesforepmarrayref);
1135
1136 ###########################################
1137 # setting the root path for the packages
1138 ###########################################
1139
1140 installer::scriptitems::add_rootpath_to_directories($dirsinpackage, $packagerootpath);
1141 installer::scriptitems::add_rootpath_to_files($filesinpackage, $packagerootpath);
1142 installer::scriptitems::add_rootpath_to_links($linksinpackage, $packagerootpath);
1143 installer::scriptitems::add_rootpath_to_files($unixlinksinpackage, $packagerootpath);
1144
1145 #################################
1146 # collecting items for package
1147 #################################
1148
1149 $filesinpackage = installer::packagelist::find_files_for_package($filesinpackage, $onepackage);
1150 $unixlinksinpackage = installer::packagelist::find_files_for_package($unixlinksinpackage, $onepackage);
1151 $linksinpackage = installer::packagelist::find_links_for_package($linksinpackage, $filesinpackage);
1152 $dirsinpackage = installer::packagelist::find_dirs_for_package($dirsinpackage, $onepackage);
1153
1154 ###############################################
1155 # nothing to do, if $filesinpackage is empty
1156 ###############################################
1157
1158 if ( ! ( $#{$filesinpackage} > -1 ))
1159 {
1160 $infoline = "\n\nNo file in package: $packagename \-\> Skipping\n\n";
1161 push(@installer::globals::logfileinfo, $infoline);
1162 next; # next package, end of loop !
1163 }
1164
1165 #################################################################
1166 # nothing to do for Linux patches, if no file has flag PATCH
1167 #################################################################
1168
1169 # Linux Patch: The complete RPM has to be built, if one file in the RPM has the flag PATCH (also for DEBs)
1170 if (( $installer::globals::patch ) && (( $installer::globals::isrpmbuild ) || ( $installer::globals::isdebbuild )))
1171 {
1172 my $patchfiles = installer::worker::collect_all_items_with_special_flag($filesinpackage ,"PATCH");
1173 if ( ! ( $#{$patchfiles} > -1 ))
1174 {
1175 $infoline = "\n\nLinux Patch: No patch file in package: $packagename \-\> Skipping\n\n";
1176 push(@installer::globals::logfileinfo, $infoline);
1177 next;
1178 }
1179 }
1180
1181 ###########################################
1182 # Stripping libraries
1183 ###########################################
1184
1185 # Building for non Windows platforms in cws requires, that all files are stripped before packaging:
1186 # 1. copy all files that need to be stripped locally
1187 # 2. strip all these files
1188
1189 if ( $installer::globals::strip )
1190 {
1191 strip_libraries($filesinpackage, $languagestringref);
1192 }
1193
1194 if ( $installer::globals::simple ) {
1195 installer::worker::install_simple($onepackagename, $$languagestringref, $dirsinpackage, $filesinpackage, $linksinpackage, $unixlinksinpackage);
1196 }
1197 else {
1198 # epm list file format:
1199 # type mode owner group destination source options
1200 # Example for a file: f 755 root sys /usr/bin/foo foo
1201 # Example for a directory: d 755 root sys /var/spool/foo -
1202 # Example for a link: l 000 root sys /usr/bin/linkname filename
1203 # The source field specifies the file to link to
1204
1205 my $epmfilename = "epm_" . $onepackagename . ".lst";
1206
1207 installer::logger::print_message( "... creating epm list file $epmfilename ... \n" );
1208
1209 my $completeepmfilename = $listfiledir . $installer::globals::separator . $epmfilename;
1210
1211 my @epmfile = ();
1212
1213 my $epmheaderref = installer::epmfile::create_epm_header($allvariableshashref, $filesinproductlanguageresolvedarrayref, $languagesarrayref, $onepackage);
1214 installer::epmfile::adding_header_to_epm_file(\@epmfile, $epmheaderref);
1215
1216 if (( $installer::globals::patch ) && ( $installer::globals::issolarispkgbuild ))
1217 {
1218 $filesinpackage = installer::worker::analyze_patch_files($filesinpackage);
1219
1220 if ( ! ( $#{$filesinpackage} > -1 ))
1221 {
1222 $infoline = "\nNo file in package: $packagename \-\> Skipping\n";
1223 push(@installer::globals::logfileinfo, $infoline);
1224 next; # next package, end of loop !
1225 }
1226 }
1227
1228 # adding directories, files and links into epm file
1229
1230 installer::epmfile::put_directories_into_epmfile($dirsinpackage, \@epmfile, $allvariableshashref, $packagerootpath);
1231 installer::epmfile::put_files_into_epmfile($filesinpackage, \@epmfile );
1232 installer::epmfile::put_links_into_epmfile($linksinpackage, \@epmfile );
1233 installer::epmfile::put_unixlinks_into_epmfile($unixlinksinpackage, \@epmfile );
1234
1235 if ((!( $shellscriptsfilename eq "" )) && (!($installer::globals::iswindowsbuild))) { installer::epmfile::adding_shellscripts_to_epm_file(\@epmfile, $shellscriptsfilename, $packagerootpath, $allvariableshashref, $filesinpackage); }
1236
1237 installer::files::save_file($completeepmfilename ,\@epmfile);
1238
1239 # ... splitting the rootpath into a relocatable part and a static part, if possible
1240
1241 my $staticpath = "";
1242 my $relocatablepath = "";
1243 # relocatable path can be defined in package list
1244 if ( $onepackage->{'relocatablepath'} ) { $relocatablepath = $onepackage->{'relocatablepath'}; }
1245 # setting fix part and variable part of destination path
1246 installer::epmfile::analyze_rootpath($packagerootpath, \$staticpath, \$relocatablepath, $allvariableshashref);
1247
1248 # ... replacing the variable PRODUCTDIRECTORYNAME in the shellscriptfile by $staticpath
1249
1250 installer::epmfile::resolve_path_in_epm_list_before_packaging(\@epmfile, $completeepmfilename, "PRODUCTDIRECTORYNAME", $staticpath);
1251 installer::epmfile::resolve_path_in_epm_list_before_packaging(\@epmfile, $completeepmfilename, "SOLSUREPACKAGEPREFIX", $allvariableshashref->{'SOLSUREPACKAGEPREFIX'});
1252 installer::epmfile::resolve_path_in_epm_list_before_packaging(\@epmfile, $completeepmfilename, "UREPACKAGEPREFIX", $allvariableshashref->{'UREPACKAGEPREFIX'});
1253 installer::files::save_file($completeepmfilename ,\@epmfile);
1254
1255 {
1256 # changing into the "install" directory to create installation sets
1257
1258 $currentdir = cwd(); # $currentdir is global in this file
1259
1260 chdir($installdir); # changing into install directory ($installdir is global in this file)
1261
1262 ###########################################
1263 # Starting epm
1264 ###########################################
1265
1266 # With a patched epm, it is now possible to set the relocatable directory, change
1267 # the directory in which the packages are created, setting "requires" and "provides"
1268 # (Linux) or creating the "depend" file (Solaris) and finally to begin
1269 # the packaging process with standard tooling and standard parameter
1270 # Linux: Adding into the spec file: Prefix: /opt
1271 # Solaris: Adding into the pkginfo file: BASEDIR=/opt
1272 # Attention: Changing of the path can influence the shell scripts
1273
1274 if (( $installer::globals::is_special_epm ) && ( ($installer::globals::isrpmbuild) || ($installer::globals::issolarispkgbuild) )) # special handling only for Linux RPMs and Solaris Packages
1275 {
1276 if ( $installer::globals::call_epm ) # only do something, if epm is really executed
1277 {
1278 # ... now epm can be started, to create the installation sets
1279
1280 installer::logger::print_message( "... starting patched epm ... \n" );
1281
1282 installer::epmfile::call_epm($epmexecutable, $completeepmfilename, $packagename, $includepatharrayref);
1283
1284 my $newepmdir = installer::epmfile::prepare_packages($loggingdir, $packagename, $staticpath, $relocatablepath, $onepackage, $allvariableshashref, $filesinpackage, $languagestringref); # adding the line for Prefix / Basedir, include rpmdir
1285
1286 installer::epmfile::create_packages_without_epm($newepmdir, $packagename, $includepatharrayref, $allvariableshashref, $languagestringref); # start to package
1287
1288 # finally removing all temporary files
1289
1290 installer::epmfile::remove_temporary_epm_files($newepmdir, $loggingdir, $packagename);
1291
1292 # Installation:
1293 # Install: pkgadd -a myAdminfile -d ./SUNWso8m34.pkg
1294 # Install: rpm -i --prefix=/opt/special --nodeps so8m35.rpm
1295
1296 installer::epmfile::create_new_directory_structure($newepmdir);
1297 $installer::globals::postprocess_specialepm = 1;
1298
1299 # solaris patch not needed anymore
1300 }
1301 }
1302
1303 else # this is the standard epm (not relocatable) or ( nonlinux and nonsolaris )
1304 {
1305 installer::epmfile::resolve_path_in_epm_list_before_packaging(\@epmfile, $completeepmfilename, "\$\$PRODUCTINSTALLLOCATION", $relocatablepath);
1306 installer::files::save_file($completeepmfilename ,\@epmfile); # Warning for pool, content of epm file is changed.
1307
1308 if ( $installer::globals::call_epm )
1309 {
1310 # ... now epm can be started, to create the installation sets
1311
1312 installer::logger::print_message( "... starting unpatched epm ... \n" );
1313
1314 if ( $installer::globals::call_epm ) { installer::epmfile::call_epm($epmexecutable, $completeepmfilename, $packagename, $includepatharrayref); }
1315
1316 if (($installer::globals::isrpmbuild) || ($installer::globals::issolarispkgbuild) || ($installer::globals::debian))
1317 {
1318 $installer::globals::postprocess_standardepm = 1;
1319 }
1320 }
1321 }
1322
1323 chdir($currentdir); # changing back into start directory
1324
1325 }
1326
1327 } # end of "if ( ! $installer::globals::simple )
1328
1329 } # end of "for ( @{$packages} )"
1330
1331 ##############################################################
1332 # Post epm functionality, after the last package is packed
1333 ##############################################################
1334
1335 if ( $installer::globals::postprocess_specialepm )
1336 {
1337 installer::logger::include_header_into_logfile("Post EPM processes (Patched EPM):");
1338
1339 chdir($installdir);
1340
1341 # Copying the cde, kde and gnome packages into the installation set
1342 if ( $installer::globals::addsystemintegration ) { installer::epmfile::put_systemintegration_into_installset($installer::globals::epmoutpath, $includepatharrayref, $allvariableshashref, $modulesinproductarrayref); }
1343
1344 # Adding license and readme into installation set
1345 if ($installer::globals::addlicensefile) { installer::worker::put_scpactions_into_installset("."); }
1346
1347 # Adding license file into setup
1348 if ( $allvariableshashref->{'PUT_LICENSE_INTO_SETUP'} ) { installer::worker::put_license_into_setup(".", $includepatharrayref); }
1349
1350 # Creating installation set for Unix language packs, that are not part of multi lingual installation sets
1351 if ( ( $installer::globals::languagepack ) && ( ! $installer::globals::debian ) && ( ! $installer::globals::makedownload ) ) { installer::languagepack::build_installer_for_languagepack($installer::globals::epmoutpath, $allvariableshashref, $includepatharrayref, $languagesarrayref, $languagestringref); }
1352
1353 # Creating installation set for Unix help packs, that are not part of multi lingual installation sets
1354 if ( ( $installer::globals::helppack ) && ( ! $installer::globals::debian ) && ( ! $installer::globals::makedownload ) ) { installer::helppack::build_installer_for_helppack($installer::globals::epmoutpath, $allvariableshashref, $includepatharrayref, $languagesarrayref, $languagestringref); }
1355
1356 # Finalizing patch installation sets
1357 if (( $installer::globals::patch ) && ( $installer::globals::issolarispkgbuild )) { installer::epmfile::finalize_patch($installer::globals::epmoutpath, $allvariableshashref); }
1358 if (( $installer::globals::patch ) && ( $installer::globals::isrpmbuild )) { installer::epmfile::finalize_linux_patch($installer::globals::epmoutpath, $allvariableshashref, $includepatharrayref); }
1359
1360 chdir($currentdir); # changing back into start directory
1361 }
1362
1363 if ( $installer::globals::postprocess_standardepm )
1364 {
1365 installer::logger::include_header_into_logfile("Post EPM processes (Standard EPM):");
1366
1367 chdir($installdir);
1368
1369 # determine the destination directory
1370 my $newepmdir = installer::epmfile::determine_installdir_ooo();
1371
1372 # Copying the cde, kde and gnome packages into the installation set
1373 if ( $installer::globals::addsystemintegration ) { installer::epmfile::put_systemintegration_into_installset($newepmdir, $includepatharrayref, $allvariableshashref, $modulesinproductarrayref); }
1374
1375 # Adding license and readme into installation set
1376 if ($installer::globals::addlicensefile) { installer::worker::put_scpactions_into_installset("."); }
1377
1378 # Adding license file into setup
1379 if ( $allvariableshashref->{'PUT_LICENSE_INTO_SETUP'} ) { installer::worker::put_license_into_setup(".", $includepatharrayref); }
1380
1381 # Creating installation set for Unix language packs, that are not part of multi lingual installation sets
1382 if ( ( $installer::globals::languagepack ) && ( ! $installer::globals::debian ) && ( ! $installer::globals::makedownload ) ) { installer::languagepack::build_installer_for_languagepack($newepmdir, $allvariableshashref, $includepatharrayref, $languagesarrayref, $languagestringref); }
1383
1384 # Creating installation set for Unix help packs, that are not part of multi lingual installation sets
1385 if ( ( $installer::globals::helppack ) && ( ! $installer::globals::debian ) && ( ! $installer::globals::makedownload ) ) { installer::helppack::build_installer_for_helpepack($newepmdir, $allvariableshashref, $includepatharrayref, $languagesarrayref, $languagestringref); }
1386
1387 chdir($currentdir); # changing back into start directory
1388 }
1389
1390 if (( $installer::globals::issolarispkgbuild ) && ( $allvariableshashref->{'COLLECT_PKGMAP'} )) { installer::worker::collectpackagemaps($installdir, $languagestringref, $allvariableshashref); }
1391
1392 #######################################################
1393 # Analyzing the log file
1394 #######################################################
1395
1396 my $is_success = 0;
1397 my $finalinstalldir = "";
1398
1399 installer::worker::clean_output_tree(); # removing directories created in the output tree
1400 ($is_success, $finalinstalldir) = installer::worker::analyze_and_save_logfile($loggingdir, $installdir, $installlogdir, $allsettingsarrayref, $languagestringref, $current_install_number);
1401 my $downloadname = installer::ziplist::getinfofromziplist($allsettingsarrayref, "downloadname");
1402
1403 #######################################################
1404 # Creating download installation set
1405 #######################################################
1406
1407 if ( $installer::globals::makedownload )
1408 {
1409 my $create_download = 0;
1410 if ( $$downloadname ne "" ) { $create_download = 1; }
1411 if ( $installer::globals::iswindowsbuild ) { $create_download = 0; }
1412 if (( $is_success ) && ( $create_download ) && ( $ENV{'ENABLE_DOWNLOADSETS'} ))
1413 {
1414 my $downloaddir = installer::download::create_download_sets($finalinstalldir, $includepatharrayref, $allvariableshashref, $$downloadname, $languagestringref, $languagesarrayref);
1415 installer::worker::analyze_and_save_logfile($loggingdir, $downloaddir, $installlogdir, $allsettingsarrayref, $languagestringref, $current_install_number);
1416 }
1417 }
1418 } # end of "if (!( $installer::globals::iswindowsbuild ))"
1419
1420 #################################################
1421 # Part 2b: The Windows platform
1422 #################################################
1423
1424 #####################################################################
1425 # ... creating idt files ...
1426 # Only for Windows builds ($installer::globals::compiler is wntmsci)
1427 #####################################################################
1428
1429 if ( $installer::globals::iswindowsbuild )
1430 {
1431 ###########################################
1432 # Stripping libraries
1433 ###########################################
1434
1435 # Building for gcc build in cws requires, that all files are stripped before packaging:
1436 # 1. copy all files that need to be stripped locally
1437 # 2. strip all these files
1438
143915µs if ( $installer::globals::compiler =~ /wntgcci/ )
# spent 5µs making 1 call to installer::CORE:match
1440 {
1441 installer::windows::strip::strip_binaries($filesinproductlanguageresolvedarrayref, $languagestringref);
1442 }
1443
14441548ms $installdir = installer::worker::create_installation_directory($shipinstalldir, $languagestringref, \$current_install_number);
# spent 548ms making 1 call to installer::worker::create_installation_directory
1445
14461367ms my $idtdirbase = installer::systemactions::create_directories("idt_files", $languagestringref);
# spent 367ms making 1 call to installer::systemactions::create_directories
14471361ms $installer::globals::infodirectory = installer::systemactions::create_directories("info_files", $languagestringref);
# spent 361ms making 1 call to installer::systemactions::create_directories
144811.11ms my $installlogdir = installer::systemactions::create_directory_next_to_directory($installdir, "log");
1449
1450 #################################################################################
1451 # Preparing cabinet files from package definitions
1452 #################################################################################
1453
145412.70s installer::packagelist::prepare_cabinet_files($packages, $allvariableshashref);
# spent 2.70s making 1 call to installer::packagelist::prepare_cabinet_files
1455 # printing packages content:
145619.15ms installer::packagelist::log_cabinet_assignments();
# spent 9.15ms making 1 call to installer::packagelist::log_cabinet_assignments
1457
1458 #################################################################################
1459 # Begin of functions that are used for the creation of idt files (Windows only)
1460 #################################################################################
1461
1462123µs installer::logger::print_message( "... creating idt files ...\n" );
# spent 23µs making 1 call to installer::logger::print_message
1463
14641108µs installer::logger::include_header_into_logfile("Creating idt files:");
# spent 108µs making 1 call to installer::logger::include_header_into_logfile
1465
1466 my $newidtdir = $idtdirbase . $installer::globals::separator . "00"; # new files into language independent directory "00"
14671947µs installer::systemactions::create_directory($newidtdir);
# spent 947µs making 1 call to installer::systemactions::create_directory
1468
1469 my @allfilecomponents = ();
1470 my @allregistrycomponents = ();
1471
1472 # Collecting all files with flag "BINARYTABLE"
14731161ms my $binarytablefiles = installer::worker::collect_all_items_with_special_flag($filesinproductlanguageresolvedarrayref ,"BINARYTABLE");
1474
1475 # Removing all files with flag "BINARYTABLE_ONLY"
1476 @installer::globals::binarytableonlyfiles = ();
14771176ms $filesinproductlanguageresolvedarrayref = installer::worker::remove_all_items_with_special_flag($filesinproductlanguageresolvedarrayref ,"BINARYTABLE_ONLY");
1478
1479 # Collecting all profileitems with flag "INIFILETABLE" for table "IniFile"
14801838µs my $inifiletableentries = installer::worker::collect_all_items_with_special_flag($profileitemsinproductlanguageresolvedarrayref ,"INIFILETABLE");
1481
1482 # Creating the important dynamic idt files
1483143µs installer::windows::msiglobal::set_msiproductversion($allvariableshashref);
1484139.7ms installer::windows::msiglobal::put_msiproductversion_into_bootstrapfile($filesinproductlanguageresolvedarrayref);
1485
1486 # Add cabinet assignments to files
14871191ms installer::windows::file::assign_cab_to_files($filesinproductlanguageresolvedarrayref);
# spent 191ms making 1 call to installer::windows::file::assign_cab_to_files
14881226ms installer::windows::file::assign_sequencenumbers_to_files($filesinproductlanguageresolvedarrayref);
1489
1490 # Collection all available directory trees
149115.87ms installer::windows::directory::collectdirectorytrees($directoriesforepmarrayref);
1492
1493 # Attention: The table "Director.idt" contains language specific strings -> parameter: $languagesarrayref !
14941-4613s installer::windows::directory::create_directory_table($directoriesforepmarrayref, $languagesarrayref, $newidtdir, $allvariableshashref, $shortdirname, $loggingdir);
1495
1496169.5s $filesinproductlanguageresolvedarrayref = installer::windows::file::create_files_table($filesinproductlanguageresolvedarrayref, $directoriesforepmarrayref, \@allfilecomponents, $newidtdir, $allvariableshashref, $uniquefilename, $allupdatesequences, $allupdatecomponents, $allupdatefileorder);
# spent 69.5s making 1 call to installer::windows::file::create_files_table
1497 if ( $installer::globals::updatedatabase ) { installer::windows::file::check_file_sequences($allupdatefileorder, $allupdatecomponentorder); }
1498
1499 # Attention: The table "Registry.idt" contains language specific strings -> parameter: $languagesarrayref !
15001114s installer::windows::registry::create_registry_table($registryitemsinproductlanguageresolvedarrayref, \@allregistrycomponents, $newidtdir, $languagesarrayref, $allvariableshashref);
1501
15021-1757s installer::windows::component::create_component_table($filesinproductlanguageresolvedarrayref, $registryitemsinproductlanguageresolvedarrayref, $directoriesforepmarrayref, \@allfilecomponents, \@allregistrycomponents, $newidtdir, $componentid, $componentidkeypath, $allvariableshashref);
1503
1504 # Attention: The table "Feature.idt" contains language specific strings -> parameter: $languagesarrayref !
15051165ms installer::windows::feature::add_uniquekey($modulesinproductlanguageresolvedarrayref);
# spent 165ms making 1 call to installer::windows::feature::add_uniquekey
15061-321s $modulesinproductlanguageresolvedarrayref = installer::windows::feature::sort_feature($modulesinproductlanguageresolvedarrayref);
# spent - 321s making 1 call to installer::windows::feature::sort_feature
15071-154s installer::windows::feature::create_feature_table($modulesinproductlanguageresolvedarrayref, $newidtdir, $languagesarrayref, $allvariableshashref);
# spent - 154s making 1 call to installer::windows::feature::create_feature_table
1508
1509126.1s installer::windows::featurecomponent::create_featurecomponent_table($filesinproductlanguageresolvedarrayref, $registryitemsinproductlanguageresolvedarrayref, $newidtdir);
1510
15111159ms installer::windows::media::create_media_table($filesinproductlanguageresolvedarrayref, $newidtdir, $allvariableshashref, $allupdatelastsequences, $allupdatediskids);
# spent 159ms making 1 call to installer::windows::media::create_media_table
1512
15131112ms installer::windows::font::create_font_table($filesinproductlanguageresolvedarrayref, $newidtdir);
# spent 112ms making 1 call to installer::windows::font::create_font_table
1514
1515 # Attention: The table "Shortcut.idt" contains language specific strings -> parameter: $languagesarrayref !
1516 # Attention: Shortcuts (Folderitems) have icon files, that have to be copied into the Icon directory (last parameter)
1517 my @iconfilecollector = ();
1518
151912.07s installer::windows::shortcut::create_shortcut_table($filesinproductlanguageresolvedarrayref, $linksinproductlanguageresolvedarrayref, $folderinproductlanguageresolvedarrayref, $folderitemsinproductlanguageresolvedarrayref, $directoriesforepmarrayref, $newidtdir, $languagesarrayref, $includepatharrayref, \@iconfilecollector);
1520
15211521ms installer::windows::inifile::create_inifile_table($inifiletableentries, $filesinproductlanguageresolvedarrayref, $newidtdir);
1522
15231774µs installer::windows::icon::create_icon_table(\@iconfilecollector, $newidtdir); # creating the icon table with all iconfiles used as shortcuts (FolderItems)
# spent 774µs making 1 call to installer::windows::icon::create_icon_table
1524
15251163ms installer::windows::createfolder::create_createfolder_table($directoriesforepmarrayref, $filesinproductlanguageresolvedarrayref, $newidtdir, $allvariableshashref);
1526
15271765µs installer::windows::upgrade::create_upgrade_table($newidtdir, $allvariableshashref);
# spent 765µs making 1 call to installer::windows::upgrade::create_upgrade_table
1528
1529 if (( ! $installer::globals::languagepack ) && ( ! $installer::globals::helppack )) # the following tables not for language packs or help packs
1530 {
153115.10ms installer::windows::removefile::create_removefile_table($folderitemsinproductlanguageresolvedarrayref, $newidtdir);
1532
1533 # Adding Assemblies into the tables MsiAssembly and MsiAssemblyName dynamically
15341168ms installer::windows::assembly::create_msiassembly_table($filesinproductlanguageresolvedarrayref, $newidtdir);
153511.06ms installer::windows::assembly::create_msiassemblyname_table($filesinproductlanguageresolvedarrayref, $newidtdir);
153611.33s installer::windows::assembly::add_assembly_condition_into_component_table($filesinproductlanguageresolvedarrayref, $newidtdir);
1537 }
1538
1539 $infoline = "\n";
1540 push(@installer::globals::logfileinfo, $infoline);
1541
1542 # Localizing the language dependent idt files
1543 # For every language there will be a localized msi database
1544 # For multilingual installation sets, the differences of this
1545 # databases have to be stored in transforms.
1546
1547 for ( my $m = 0; $m <= $#{$languagesarrayref}; $m++ )
1548 {
1549 my $onelanguage = ${$languagesarrayref}[$m];
1550
1551 my $is_rtl = 0;
1552 my @rtllanguages = ("ar", "fa", "he", "ug", "ky-CN");
1553 if ( grep {$_ eq $onelanguage} @rtllanguages ) { $is_rtl = 1; }
1554
1555 my $languageidtdir = $idtdirbase . $installer::globals::separator . $onelanguage;
155610921.7ms if ( -d $languageidtdir ) { installer::systemactions::remove_complete_directory($languageidtdir, 1); }
# spent 21.7ms making 109 calls to installer::CORE:ftdir, avg 199µs/call
155710981.8ms installer::systemactions::create_directory($languageidtdir);
# spent 81.8ms making 109 calls to installer::systemactions::create_directory, avg 751µs/call
1558
1559 # Copy the template idt files and the new created idt files into this language directory
1560
15611092.24ms installer::logger::print_message( "... copying idt files ...\n" );
# spent 2.24ms making 109 calls to installer::logger::print_message, avg 21µs/call
1562
156310921.7ms installer::logger::include_header_into_logfile("Copying idt files to $languageidtdir:");
# spent 21.7ms making 109 calls to installer::logger::include_header_into_logfile, avg 199µs/call
1564
156510926.6s installer::windows::idtglobal::prepare_language_idt_directory($languageidtdir, $newidtdir, $onelanguage, $filesinproductlanguageresolvedarrayref, \@iconfilecollector, $binarytablefiles, $allvariableshashref);
# spent 26.6s making 109 calls to installer::windows::idtglobal::prepare_language_idt_directory, avg 244ms/call
1566
1567 # Now all files are copied into a language specific directory
1568 # The template idt files can be translated
1569
15701092.08ms installer::logger::print_message( "... localizing idt files (language: $onelanguage) ...\n" );
# spent 2.08ms making 109 calls to installer::logger::print_message, avg 19µs/call
1571
157210919.8ms installer::logger::include_header_into_logfile("Localizing idt files (Language: $onelanguage):");
# spent 19.8ms making 109 calls to installer::logger::include_header_into_logfile, avg 182µs/call
1573
1574 my @translationfiles = (); # all idt files, that need a translation
1575 push(@translationfiles, "ActionTe.idt");
1576 push(@translationfiles, "Control.idt");
1577 push(@translationfiles, "CustomAc.idt");
1578 push(@translationfiles, "Error.idt");
1579 push(@translationfiles, "LaunchCo.idt");
1580 push(@translationfiles, "RadioBut.idt");
1581 push(@translationfiles, "Property.idt");
1582 push(@translationfiles, "UIText.idt");
1583
1584 my $oneidtfilename;
1585 my $oneidtfile;
1586
1587 foreach $oneidtfilename (@translationfiles)
1588 {
158987222.6ms my $languagefilename = installer::windows::idtglobal::get_languagefilename($oneidtfilename, $installer::globals::idtlanguagepath);
# spent 22.6ms making 872 calls to installer::windows::idtglobal::get_languagefilename, avg 26µs/call
159087229.6s my $languagefile = installer::files::read_file($languagefilename);
# spent 29.6s making 872 calls to installer::files::read_file, avg 34.0ms/call
1591
1592 $oneidtfilename = $languageidtdir . $installer::globals::separator . $oneidtfilename;
1593872635ms $oneidtfile = installer::files::read_file($oneidtfilename);
# spent 635ms making 872 calls to installer::files::read_file, avg 728µs/call
1594
1595 # Now the substitution can start
15968724106s installer::windows::idtglobal::translate_idtfile($oneidtfile, $languagefile, $onelanguage);
# spent 4106s making 872 calls to installer::windows::idtglobal::translate_idtfile, avg 4.71s/call
1597
1598872641ms installer::files::save_file($oneidtfilename, $oneidtfile);
# spent 641ms making 872 calls to installer::files::save_file, avg 735µs/call
1599
1600 $infoline = "Translated idt file: $oneidtfilename into language $onelanguage\n";
1601 push(@installer::globals::logfileinfo, $infoline);
1602 $infoline = "Used languagefile: $languagefilename\n";
1603 push(@installer::globals::logfileinfo, $infoline);
1604 }
1605
1606 # setting the encoding in every table (replacing WINDOWSENCODINGTEMPLATE)
1607
160810965.0s installer::windows::idtglobal::setencoding($languageidtdir, $onelanguage);
# spent 65.0s making 109 calls to installer::windows::idtglobal::setencoding, avg 597ms/call
1609
1610 # setting bidi attributes, if required
1611
1612443.9ms if ( $is_rtl ) { installer::windows::idtglobal::setbidiattributes($languageidtdir, $onelanguage); }
# spent 43.9ms making 4 calls to installer::windows::idtglobal::setbidiattributes, avg 11.0ms/call
1613
1614 # setting the encoding in every table (replacing WINDOWSENCODINGTEMPLATE)
1615109358ms installer::windows::idtglobal::set_multilanguageonly_condition($languageidtdir);
# spent 358ms making 109 calls to installer::windows::idtglobal::set_multilanguageonly_condition, avg 3.28ms/call
1616
1617 # include the license text into the table Control.idt
1618
1619 if ( ! $allvariableshashref->{'HIDELICENSEDIALOG'} )
1620 {
1621 my $licensefilesource = installer::windows::idtglobal::get_rtflicensefilesource($onelanguage, $includepatharrayref_lang);
1622 my $licensefile = installer::files::read_file($licensefilesource);
1623 installer::scpzipfiles::replace_all_ziplistvariables_in_rtffile($licensefile, $allvariableshashref);
1624 my $controltablename = $languageidtdir . $installer::globals::separator . "Control.idt";
1625 my $controltable = installer::files::read_file($controltablename);
1626 installer::windows::idtglobal::add_licensefile_to_database($licensefile, $controltable);
1627 installer::files::save_file($controltablename, $controltable);
1628
1629 $infoline = "Added licensefile $licensefilesource into database $controltablename\n";
1630 push(@installer::globals::logfileinfo, $infoline);
1631 }
1632
1633 # include a component into environment table if required
1634
163510924.1ms installer::windows::component::set_component_in_environment_table($languageidtdir, $filesinproductlanguageresolvedarrayref);
# spent 24.1ms making 109 calls to installer::windows::component::set_component_in_environment_table, avg 221µs/call
1636
1637 # include the ProductCode and the UpgradeCode from codes-file into the Property.idt
1638
1639109166ms installer::windows::property::set_codes_in_property_table($languageidtdir);
# spent 166ms making 109 calls to installer::windows::property::set_codes_in_property_table, avg 1.53ms/call
1640
1641 # the language specific properties can now be set in the Property.idt
1642
1643109423ms installer::windows::property::update_property_table($languageidtdir, $onelanguage, $allvariableshashref, $languagestringref);
# spent 423ms making 109 calls to installer::windows::property::update_property_table, avg 3.88ms/call
1644
1645 # replacing variables in RegLocat.idt
1646
1647109110ms installer::windows::msiglobal::update_reglocat_table($languageidtdir, $allvariableshashref);
# spent 110ms making 109 calls to installer::windows::msiglobal::update_reglocat_table, avg 1.01ms/call
1648
1649 # replacing variables in RemoveRe.idt (RemoveRegistry.idt)
1650
165110922.0ms installer::windows::msiglobal::update_removere_table($languageidtdir);
# spent 22.0ms making 109 calls to installer::windows::msiglobal::update_removere_table, avg 202µs/call
1652
1653 # adding language specific properties for multilingual installation sets
1654
1655109127ms installer::windows::property::set_languages_in_property_table($languageidtdir, $languagesarrayref);
# spent 127ms making 109 calls to installer::windows::property::set_languages_in_property_table, avg 1.17ms/call
1656
1657 # adding settings into CheckBox.idt
1658109768µs installer::windows::property::update_checkbox_table($languageidtdir, $allvariableshashref);
# spent 768µs making 109 calls to installer::windows::property::update_checkbox_table, avg 7µs/call
1659
1660 # adding the files from the binary directory into the binary table
1661109107ms installer::windows::binary::update_binary_table($languageidtdir, $filesinproductlanguageresolvedarrayref, $binarytablefiles);
# spent 107ms making 109 calls to installer::windows::binary::update_binary_table, avg 983µs/call
1662
1663 # Adding Windows Installer CustomActions
1664
1665109132s installer::windows::idtglobal::addcustomactions($languageidtdir, $windowscustomactionsarrayref, $filesinproductlanguageresolvedarrayref);
# spent 132s making 109 calls to installer::windows::idtglobal::addcustomactions, avg 1.21s/call
1666
1667 # Then the language specific msi database can be created
1668
1669 if ( $installer::globals::iswin || $installer::globals::packageformat eq 'msi' )
1670 {
16711094.86ms my $msidatabasename = installer::windows::msiglobal::get_msidatabasename($allvariableshashref, $onelanguage);
# spent 4.86ms making 109 calls to installer::windows::msiglobal::get_msidatabasename, avg 45µs/call
1672 my $msifilename = $languageidtdir . $installer::globals::separator . $msidatabasename;
1673
16741091.88ms installer::logger::print_message( "... creating msi database (language $onelanguage) ... \n" );
# spent 1.88ms making 109 calls to installer::logger::print_message, avg 17µs/call
1675
167610925.6s installer::windows::msiglobal::set_uuid_into_component_table($languageidtdir, $allvariableshashref); # setting new GUID for the components using the tool uuidgen.exe
# spent 25.6s making 109 calls to installer::windows::msiglobal::set_uuid_into_component_table, avg 235ms/call
16771092.12ms installer::windows::msiglobal::prepare_64bit_database($languageidtdir, $allvariableshashref); # making last 64 bit changes
# spent 2.12ms making 109 calls to installer::windows::msiglobal::prepare_64bit_database, avg 19µs/call
1678109230s installer::windows::msiglobal::create_msi_database($languageidtdir ,$msifilename);
# spent 230s making 109 calls to installer::windows::msiglobal::create_msi_database, avg 2.11s/call
1679
1680 # validating the database # ToDo
1681
1682109288ms my $languagefile = installer::files::read_file($installer::globals::idtlanguagepath . $installer::globals::separator . "SIS.mlf");
# spent 288ms making 109 calls to installer::files::read_file, avg 2.64ms/call
1683
1684109103s installer::windows::msiglobal::write_summary_into_msi_database($msifilename, $onelanguage, $languagefile, $allvariableshashref);
# spent 103s making 109 calls to installer::windows::msiglobal::write_summary_into_msi_database, avg 943ms/call
1685
1686 # copy msi database into installation directory
1687
1688 my $msidestfilename = $installdir . $installer::globals::separator . $msidatabasename;
16891091.31s installer::systemactions::copy_one_file($msifilename, $msidestfilename);
# spent 1.31s making 109 calls to installer::systemactions::copy_one_file, avg 12.0ms/call
1690 }
1691 }
1692
1693 # Creating transforms, if the installation set has more than one language
1694 # renaming the msi database
1695
1696112µs my $defaultlanguage = installer::languages::get_default_language($languagesarrayref);
# spent 12µs making 1 call to installer::languages::get_default_language
1697
1698 if ( $installer::globals::iswin || $installer::globals::packageformat eq 'msi' )
1699 {
17001158s if ( $#{$languagesarrayref} > 0 )
1701 {
1702 installer::windows::msiglobal::create_transforms($languagesarrayref, $defaultlanguage, $installdir, $allvariableshashref);
1703 }
1704 # if there are Merge Modules, they have to be integrated now
1705166µs my $mergedbname = installer::windows::msiglobal::get_msidatabasename($allvariableshashref, $defaultlanguage);
1706 my $mergeidtdir = $idtdirbase . $installer::globals::separator . "mergemodules";
17071336µs if ( -d $mergeidtdir ) { installer::systemactions::remove_complete_directory($mergeidtdir, 1); }
# spent 336µs making 1 call to installer::CORE:ftdir
17081926µs installer::systemactions::create_directory($mergeidtdir);
# spent 926µs making 1 call to installer::systemactions::create_directory
1709122.0ms installer::systemactions::copy_one_file($installdir . $installer::globals::separator . $mergedbname, $mergeidtdir . $installer::globals::separator . $mergedbname);
# spent 22.0ms making 1 call to installer::systemactions::copy_one_file
17101101s $filesinproductlanguageresolvedarrayref = installer::windows::mergemodule::merge_mergemodules_into_msi_database($mergemodulesarrayref, $filesinproductlanguageresolvedarrayref, $mergeidtdir . $installer::globals::separator . $mergedbname, $languagestringref, $allvariableshashref, $includepatharrayref, $allupdatesequences, $allupdatelastsequences, $allupdatediskids);
1711124.2ms installer::systemactions::copy_one_file($mergeidtdir . $installer::globals::separator . $mergedbname, $installdir . $installer::globals::separator . $mergedbname);
# spent 24.2ms making 1 call to installer::systemactions::copy_one_file
1712
1713171.8ms installer::windows::msiglobal::rename_msi_database_in_installset($defaultlanguage, $installdir, $allvariableshashref);
1714 }
1715
1716 # Analyzing the ScpActions and copying the files into the installation set
1717
1718126µs installer::logger::print_message( "... copying files into installation set ...\n" );
# spent 26µs making 1 call to installer::logger::print_message
1719
17201340µs installer::worker::put_scpactions_into_installset($installdir);
# spent 340µs making 1 call to installer::worker::put_scpactions_into_installset
1721
1722 # ... copying MergeModules into installation set
1723
1724 if ( ! $installer::globals::fix_number_of_cab_files ) { installer::windows::msiglobal::copy_merge_modules_into_installset($installdir); }
1725
1726110µs installer::logger::print_message( "... creating ddf files ...\n" );
# spent 10µs making 1 call to installer::logger::print_message
1727
1728 # Creating all needed ddf files and generating a list
1729 # for the package process containing all system calls
1730
17311502ms my $ddfdir = installer::systemactions::create_directories("ddf", $languagestringref);
# spent 502ms making 1 call to installer::systemactions::create_directories
1732
173314.15s my $packjobref = installer::windows::msiglobal::generate_cab_file_list($filesinproductlanguageresolvedarrayref, $installdir, $ddfdir, $allvariableshashref);
1734
1735 # Update and patch reasons the pack order needs to be saved
17361712ms installer::windows::msiglobal::save_packorder();
# spent 712ms making 1 call to installer::windows::msiglobal::save_packorder
1737
1738 $infoline = "\n";
1739 push(@installer::globals::logfileinfo, $infoline);
1740
1741 ####################################
1742 # Writing log file
1743 # before cab files are packed
1744 ####################################
1745
1746124µs installer::logger::print_message( "... creating log file $installer::globals::logfilename \n" );
# spent 24µs making 1 call to installer::logger::print_message
1747
1748137.8ms installer::files::save_file($loggingdir . $installer::globals::logfilename, \@installer::globals::logfileinfo);
# spent 37.8ms making 1 call to installer::files::save_file
1749
1750 #######################################################
1751 # Finally really create the installation packages,
1752 # Only for Windows and only on a windows platform.
1753 #######################################################
1754
1755 if ( $installer::globals::iswin || $installer::globals::packageformat eq 'msi' )
1756 {
1757126µs installer::logger::print_message( "... packaging installation set ... \n" );
# spent 26µs making 1 call to installer::logger::print_message
1758173.7s installer::windows::msiglobal::execute_packaging($packjobref, $loggingdir, $allvariableshashref);
# spent 73.7s making 1 call to installer::windows::msiglobal::execute_packaging
175914.97s if ( $installer::globals::include_cab_in_msi ) { installer::windows::msiglobal::include_cabs_into_msi($installdir); }
1760
1761 ####################################
1762 # Writing log file
1763 # after cab files are packed
1764 ####################################
1765
1766130µs installer::logger::print_message( "\n... creating log file $installer::globals::logfilename \n" );
# spent 30µs making 1 call to installer::logger::print_message
1767141.5ms installer::files::save_file($loggingdir . $installer::globals::logfilename, \@installer::globals::logfileinfo);
# spent 41.5ms making 1 call to installer::files::save_file
1768 }
1769
1770 #######################################################
1771 # Analyzing the log file
1772 #######################################################
1773
1774 my $is_success = 0;
1775 my $finalinstalldir = "";
177617.38s installer::worker::clean_output_tree(); # removing directories created in the output tree
# spent 7.38s making 1 call to installer::worker::clean_output_tree
177712.56s ($is_success, $finalinstalldir) = installer::worker::analyze_and_save_logfile($loggingdir, $installdir, $installlogdir, $allsettingsarrayref, $languagestringref, $current_install_number);
# spent 2.56s making 1 call to installer::worker::analyze_and_save_logfile
1778
1779 #######################################################
1780 # Creating Windows msp patches
1781 #######################################################
1782
1783 if (( $is_success ) && ( $installer::globals::updatedatabase ) && ( $allvariableshashref->{'CREATE_MSP_INSTALLSET'} ))
1784 {
1785 # Required:
1786 # Temp path for administrative installations: $installer::globals::temppath
1787 # Path of new installation set: $finalinstalldir
1788 # Path of old installation set: $installer::globals::updatedatabasepath
1789 my $mspdir = installer::windows::msp::create_msp_patch($finalinstalldir, $includepatharrayref, $allvariableshashref, $languagestringref, $languagesarrayref, $filesinproductlanguageresolvedarrayref);
1790 ($is_success, $finalinstalldir) = installer::worker::analyze_and_save_logfile($loggingdir, $mspdir, $installlogdir, $allsettingsarrayref, $languagestringref, $current_install_number);
1791 installer::worker::clean_output_tree(); # removing directories created in the output tree
1792 }
1793
1794 #######################################################
1795 # Creating download installation set
1796 #######################################################
1797
1798 my $create_download = 0;
17991143µs my $downloadname = installer::ziplist::getinfofromziplist($allsettingsarrayref, "downloadname");
# spent 143µs making 1 call to installer::ziplist::getinfofromziplist
1800 if ( $installer::globals::languagepack ) { $downloadname = installer::ziplist::getinfofromziplist($allsettingsarrayref, "langpackdownloadname"); }
1801 if ( $installer::globals::helppack ) { $downloadname = installer::ziplist::getinfofromziplist($allsettingsarrayref, "helppackdownloadname"); }
1802 if ( $installer::globals::patch ) { $downloadname = installer::ziplist::getinfofromziplist($allsettingsarrayref, "patchdownloadname"); }
1803
1804 if ( $$downloadname ne "" ) { $create_download = 1; }
1805 if ( $installer::globals::iswindowsbuild )
1806 {
1807 $create_download = 0;
18081179µs if ( $allvariableshashref->{'OOODOWNLOADNAME'} ) { $$downloadname = installer::download::set_download_filename($languagestringref, $allvariableshashref); }
# spent 179µs making 1 call to installer::download::set_download_filename
1809 else { $$downloadname = installer::download::resolve_variables_in_downloadname($allvariableshashref, $$downloadname, $languagestringref); }
181018.26ms installer::systemactions::rename_one_file( $finalinstalldir . $installer::globals::separator . $installer::globals::shortmsidatabasename, $finalinstalldir . $installer::globals::separator . $$downloadname . ".msi" );
# spent 8.26ms making 1 call to installer::systemactions::rename_one_file
1811
1812 }
1813 if (( $is_success ) && ( $create_download ) && ( $ENV{'ENABLE_DOWNLOADSETS'} ))
1814 {
1815 my $downloaddir = installer::download::create_download_sets($finalinstalldir, $includepatharrayref, $allvariableshashref, $$downloadname, $languagestringref, $languagesarrayref);
1816 installer::worker::analyze_and_save_logfile($loggingdir, $downloaddir, $installlogdir, $allsettingsarrayref, $languagestringref, $current_install_number);
1817 }
1818
1819 } # end of "if ( $installer::globals::iswindowsbuild )"
1820
1821 # saving file_info file for later analysis
1822 my $speciallogfilename = $loggingdir . "fileinfo_" . $installer::globals::product . "\.log";
18231881µs open my $log_fh, '>', $speciallogfilename
# spent 881µs making 1 call to installer::CORE:open
1824 or die "Could not open $speciallogfilename for writing: $!";
182522.82s print $log_fh Dumper($filesinproductlanguageresolvedarrayref);
# spent 2.76s making 1 call to Data::Dumper::Dumper # spent 60.3ms making 1 call to installer::CORE:print
1826
1827 } # end of iteration for one language group
1828}
1829
1830114µs1;
 
# spent 288ms within installer::CORE:backtick which was called: # once (288ms+0s) by installer::run at line 543
sub installer::CORE:backtick; # opcode
# spent 22.0ms within installer::CORE:ftdir which was called 110 times, avg 200µs/call: # 109 times (21.7ms+0s) by installer::run at line 1556, avg 199µs/call # once (336µs+0s) by installer::run at line 1707
sub installer::CORE:ftdir; # opcode
# spent 14µs within installer::CORE:match which was called 3 times, avg 5µs/call: # once (6µs+0s) by installer::run at line 658 # once (5µs+0s) by installer::run at line 1439 # once (4µs+0s) by installer::run at line 807
sub installer::CORE:match; # opcode
# spent 1.94ms within installer::CORE:open which was called 3 times, avg 646µs/call: # once (881µs+0s) by installer::run at line 1823 # once (562µs+0s) by installer::run at line 557 # once (496µs+0s) by installer::run at line 558
sub installer::CORE:open; # opcode
# spent 60.3ms within installer::CORE:print which was called 3 times, avg 20.1ms/call: # once (60.3ms+0s) by installer::run at line 1825 # once (15µs+0s) by installer::run at line 560 # once (13µs+0s) by installer::run at line 561
sub installer::CORE:print; # opcode
# spent 14µs within installer::CORE:subst which was called: # once (14µs+0s) by installer::run at line 556
sub installer::CORE:subst; # opcode