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…
126 …my $systemcall = $programdir . $installer::globals::separator . $unopkgfile . " sync --verbose" . …
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);
356 …installer::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 .";
419 …installer::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 )
557 $getuidlibrary = installer::download::get_path_for_library($includepatharrayref);
560 elsif ( $installer::globals::islinuxbuild )
570 $installer::logger::Info->printf("... %s ...\n", $systemcall);
573 $installer::logger::Lang->print($infoline);
578 $installer::logger::Lang->print($infoline);
583 $installer::logger::Lang->print($infoline);
589 $installer::logger::Info->printf("... removing %s ...\n", $tempdir);
590 installer::systemactions::remove_complete_directory($tempdir);
607 $installer::logger::Info->print( "... creating installation directory ...\n" );
608 installer::logger::include_header_into_logfile("Creating installation directory");
610 …$installer::globals::csp_installdir = installer::worker::create_installation_directory($shipinstal…
611 …$installer::globals::csp_installlogdir = installer::systemactions::create_directory_next_to_direct…
613 my $installdir = $installer::globals::csp_installdir;
614 my $installlogdir = $installer::globals::csp_installlogdir;
619 if ( $installer::globals::packageformat eq "archive" ||
620 $installer::globals::packageformat eq "dmg" )
622 $installer::globals::csp_languagestring = $$languagestringref;
624 my $locallanguage = $installer::globals::csp_languagestring;
628 $packagename = installer::download::set_download_filename(\$locallanguage, $allvariables);
632 $downloadname = installer::ziplist::getinfofromziplist($allsettingsarrayref, "downloadname");
633 …if ( $installer::globals::languagepack ) { $downloadname = installer::ziplist::getinfofromziplist(…
634 …if ( $installer::globals::patch ) { $downloadname = installer::ziplist::getinfofromziplist($allset…
635 …$packagename = installer::download::resolve_variables_in_downloadname($allvariables, $$downloadnam…
644 if ( $installer::globals::iswindowsbuild &&
645 $installer::globals::packageformat eq "archive" &&
646 !$installer::globals::localinstalldirset )
653 …if ( $packagename ne "" ) { $subfolderdir = $tempinstalldir . $installer::globals::separator . $pa…
656 if ( ! -d $subfolderdir ) { installer::systemactions::create_directory($subfolderdir); }
660 $installer::logger::Info->print("... creating directories ...\n");
661 installer::logger::include_header_into_logfile("Creating directories:");
669 my $destdir = $subfolderdir . $installer::globals::separator . $onedir->{'HostName'};
675 $installer::logger::Lang->printf("Try to create directory %s\n", $destdir);
681 installer::systemactions::create_directory_structure($destdir);
688 …if (( $installer::globals::strip ) && ( ! $installer::globals::iswindowsbuild ) && ( ! $installer:…
691 $installer::logger::Info->print("... copying files ...\n");
692 installer::logger::include_header_into_logfile("Copying files:");
699 …if (( $installer::globals::patch ) && ( $onefile->{'Styles'} ) && ( ! ( $onefile->{'Styles'} =~ /\…
700 …if (( $installer::globals::patch ) && ( $installer::globals::packageformat eq "dmg" )) { push(@ins…
704 $destination = $subfolderdir . $installer::globals::separator . $destination;
717 $installer::logger::Lang->printf("Copy: $source to %s\n", $destination);
722 … $installer::logger::Lang->printf("ERROR: Could not copy %s to %s\n", $source, $destination);
728 installer::systemactions::copy_one_file($source, $destination);
730 if ( ! $installer::globals::iswindowsbuild )
738 …my $localcall = "$installer::globals::wrapcmd chmod $unixrights \'$destination\' \>\/dev\/null 2\>…
747 $installer::logger::Info->print("... creating links ...\n");
748 installer::logger::include_header_into_logfile("Creating links:");
754 …if (( $installer::globals::patch ) && ( $onelink->{'Styles'} ) && ( ! ( $onelink->{'Styles'} =~ /\…
757 $destination = $subfolderdir . $installer::globals::separator . $destination;
763 $installer::logger::Lang->printf("Creating link: \"ln -sf %s %s\"\n",
772 …if (( $installer::globals::patch ) && ( $onelink->{'Styles'} ) && ( ! ( $onelink->{'Styles'} =~ /\…
775 my $destination = $subfolderdir . $installer::globals::separator . $onelink->{'destination'};
780 $installer::logger::Lang->printf("Creating Unix link: \"ln -sf %s %s\"\n",
789 $installer::logger::Lang->print( "... changing privileges in $subfolderdir ...\n" );
790 installer::logger::include_header_into_logfile("Changing privileges in $subfolderdir:");
796 $installer::logger::Lang->print( "... removing superfluous directories ...\n" );
797 installer::logger::include_header_into_logfile("Removing superfluous directories:");
800 installer::systemactions::remove_empty_dirs_in_folder($extensionfolder);
804 $installer::logger::Lang->print( "... registering extensions ...\n" );
805 installer::logger::include_header_into_logfile("Registering extensions:");
808 if ( $installer::globals::compiler =~ /^unxmac/ )
810 installer::worker::put_scpactions_into_installset("$installdir/$packagename");
814 if ( $installer::globals::packageformat eq "archive" )
816 …$packagename, $allvariables, $includepatharrayref, $languagestringref, $installer::globals::archiv…
818 elsif ( $installer::globals::packageformat eq "dmg" )
825 installer::worker::clean_output_tree(); # removing directories created in the output tree
826 …installer::worker::analyze_and_save_logfile($loggingdir, $installdir, $installlogdir, $allsettings…