Lines Matching refs:installer
24 package installer::downloadsigner;
26 use installer::exiter;
27 use installer::files;
28 use installer::globals;
29 use installer::logger;
30 use installer::pathanalyzer;
94 if ($param eq "-d") { $installer::globals::followmeinfofilename = shift(@ARGV); }
95 elsif ($param eq "-pw") { $installer::globals::pwfile = shift(@ARGV); }
96 elsif ($param eq "-pfx") { $installer::globals::pfxfile = shift(@ARGV); }
97 elsif ($param eq "-sign") { $installer::globals::dosign = 1; }
98 elsif ($param eq "-nodownload") { $installer::globals::nodownload = 1; }
99 elsif ($param eq "-writetotemp") { $installer::globals::writetotemp = 1; }
100 elsif ($param eq "-useminor") { $installer::globals::useminor = 1; }
101 elsif ($param eq "-internalcabinet") { $installer::globals::internal_cabinet_signing = 1; }
104 installer::logger::print_error( "unknown parameter: $param" );
117 if ( $installer::globals::followmeinfofilename eq "" )
119 installer::logger::print_error( "Error: Required parameter is missing: -d\n" );
124 if ( $installer::globals::dosign )
127 if ( $installer::globals::pfxfile eq "" )
129 …installer::logger::print_error( "Error: If \"-sign\" is set, a pfx file has to be specified: -pfx\…
135 if ( $installer::globals::pwfile eq "" )
137 …installer::logger::print_error( "Error: If \"-sign\" is set, a password file has to be specified: …
143 if ( ! -f $installer::globals::pfxfile )
145 …installer::logger::print_error( "Error: pfx file \"$installer::globals::pfxfile\" does not exist.\…
150 if ( ! -f $installer::globals::pwfile )
152 …installer::logger::print_error( "Error: Password file \"$installer::globals::pwfile\" does not exi…
175 $temppath =~ s/\Q$installer::globals::separator\E\s*$//; # removing ending slashes and backslashes
176 $temppath = $temppath . $installer::globals::separator . $helperdir;
185 installer::systemactions::create_directory_structure($temppath);
189 …installer::logger::print_error( "Error: TMP and TEMP not defined. This is required for this proces…
194 $installer::logger::Info->print("\n");
195 $installer::logger::Info->printf("\n... using output path: %s ...\n", $temppath);
197 push(@installer::globals::removedirs, $temppath);
212 $followmeinfohash->{'loggingdir'} = $temppath . $installer::globals::separator;
213 $installer::globals::unpackpath = $temppath;
229 $installer::logger::Info->print("\n");
230 …$installer::logger::Info->printf("... forcing into minor: %s ...\n", $installer::globals::lastmino…
234 my $srcpath = $installer::globals::separator . $sourcename . $installer::globals::separator;
236 if ( $installer::globals::minor ne "" )
238 $installer::logger::Info->print("\n");
239 …$installer::logger::Info->printf("... already defined minor: %s -> ignoring parameter \"-useminor\…
250 installer::logger::include_header_into_logfile("Changing saved paths to add the minor");
251 $installer::logger::Lang->print("Old paths:\n");
252 …$installer::logger::Lang->printf("\$followmeinfohash->{'installlogdir'}: %s\n", $followmeinfohash-…
253 …$installer::logger::Lang->printf("\$installer::globals::unpackpath: %s\n", $installer::globals::un…
254 …$installer::logger::Lang->printf("\$installer::globals::idttemplatepath: %s\n", $installer::global…
255 …$installer::logger::Lang->printf("\$installer::globals::idtlanguagepath: %s\n", $installer::global…
256 $installer::logger::Lang->printf("Include paths:\n");
259 $installer::logger::Lang->print($path);
264 my $oldvalue = $installer::globals::separator . $onepath . $installer::globals::separator;
265 …my $newvalue = $installer::globals::separator . $onepath . "\." . $installer::globals::lastminor .…
268 …if (( $installer::globals::unpackpath =~ /\Q$oldvalue\E/ ) && ( ! ( $installer::globals::unpackpat…
269 …if (( $installer::globals::idttemplatepath =~ /\Q$oldvalue\E/ ) && ( ! ( $installer::globals::idtt…
270 …if (( $installer::globals::idtlanguagepath =~ /\Q$oldvalue\E/ ) && ( ! ( $installer::globals::idtl…
274 $oldvalue = $installer::globals::separator . $onepath;
275 $newvalue = $installer::globals::separator . $onepath . "\." . $installer::globals::lastminor;
278 …if (( $installer::globals::unpackpath =~ /\Q$oldvalue\E\s*$/ ) && ( ! ( $installer::globals::unpac…
279 …f (( $installer::globals::idttemplatepath =~ /\Q$oldvalue\E\s*$/ ) && ( ! ( $installer::globals::i…
280 …f (( $installer::globals::idtlanguagepath =~ /\Q$oldvalue\E\s*$/ ) && ( ! ( $installer::globals::i…
295 …my $newsrcpath = $installer::globals::separator . $sourcename . "\." . $installer::globals::lastmi…
298 …if ( $installer::globals::unpackpath =~ /\Q$srcpath\E/ ) { $installer::globals::unpackpath =~ s/\Q…
299 …if ( $installer::globals::idttemplatepath =~ /\Q$srcpath\E/ ) { $installer::globals::idttemplatepa…
300 …if ( $installer::globals::idtlanguagepath =~ /\Q$srcpath\E/ ) { $installer::globals::idtlanguagepa…
303 $installer::logger::Lang->print("\n");
304 $installer::logger::Lang->print("New paths:\n");
305 …$installer::logger::Lang->printf("\$followmeinfohash->{'installlogdir'}: %s\n", $followmeinfohash-…
306 …$installer::logger::Lang->printf("\$installer::globals::unpackpath: %s\n", $installer::globals::un…
307 …$installer::logger::Lang->printf("\$installer::globals::idttemplatepath: %s\n", $installer::global…
308 …$installer::logger::Lang->printf("\$installer::globals::idtlanguagepath: %s\n", $installer::global…
309 $installer::logger::Lang->printf("Include paths:\n");
312 $installer::logger::Lang->print($path);
322 …if ( $installer::globals::dosign ) { $installer::globals::logfilename = "sign_and_download_" . $in…
323 else { $installer::globals::logfilename = "download_" . $installer::globals::logfilename; }
325 @installer::globals::logfileinfo = ();
357 my $filecontent = installer::files::read_file($followmefile);
379 $installer::logger::Info->print("\n");
380 $installer::logger::Info->printf("... found products: ...\n");
385 installer::pathanalyzer::make_absolute_filename_to_relative_filename(\$onefile);
386 $installer::logger::Info->printf("...... $onefile ...\n");
389 $installer::logger::Info->printf("\n");
412 …if ( $minor eq "" ) { installer::exiter::exit_program("ERROR: Environment variable \"UPDMINOR\" no…
413 …if ( $workstamp eq "" ) { installer::exiter::exit_program("ERROR: Environment variable \"WORK_STAM…
461 if ( -f $installer::globals::followmeinfofilename )
463 push(@infofilelist, $installer::globals::followmeinfofilename);
465 $installer::globals::followme_from_directory = 0;
467 elsif ( -d $installer::globals::followmeinfofilename )
469 $installer::logger::Info->printf("\n");
470 …$installer::logger::Info->printf("... reading directory: %s ...\n", $installer::globals::followmei…
471 $installer::globals::followmeinfofilename =~ s/$installer::globals::separator\s*$//;
472 …my $allfollowmefiles = installer::systemactions::find_file_with_file_extension("log", $installer::…
476 …installer::logger::print_error( "Error: Nothing to do! No follow-me file in directory \"$installer…
482 $installer::globals::followme_from_directory = 1;
495 …my $fullfilename = $installer::globals::followmeinfofilename . $installer::globals::separator . $o…
506 …my $fullfilename = $installer::globals::followmeinfofilename . $installer::globals::separator . $o…
524 …installer::logger::print_error( "Error: Nothing to do! No installation set found for follow-me fil…
531 …installer::logger::print_error( "Error: Nothing to do! \"$installer::globals::followmeinfofilename…
547 $installer::logger::Info->printf("\n");
548 $installer::logger::Info->printf("*****************************************\n");
549 $installer::logger::Info->printf("Content of follow-me info file:\n");
550 $installer::logger::Info->printf("finalinstalldir: %s\n", $followmehash->{'finalinstalldir'});
551 $installer::logger::Info->printf("downloadname: %s\n", $followmehash->{'downloadname'});
552 $installer::logger::Info->printf("languagestring: %s\n", $followmehash->{'languagestring'});
555 $installer::logger::Info->printf("languagesarray: %s\n", $lang);
559 $installer::logger::Info->printf("includepatharray: %s\n", $path);
563 $installer::logger::Info->printf("allvariableshash: %s : %s\n",
589 $installer::logger::Info->printf("\n");
590 …$installer::logger::Info->printf("... renamed file \"%s\" to \"%s\" ...\n", $filename, $newfilenam…