Lines Matching refs:installer
24 package installer::windows::sign;
27 use installer::converter;
28 use installer::existence;
29 use installer::files;
30 use installer::globals;
31 use installer::scriptitems;
32 use installer::worker;
33 use installer::windows::admin;
43 installer::logger::include_header_into_logfile("Start: Copying installation set $installsetpath");
48 installer::pathanalyzer::make_absolute_filename_to_relative_filename(\$dirname);
51 installer::pathanalyzer::get_path_from_fullqualifiedname(\$path);
53 $path =~ s/\Q$installer::globals::separator\E\s*$//;
58 my $newpath = $path . $installer::globals::separator . $dirname;
62 if ( -d $newpath ) { installer::systemactions::remove_complete_directory($newpath, 1); }
63 if ( -d $removepath ) { installer::systemactions::remove_complete_directory($removepath, 1); }
66 $installer::logger::Lang->print($infoline);
68 $installsetpath = installer::systemactions::copy_complete_directory($installsetpath, $newpath);
70 installer::logger::include_header_into_logfile("End: Copying installation set $installsetpath");
86 installer::pathanalyzer::make_absolute_filename_to_relative_filename(\$dirname);
89 installer::pathanalyzer::get_path_from_fullqualifiedname(\$path);
91 $path =~ s/\Q$installer::globals::separator\E\s*$//;
96 my $newpath = $path . $installer::globals::separator . $dirname;
100 if ( -d $newpath ) { installer::systemactions::remove_complete_directory($newpath, 1); }
101 if ( -d $removepath ) { installer::systemactions::remove_complete_directory($removepath, 1); }
103 $installsetpath = installer::systemactions::rename_directory($installsetpath, $newpath);
120 if ( $installer::globals::internal_cabinet_signing )
129 my $local_pathseparator = $installer::globals::pathseparator;
138 …my $patharrayref = installer::converter::convert_stringlist_into_array(\$pathvariable, $local_path…
140 $installer::globals::patharray = $patharrayref;
145 $installer::logger::Info->printf("...... searching %s ...\n", $onefile);
147 …my $fileref = installer::scriptitems::get_sourcepath_from_filename_and_includepath_classic(\$onefi…
152 installer::logger::print_error( "$onefile not found\n" );
156 $installer::logger::Info->printf("\tFound: %s\n", $$fileref);
160 $installer::globals::signfiles_checked = 1;
162 …if ( $error ) { installer::exiter::exit_program("ERROR: Could not find all needed files in path!",…
173 $installer::logger::Info->printf("... %s ...\n", $displaysystemcall);
179 $installer::logger::Lang->print($infoline);
184 $installer::logger::Lang->print($infoline);
190 $installer::logger::Lang->print($infoline);
204 $installer::logger::Info->printf("... %s ...\n", $displaysystemcall);
210 $installer::logger::Lang->print($infoline);
215 $installer::logger::Lang->print($infoline);
221 $installer::logger::Lang->print($infoline);
260 $installer::logger::Lang->print($infoline);
266 $installer::logger::Lang->print($infoline);
280 my $filecontent = installer::files::read_file($file);
370 my $workdir = installer::systemactions::create_directories("media", \$languagestring);
371 installer::windows::admin::extract_tables_from_pcpfile($msidatabase, $workdir, "Media File");
374 my $filename = $workdir . $installer::globals::separator . "Media.idt";
375 …if ( ! -f $filename ) { installer::exiter::exit_program("ERROR: Could not find required file: $fil…
376 my $filecontent = installer::files::read_file($filename);
379 $filename = $workdir . $installer::globals::separator . "File.idt";
380 …if ( ! -f $filename ) { installer::exiter::exit_program("ERROR: Could not find required file: $fil…
381 $filecontent = installer::files::read_file($filename);
425 installer::systemactions::read_complete_directory($installsetpath, $pathstring, \@sourcefiles);
427 …if ( ! ( $#sourcefiles > -1 )) { installer::exiter::exit_program("ERROR: No file in installation s…
448 …else { installer::exiter::exit_program("ERROR: There is more than one msi database in installation…
459 …if (( $cabcounter > 0 ) && ( $msidatabase eq "" )) { installer::exiter::exit_program("ERROR: There…
483 …if ( ! exists($cabfilehash->{$mediacabfilename}) ) { installer::exiter::exit_program("ERROR: Could…
493 …if ( $origfilesize != $finalfilesize ) { installer::exiter::exit_program("ERROR: msicert.exe chang…
508 $installer::logger::Lang->print($infoline);
520 $installer::logger::Lang->print($infoline);
525 $installer::logger::Lang->print($infoline);
533 $installer::logger::Lang->print($infoline);
545 my $sourcecabfile = $finalinstalldir . $installer::globals::separator . $onefile;
547 my $destcabfile = $currentpath . $installer::globals::separator . $onefile;
559 $installer::logger::Lang->print($infoline);
564 $installer::logger::Lang->print($infoline);
570 my $origdiffpath = $diffpath . $installer::globals::separator . "orig";
571 my $newdiffpath = $diffpath . $installer::globals::separator . "new";
578 $installer::logger::Lang->print($infoline);
581 …if ( ! $success ) { installer::exiter::exit_program("ERROR: Could not successfully execute: $syste…
585 $installer::logger::Lang->print($infoline);
588 …if ( ! $success ) { installer::exiter::exit_program("ERROR: Could not successfully execute: $syste…
591 my $origfile = $origdiffpath . $installer::globals::separator . $lastfile;
592 my $newfile = $newdiffpath . $installer::globals::separator . $lastfile;
594 …if ( ! -f $origfile ) { installer::exiter::exit_program("ERROR: Unpacked original file not found: …
595 …if ( ! -f $newfile ) { installer::exiter::exit_program("ERROR: Unpacked new file not found: $newfi…
603 $installer::logger::Lang->print($infoline);
604 …installer::exiter::exit_program("ERROR: The cabinet file $destcabfile is broken after signtool.exe…
609 $installer::logger::Lang->print($infoline);
624 $installer::logger::Lang->print($infoline);
629 $installer::logger::Lang->print($infoline);
630 …installer::exiter::exit_program("ERROR: Last files are different after signing cabinet file (File:…
635 $installer::logger::Lang->print($infoline);
636 …installer::exiter::exit_program("ERROR: Problem occured calling diff.exe (File: $lastfile) !", "ca…
661 my $pfxfilepath = $installer::globals::pfxfile;
675 $installer::logger::Lang->print($infoline);
686 $installer::logger::Info->printf("\n");
687 $installer::logger::Info->printf("\n");
688 $installer::logger::Info->printf("... repeating file %s ...\n", $onefile);
692 $installer::logger::Info->printf(" Signing: %s\n", $onefile);
709 installer::exiter::exit_program("ERROR: Could not sign file: $onefile!", "sign_files");
738 …installer::exiter::exit_program("ERROR \"$ddffilename\" line $linenumber: Lines in ddf files must …
749 $installer::logger::Lang->print($infoline);
761 $cabpath = $temppath . $installer::globals::separator . $cabpath;
762 if ( ! -d $cabpath ) { installer::systemactions::create_directory($cabpath); }
776 $diffpath = $temppath . $installer::globals::separator . $diffpath;
777 if ( ! -d $diffpath ) { installer::systemactions::create_directory($diffpath); }
790 installer::logger::include_header_into_logfile("Extracting cabs from msi database");
822 installer::logger::include_header_into_logfile("Including cabs into msi database");
850 $installer::logger::Info->printf("\n");
851 $installer::logger::Info->printf("... reading cabinet file %s ...\n", $cabfilename);
853 $installer::logger::Lang->print($infoline);
883 $installer::logger::Info->printf("\n");
884 $installer::logger::Info->printf("... unpacking cabinet file %s ...\n", $cabfilename);
886 $installer::logger::Lang->print($infoline);
890 my $workingpath = $temppath . $installer::globals::separator . "unpack_". $dirname . "_" . $$;
891 if ( ! -d $workingpath ) { installer::systemactions::create_directory($workingpath); }
897 my $fullcabfilename = $from . $installer::globals::separator . $cabfilename;
908 …if ( ! $success ) { installer::exiter::exit_program("ERROR: Could not unpack cabinet file: $fullca…
965 …if ( ! -f $filename ) { installer::exiter::exit_program("ERROR: Could not find file: $filename!", …
979 $installer::logger::Info->print("\n");
980 $installer::logger::Info->printf("... packing cabinet file %s ...\n", $cabfilename);
982 $installer::logger::Lang->print($infoline);
985 …if ( -f $cabfilename ) { installer::exiter::exit_program("ERROR: Failed to remove file: $cabfilena…
992 my $ddfpath = $temppath . $installer::globals::separator . "ddf_". $dirname . "_" . $$;
996 $ddffilename = $ddfpath . $installer::globals::separator . $ddffilename;
998 if ( ! -d $ddfpath ) { installer::systemactions::create_directory($ddfpath); }
1009 installer::files::save_file($ddffilename, \@ddffile);
1020 …if ( ! $success ) { installer::exiter::exit_program("ERROR: Could not pack cabinet file!", "do_pac…
1064 $installer::logger::Info->printf("... already certified -> skipping %s ...\n", $filename);
1099 if ( exists( $installer::globals::sign_extensions{$extension} ) )
1131 $installer::logger::Lang->print($infoline);
1135 my $file1 = $dir1 . $installer::globals::separator . $onefile;
1136 my $file2 = $dir2 . $installer::globals::separator . $onefile;
1138 …if ( ! -f $file1 ) { installer::exiter::exit_program("ERROR: Missing file : $file1!", "compare_dir…
1139 …if ( ! -f $file2 ) { installer::exiter::exit_program("ERROR: Missing file : $file2!", "compare_dir…
1145 $installer::logger::Lang->print($infoline);
1149 …installer::exiter::exit_program("ERROR: File defect after copy (different size) $file1 ($size1 byt…
1164 installer::logger::include_header_into_logfile("Start: Signing installation set $installsetpath");
1170 $installer::logger::Lang->print($infoline);
1173 if ( ! $installer::globals::signfiles_checked ) { check_system_path(); }
1176 my $pw = get_pw($installer::globals::pwfile);
1189 my $fullmsidatabase = $installsetpath . $installer::globals::separator . $msidatabase;
1217 …if ( $installer::globals::internal_cabinet_signing ) { sign_files_in_cabinet_files($followmeinfoha…
1234 …if ( $installer::globals::internal_cabinet_signing ) { sign_files_in_cabinet_files($followmeinfoha…
1250 installer::logger::include_header_into_logfile("End: Signing installation set $installsetpath");