Lines Matching refs:installer

24 package installer::simplepackage;
29 use installer::download;
30 use installer::exiter;
31 use installer::globals;
32 use installer::logger;
33 use installer::strip;
34 use installer::systemactions;
35 use installer::worker;
48 if (( $installer::globals::packageformat eq "installed" ) ||
49 ( $installer::globals::packageformat eq "archive" ))
51 $installer::globals::is_simple_packager_project = 1;
52 $installer::globals::patch_user_dir = 1;
54 elsif( $installer::globals::packageformat eq "dmg" )
56 $installer::globals::is_simple_packager_project = 1;
68 my $extensiondir = $subfolderdir . $installer::globals::separator;
69 …if ( $installer::globals::officedirhostname ne "" ) { $extensiondir = $extensiondir . $installer::…
70 my $extensionsdir = $extensiondir . "share" . $installer::globals::separator . "extensions";
71 …my $preregdir = $extensiondir . "share" . $installer::globals::separator . "prereg" . $installer::…
89 $installer::logger::Lang->print($infoline);
90 installer::exiter::exit_program($infoline, "register_extensions");
93 my $programdir = $officedir . $installer::globals::separator;
94 …if ( $installer::globals::officedirhostname ne "" ) { $programdir = $programdir . $installer::glob…
100 my $unopkgfile = $installer::globals::unopkgfile;
103 if (( $installer::globals::languagepack ) && ( ! -f $unopkgfile ))
107 $installer::logger::Lang->print($infoline);
114 $installer::logger::Lang->print($infoline);
120 $installer::logger::Info->printf("... current dir: %s ...\n", $currentdir);
122 $installer::logger::Lang->print($infoline);
124 …if ( ! -f $unopkgfile ) { installer::exiter::exit_program("ERROR: $unopkgfile not found!", "regist…
128 $installer::logger::Info->printf("... %s ...\n", $systemcall);
131 $installer::logger::Lang->print($infoline);
152 $installer::logger::Lang->printf($line);
156 $installer::logger::Lang->print($infoline);
157 installer::exiter::exit_program("ERROR: $systemcall failed!", "register_extensions");
162 $installer::logger::Lang->print($infoline);
175 my $translationfilename = $installer::globals::maclangpackfilename;
176 …if ( ! -f $translationfilename ) { installer::exiter::exit_program("ERROR: Could not find language…
177 my $translationfile = installer::files::read_file($translationfilename);
180 $installer::logger::Lang->print($infoline);
355 …$installer::logger::Info->printf("... creating %s file ...\n", $installer::globals::packageformat);
356installer::logger::include_header_into_logfile("Creating $installer::globals::packageformat file:"…
365 installer::systemactions::rename_directory($installdir, $tempdir);
368 installer::systemactions::create_directory($archivedir);
370 my $archive = $archivedir . $installer::globals::separator . $packagename . $format;
380 $systemcall = "$installer::globals::zippath -qr $zip .";
384 $systemcall = "$installer::globals::zippath -qr $archive .";
419installer::scriptitems::get_sourcepath_from_filename_and_includepath( \$sla, $includepatharrayref,…
424 if (( $installer::globals::languagepack ) || ( $installer::globals::patch ))
427 if ( $installer::globals::languagepack )
433 if ( $installer::globals::patch )
451 $installer::logger::Info->printf("... %s ...\n", $systemcall);
454 $installer::logger::Lang->print($infoline);
459 $installer::logger::Lang->print($infoline);
464 $installer::logger::Lang->print($infoline);
470 installer::systemactions::remove_complete_directory($contentsfolder);
471 installer::systemactions::create_directory($contentsfolder);
473 installer::systemactions::copy_one_file($sourcefile, $destfile);
482 …if ( $installer::globals::languagepack ) { $scriptfilename = "osx_install_languagepack.applescript…
483 if ( $installer::globals::patch ) { $scriptfilename = "osx_install_patch.applescript"; }
487 my $translationfilename = $installer::globals::macinstallfilename;
491 …my $scriptref = installer::scriptitems::get_sourcepath_from_filename_and_includepath( \$scriptfile…
492 …if ($$scriptref eq "") { installer::exiter::exit_program("ERROR: Could not find Apple script $scri…
493 …my $scripthelperref = installer::scriptitems::get_sourcepath_from_filename_and_includepath( \$scri…
494 …if ($$scripthelperref eq "") { installer::exiter::exit_program("ERROR: Could not find Apple script…
495 …my $translationfileref = installer::scriptitems::get_sourcepath_from_filename_and_includepath( \$t…
496 …if ($$translationfileref eq "") { installer::exiter::exit_program("ERROR: Could not find Apple scr…
501 installer::systemactions::copy_one_file($$scriptref, $scriptfilename);
502 installer::systemactions::copy_one_file($$scripthelperref, $scripthelperrealfilename);
506 my $scriptfilecontent = installer::files::read_file($scriptfilename);
507 my $translationfilecontent = installer::files::read_file($$translationfileref);
511 installer::files::save_file($scriptfilename, $scriptfilecontent);
521 …my $iconfileref = installer::scriptitems::get_sourcepath_from_filename_and_includepath( \$iconfile…
522 …if ($$iconfileref eq "") { installer::exiter::exit_program("ERROR: Could not find Apple script ico…
524 if ( ! -d $subdir ) { installer::systemactions::create_directory($subdir); }
526 installer::systemactions::copy_one_file($$iconfileref, $destfile);
530 …my $infoplistfileref = installer::scriptitems::get_sourcepath_from_filename_and_includepath( \$inf…
531 …if ($$infoplistfileref eq "") { installer::exiter::exit_program("ERROR: Could not find Apple scrip…
533 installer::systemactions::copy_one_file($$infoplistfileref, $destfile);
536 $scriptfilecontent = installer::files::read_file($destfile);
539 installer::files::save_file($destfile, $scriptfilecontent);
555 if (( $installer::globals::issolarisbuild ) || ( $installer::globals::islinuxbuild ))
557 $getuidlibrary = installer::download::get_path_for_library($includepatharrayref);
566 $installer::logger::Info->printf("... %s ...\n", $systemcall);
569 $installer::logger::Lang->print($infoline);
574 $installer::logger::Lang->print($infoline);
579 $installer::logger::Lang->print($infoline);
585 $installer::logger::Info->printf("... removing %s ...\n", $tempdir);
586 installer::systemactions::remove_complete_directory($tempdir);
603 $installer::logger::Info->print( "... creating installation directory ...\n" );
604 installer::logger::include_header_into_logfile("Creating installation directory");
606 …$installer::globals::csp_installdir = installer::worker::create_installation_directory($shipinstal…
607 …$installer::globals::csp_installlogdir = installer::systemactions::create_directory_next_to_direct…
609 my $installdir = $installer::globals::csp_installdir;
610 my $installlogdir = $installer::globals::csp_installlogdir;
615 if ( $installer::globals::packageformat eq "archive" ||
616 $installer::globals::packageformat eq "dmg" )
618 $installer::globals::csp_languagestring = $$languagestringref;
620 my $locallanguage = $installer::globals::csp_languagestring;
624 $packagename = installer::download::set_download_filename(\$locallanguage, $allvariables);
628 $downloadname = installer::ziplist::getinfofromziplist($allsettingsarrayref, "downloadname");
629 …if ( $installer::globals::languagepack ) { $downloadname = installer::ziplist::getinfofromziplist(…
630 …if ( $installer::globals::patch ) { $downloadname = installer::ziplist::getinfofromziplist($allset…
631 …$packagename = installer::download::resolve_variables_in_downloadname($allvariables, $$downloadnam…
640 if ( $installer::globals::iswindowsbuild &&
641 $installer::globals::packageformat eq "archive" &&
642 !$installer::globals::localinstalldirset )
649 …if ( $packagename ne "" ) { $subfolderdir = $tempinstalldir . $installer::globals::separator . $pa…
652 if ( ! -d $subfolderdir ) { installer::systemactions::create_directory($subfolderdir); }
656 $installer::logger::Info->print("... creating directories ...\n");
657 installer::logger::include_header_into_logfile("Creating directories:");
665 my $destdir = $subfolderdir . $installer::globals::separator . $onedir->{'HostName'};
671 $installer::logger::Lang->printf("Try to create directory %s\n", $destdir);
677 installer::systemactions::create_directory_structure($destdir);
684 …if (( $installer::globals::strip ) && ( ! $installer::globals::iswindowsbuild ) && ( ! $installer:…
687 $installer::logger::Info->print("... copying files ...\n");
688 installer::logger::include_header_into_logfile("Copying files:");
695 …if (( $installer::globals::patch ) && ( $onefile->{'Styles'} ) && ( ! ( $onefile->{'Styles'} =~ /\…
696 …if (( $installer::globals::patch ) && ( $installer::globals::packageformat eq "dmg" )) { push(@ins…
700 $destination = $subfolderdir . $installer::globals::separator . $destination;
713 $installer::logger::Lang->printf("Copy: $source to %s\n", $destination);
718 … $installer::logger::Lang->printf("ERROR: Could not copy %s to %s\n", $source, $destination);
724 installer::systemactions::copy_one_file($source, $destination);
726 if ( ! $installer::globals::iswindowsbuild )
734 …my $localcall = "$installer::globals::wrapcmd chmod $unixrights \'$destination\' \>\/dev\/null 2\>…
743 $installer::logger::Info->print("... creating links ...\n");
744 installer::logger::include_header_into_logfile("Creating links:");
750 …if (( $installer::globals::patch ) && ( $onelink->{'Styles'} ) && ( ! ( $onelink->{'Styles'} =~ /\…
753 $destination = $subfolderdir . $installer::globals::separator . $destination;
759 $installer::logger::Lang->printf("Creating link: \"ln -sf %s %s\"\n",
768 …if (( $installer::globals::patch ) && ( $onelink->{'Styles'} ) && ( ! ( $onelink->{'Styles'} =~ /\…
771 my $destination = $subfolderdir . $installer::globals::separator . $onelink->{'destination'};
776 $installer::logger::Lang->printf("Creating Unix link: \"ln -sf %s %s\"\n",
785 $installer::logger::Lang->print( "... changing privileges in $subfolderdir ...\n" );
786 installer::logger::include_header_into_logfile("Changing privileges in $subfolderdir:");
792 $installer::logger::Lang->print( "... removing superfluous directories ...\n" );
793 installer::logger::include_header_into_logfile("Removing superfluous directories:");
796 installer::systemactions::remove_empty_dirs_in_folder($extensionfolder);
800 $installer::logger::Lang->print( "... registering extensions ...\n" );
801 installer::logger::include_header_into_logfile("Registering extensions:");
804 if ( $installer::globals::compiler =~ /^unxmac/ )
806 installer::worker::put_scpactions_into_installset("$installdir/$packagename");
810 if ( $installer::globals::packageformat eq "archive" )
812 …$packagename, $allvariables, $includepatharrayref, $languagestringref, $installer::globals::archiv…
814 elsif ( $installer::globals::packageformat eq "dmg" )
821 installer::worker::clean_output_tree(); # removing directories created in the output tree
822installer::worker::analyze_and_save_logfile($loggingdir, $installdir, $installlogdir, $allsettings…