1#************************************************************** 2# 3# Licensed to the Apache Software Foundation (ASF) under one 4# or more contributor license agreements. See the NOTICE file 5# distributed with this work for additional information 6# regarding copyright ownership. The ASF licenses this file 7# to you under the Apache License, Version 2.0 (the 8# "License"); you may not use this file except in compliance 9# with the License. You may obtain a copy of the License at 10# 11# http://www.apache.org/licenses/LICENSE-2.0 12# 13# Unless required by applicable law or agreed to in writing, 14# software distributed under the License is distributed on an 15# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16# KIND, either express or implied. See the License for the 17# specific language governing permissions and limitations 18# under the License. 19# 20#************************************************************** 21 22 23 24package installer::control; 25 26use Cwd; 27use installer::converter; 28use installer::exiter; 29use installer::files; 30use installer::globals; 31use installer::pathanalyzer; 32use installer::scriptitems; 33use installer::systemactions; 34 35our @ErrorMessages = undef; 36 37######################################################### 38# Function that can be used for additional controls. 39# Search happens in $installer::globals::patharray. 40######################################################### 41 42sub check_needed_files_in_path 43{ 44 my ( $filesref ) = @_; 45 46 my $error = 0; 47 foreach my $onefile ( @{$filesref} ) 48 { 49 $installer::logger::Info->printf("...... searching %s ...\n", $onefile); 50 51 my $fileref = installer::scriptitems::get_sourcepath_from_filename_and_includepath_classic(\$onefile, $installer::globals::patharray , 0); 52 53 if ( $$fileref eq "" ) 54 { 55 $error = 1; 56 installer::logger::print_error( "$onefile not found\n" ); 57 } 58 else 59 { 60 $installer::logger::Info->print( "\tFound: $$fileref\n" ); 61 } 62 } 63 64 if ( $error ) 65 { 66 installer::exiter::exit_program("ERROR: Could not find all needed files in path!", "check_needed_files_in_path"); 67 } 68} 69 70######################################################### 71# Checking the local system 72# Checking existence of needed files in include path 73######################################################### 74 75sub check_system_path 76{ 77 # The following files have to be found in the environment variable PATH 78 # All platforms: zip 79 # Windows only: "msiinfo.exe", "msidb.exe", "uuidgen.exe", "makecab.exe", "msitran.exe", "expand.exe" for msi database and packaging 80 81 my $onefile; 82 my $error = 0; 83 my $pathvariable = $ENV{'PATH'}; 84 my $local_pathseparator = $installer::globals::pathseparator; 85 86 if( $^O =~ /cygwin/i ) 87 { # When using cygwin's perl the PATH variable is POSIX style and ... 88 $pathvariable = qx{cygpath -mp "$pathvariable"} ; 89 # has to be converted to DOS style for further use. 90 $local_pathseparator = ';'; 91 } 92 if( $^O =~ /os2/i ) 93 { 94 # has to be converted to DOS style for further use. 95 $local_pathseparator = ';'; 96 } 97 my $patharrayref = installer::converter::convert_stringlist_into_array(\$pathvariable, $local_pathseparator); 98 99 $installer::globals::patharray = $patharrayref; 100 101 my @needed_files_in_path = (); 102 103 if (($installer::globals::iswin) && ($installer::globals::iswindowsbuild)) 104 { 105 @needed_files_in_path = ("zip.exe", "msiinfo.exe", "msidb.exe", "uuidgen.exe", "makecab.exe", "msitran.exe", "expand.exe"); 106 } 107 elsif ($installer::globals::iswin || $installer::globals::isos2) 108 { 109 @needed_files_in_path = ("zip.exe"); 110 } 111 else 112 { 113 @needed_files_in_path = ("zip"); 114 } 115 116 foreach $onefile ( @needed_files_in_path ) 117 { 118 $installer::logger::Info->printf("...... searching %s ...\n", $onefile); 119 120 my $fileref = installer::scriptitems::get_sourcepath_from_filename_and_includepath_classic(\$onefile, $patharrayref , 0); 121 122 if ( $$fileref eq "" ) 123 { 124 $error = 1; 125 installer::logger::print_error( "$onefile not found\n" ); 126 } 127 else 128 { 129 $installer::logger::Info->print( "\tFound: $$fileref\n" ); 130 # Saving the absolut path for msitran.exe. This is required for the determination of the checksum. 131 if ( $onefile eq "msitran.exe" ) { $installer::globals::msitranpath = $$fileref; } 132 } 133 } 134 135 if ( $error ) 136 { 137 installer::exiter::exit_program("ERROR: Could not find all needed files in path!", "check_system_path"); 138 } 139 140 # checking for epm, which has to be in the path or in the solver 141 142 if (( $installer::globals::call_epm ) && (!($installer::globals::iswindowsbuild))) 143 { 144 my $onefile = "epm"; 145 my $fileref = installer::scriptitems::get_sourcepath_from_filename_and_includepath(\$onefile, $patharrayref , 0); 146 if (!( $$fileref eq "" )) 147 { 148 $installer::globals::epm_in_path = 1; 149 150 if ( $$fileref =~ /^\s*\.\/epm\s*$/ ) 151 { 152 my $currentdir = cwd(); 153 $$fileref =~ s/\./$currentdir/; 154 } 155 156 $installer::globals::epm_path = $$fileref; 157 } 158 } 159 160 # checking, if upx can be found in path 161 162 if ( $installer::globals::iswindowsbuild ) { $installer::globals::upxfile = "upx.exe"; } 163 else { $installer::globals::upxfile = "upx"; } 164 165 my $upxfilename = $installer::globals::upxfile; 166 my $upxfileref = installer::scriptitems::get_sourcepath_from_filename_and_includepath_classic(\$upxfilename, $patharrayref , 0); 167 168 if (!( $$upxfileref eq "" )) 169 { 170 $installer::globals::upx_in_path = 1; 171 $installer::globals::upxfile = $$upxfileref; 172 $installer::logger::Info->print( "\tFound: $$upxfileref\n" ); 173 } 174 175} 176 177###################################################################### 178# Determining the version of file makecab.exe 179###################################################################### 180 181sub get_makecab_version 182{ 183 my $makecabversion = -1; 184 185 my $systemcall = "makecab.exe |"; 186 my @makecaboutput = (); 187 188 open (CAB, $systemcall); 189 while (<CAB>) { push(@makecaboutput, $_); } 190 close (CAB); 191 192 my $returnvalue = $?; # $? contains the return value of the systemcall 193 194 if ($returnvalue) 195 { 196 $installer::logger::Global->printf("ERROR: Could not execute \"%s\"!\n", $systemcall); 197 } 198 else 199 { 200 $installer::logger::Global->printf("Success: Executed \"%s\" successfully!\n", $systemcall); 201 202 my $versionline = ""; 203 204 for ( my $i = 0; $i <= $#makecaboutput; $i++ ) 205 { 206 if ( $makecaboutput[$i] =~ /\bVersion\b/i ) 207 { 208 $versionline = $makecaboutput[$i]; 209 last; 210 } 211 } 212 213 $installer::logger::Global->printf("%s\n", $versionline); 214 215 if ( $versionline =~ /\bVersion\b\s+(\d+[\d\.]+\d+)\s+/ ) 216 { 217 $makecabversion = $1; 218 } 219 220 # Only using the first number 221 222 if ( $makecabversion =~ /^\s*(\d+?)\D*/ ) 223 { 224 $makecabversion = $1; 225 } 226 227 $installer::logger::Global->printf("Using version: %s\n", $makecabversion); 228 } 229 230 return $makecabversion; 231} 232 233###################################################################### 234# Checking the version of file makecab.exe 235###################################################################### 236 237sub check_makecab_version 238{ 239 # checking version of makecab.exe 240 # Now it is guaranteed, that makecab.exe is in the path 241 242 my $do_check = 1; 243 244 my $makecabversion = get_makecab_version(); 245 246 $installer::logger::Global->printf("Tested version: %s\n", $installer::globals::controlledmakecabversion); 247 248 if ( $makecabversion < 0 ) { $do_check = 0; } # version could not be determined 249 250 if ( $do_check ) 251 { 252 if ( $makecabversion < $installer::globals::controlledmakecabversion ) 253 { 254 # warning for OOo, error for inhouse products 255 if ( $installer::globals::isopensourceproduct ) 256 { 257 installer::logger::print_warning("Old version of makecab.exe. Found version: \"$makecabversion\", tested version: \"$installer::globals::controlledmakecabversion\"!\n"); 258 } 259 else 260 { 261 installer::exiter::exit_program("makecab.exe too old. Found version: \"$makecabversion\", required version: \"$installer::globals::controlledmakecabversion\"!", "check_makecab_version"); 262 } 263 } 264 } 265 else 266 { 267 $installer::logger::Global->print("Warning: No version check of makecab.exe\n"); 268 } 269} 270 271###################################################################### 272# Reading the environment variables for the paths in ziplist. 273# solarpath, solarenvpath, solarcommonpath, os, osdef, pmiscpath 274###################################################################### 275 276sub check_system_environment 277{ 278 my %variables = (); 279 my $key; 280 my $error = 0; 281 282 foreach $key ( @installer::globals::environmentvariables ) 283 { 284 my $value = ""; 285 if ( $ENV{$key} ) { $value = $ENV{$key}; } 286 $variables{$key} = $value; 287 288 if ( $value eq "" ) 289 { 290 installer::logger::print_error( "$key not set in environment\n" ); 291 $error = 1; 292 } 293 } 294 295 if ( $error ) 296 { 297 installer::exiter::exit_program("ERROR: Environment variable not set!", "check_system_environment"); 298 } 299 300 return \%variables; 301} 302 303 304sub prepare_error_processing () 305{ 306 @ErrorMessages = (); 307} 308 309=item filter_log_error ($relative_time, $log_id, $process_id, $message) 310 311 Process the given log message. Returns $message unaltered. 312 313=cut 314sub filter_log_error ($$$$) 315{ 316 my ($relative_time, $log_id, $process_id, $message) = @_; 317 318 if ($message =~ /\berror\b/i) 319 { 320 # Message contains the word "error". Now we have to find out if it is relevant. 321 322 # Remove all filenames that contain the word "Error". 323 my $work_string = $message; 324 $work_string =~ s/Error\.(idt|mlf|ulf|idl|html|hpp|ipp)//g; 325 326 if ($work_string =~ /\bError\b/i) 327 { 328 # This really is an error message. 329 push @ErrorMessages, {'relative_time' => $relative_time, 330 'message' => $message}; 331 } 332 } 333 334 return $message; 335} 336 337 338 339 340sub printocessed_error_lines () 341{ 342 my $lines = []; 343 344 foreach my $line (@ErrorMessages) 345 { 346 push @$lines, sprintf(" %12.6f : %s", $line->{'relative_time'}, $line->{'message'}); 347 } 348 349 return $lines; 350} 351 352 353 354 355=item check_logfile() 356 357 Print all error messages (typically at the end) on the console. 358 359=cut 360sub check_logfile () 361{ 362 my ($logfile) = @_; 363 364 my @errors = (); 365 my @output = (); 366 367 my $ignore_errors = ( ! $installer::globals::pro ) && ( $installer::globals::ignore_error_in_logfile ); 368 my $contains_errors = scalar @ErrorMessages > 0; 369 370 # Format errors 371 if ($contains_errors) 372 { 373 push(@output, "\n"); 374 push(@output, "*********************************************************************\n"); 375 if ($ignore_errors) 376 { 377 push(@output, "The following errors in the log file were ignored:\n"); 378 } 379 else 380 { 381 push(@output, "ERROR: The following errors occurred in packaging process:\n"); 382 } 383 push(@output, "\n"); 384 385 foreach my $line (@ErrorMessages) 386 { 387 push @output, sprintf(" %12.6f : %s", $line->{'relative_time'}, $line->{'message'}); 388 } 389 390 push(@output, "*********************************************************************\n"); 391 } 392 393 # Claim success if there where no errors or if errors are treated as warnings. 394 if ( ! $contains_errors || $ignore_errors) 395 { 396 push(@output, "\n"); 397 push(@output, "***********************************************************\n"); 398 push(@output, "Successful packaging process!\n"); 399 push(@output, "***********************************************************\n"); 400 } 401 402 # Print the summary. 403 installer::logger::include_header_into_logfile("Summary:"); 404 my $force = 1; # print this message even in 'quiet' mode 405 foreach my $line (@output) 406 { 407 $installer::logger::Info->print($line, $force); 408 } 409 410 # Delete the accumulated error messages. The @ErrorMessages will now contain 411 # lines caused by printing those error messages. 412 @ErrorMessages = (); 413 414 @installer::globals::errorlogfileinfo = @output; 415 416 return $contains_error && ! $ignore_error; 417} 418 419############################################################# 420# Determining the ship installation directory 421############################################################# 422 423sub determine_ship_directory 424{ 425 my ($languagesref) = @_; 426 427 if (!( $ENV{'SHIPDRIVE'} )) { installer::exiter::exit_program("ERROR: SHIPDRIVE must be set for updater!", "determine_ship_directory"); } 428 429 my $shipdrive = $ENV{'SHIPDRIVE'}; 430 431 my $languagestring = installer::languages::get_language_directory_name($$languagesref); 432 433 my $productstring = $installer::globals::product; 434 my $productsubdir = ""; 435 436 if ( $productstring =~ /^\s*(.+?)\_\_(.+?)\s*$/ ) 437 { 438 $productstring = $1; 439 $productsubdir = $2; 440 } 441 442 if ( $installer::globals::languagepack ) { $productstring = $productstring . "_languagepack"; } 443 if ( $installer::globals::patch ) { $productstring = $productstring . "_patch"; } 444 445 my $destdir = $shipdrive . $installer::globals::separator . $installer::globals::compiler . 446 $installer::globals::productextension . $installer::globals::separator . 447 $productstring . $installer::globals::separator; 448 449 if ( $productsubdir ) { $destdir = $destdir . $productsubdir . $installer::globals::separator; } 450 451 $destdir = $destdir . $installer::globals::installertypedir . $installer::globals::separator . 452 $installer::globals::build . "_" . $installer::globals::lastminor . "_" . 453 "native_inprogress-number_" . $languagestring . "\." . $installer::globals::buildid; 454 455 $installer::logger::Global->print("\n"); 456 $installer::logger::Global->printf("Setting ship directory: %s\n", $destdir); 457 458 return $destdir; 459} 460 461############################################################# 462# Controlling if this is an official RE pack process 463############################################################# 464 465sub check_updatepack 466{ 467 my $shipdrive = ""; 468 my $filename = ""; 469 my $infoline = ""; 470 471 if ( $ENV{'UPDATER'} ) # the environment variable UPDATER has to be set 472 { 473 $installer::logger::Global->print("\n"); 474 $installer::logger::Global->print("Environment variable UPDATER set\n"); 475 476 if ( ! $ENV{'CWS_WORK_STAMP'} ) # the environment variable CWS_WORK_STAMP must not be set (set only in CWS) 477 { 478 $installer::logger::Global->print("Environment variable CWS_WORK_STAMP not set\n"); 479 480 if ( $ENV{'SHIPDRIVE'} ) # the environment variable SHIPDRIVE must be set 481 { 482 $shipdrive = $ENV{'SHIPDRIVE'}; 483 $installer::logger::Global->printf("Ship drive defined: %s\n", $shipdrive); 484 485 if ( -d $shipdrive ) # SHIPDRIVE must be a directory 486 { 487 $installer::logger::Global->print("Ship drive exists\n"); 488 489 # try to write into $shipdrive 490 491 my $directory = $installer::globals::product . "_" . $installer::globals::compiler . "_" . $installer::globals::buildid . "_" . $installer::globals::languageproduct . "_test_$$"; 492 $directory =~ s/\,/\_/g; # for the list of languages 493 $directory =~ s/\-/\_/g; # for en-US, pt-BR, ... 494 $directory = $shipdrive . $installer::globals::separator . $directory; 495 496 $installer::logger::Global->printf("Try to create directory: %s\n", $directory); 497 498 # saving this directory for later removal 499 $installer::globals::shiptestdirectory = $directory; 500 501 if ( installer::systemactions::try_to_create_directory($directory)) 502 { 503 $installer::logger::Global->print("Write access on Ship drive\n"); 504 $installer::logger::Global->print( 505 "Ship test directory %s was successfully created\n", 506 $installer::globals::shiptestdirectory); 507 my $systemcall = "rmdir $directory"; 508 my $returnvalue = system($systemcall); 509 510 # 5th condition: No local build environment. 511 # In this case the content of SOLARENV starts with the content of SOL_TMP 512 513 my $solarenv = ""; 514 my $sol_tmp; 515 if ( $ENV{'SOLARENV'} ) { $solarenv = $ENV{'SOLARENV'}; } 516 517 $installer::logger::Global->printf("Environment variable SOLARENV: %s\n", $solarenv); 518 519 if ( $ENV{'SOL_TMP'} ) 520 { 521 $sol_tmp = $ENV{'SOL_TMP'}; 522 $infoline = "Environment variable SOL_TMP: $sol_tmp\n"; 523 } else { 524 $infoline = "Environment variable SOL_TMP not set\n"; 525 } 526 $installer::logger::Global->print($infoline); 527 528 if ( defined $sol_tmp && ( $solarenv =~ /^\s*\Q$sol_tmp\E/ )) 529 { 530 $installer::logger::Global->print("Content of SOLARENV starts with the content of SOL_TMP\: Local environment -\> No Updatepack\n"); 531 } 532 else 533 { 534 $installer::logger::Global->print("Content of SOLARENV does not start with the content of SOL_TMP: No local environment\n"); 535 536 $installer::globals::updatepack = 1; # That's it 537 } 538 539 # Additional logging information for the temporary ship directory 540 541 if ( -d $installer::globals::shiptestdirectory ) 542 { 543 $installer::logger::Global->printf( 544 "Ship test directory %s still exists. Trying removal later again.\n", 545 $installer::globals::shiptestdirectory); 546 } 547 else 548 { 549 $installer::logger::Global->printf( 550 "Ship test directory %s was successfully removed.\n", 551 $installer::globals::shiptestdirectory); 552 } 553 } 554 else 555 { 556 $installer::logger::Global->print("No write access on Ship drive\n"); 557 $installer::logger::Global->printf("Failed to create directory \n", $directory); 558 if ( defined $ENV{'BSCLIENT'} && ( uc $ENV{'BSCLIENT'} eq 'TRUE' ) ) 559 { 560 installer::exiter::exit_program("ERROR: No write access to SHIPDRIVE although BSCLIENT is set.", "check_updatepack"); 561 } 562 } 563 } 564 else 565 { 566 $installer::logger::Global->print("Ship drive not found: No updatepack\n"); 567 } 568 } 569 else 570 { 571 $installer::logger::Global->print("Environment variable SHIPDRIVE not set: No updatepack\n"); 572 } 573 } 574 else 575 { 576 $installer::logger::Global->print("Environment variable CWS_WORK_STAMP defined: No updatepack\n"); 577 } 578 } 579 580 if ( $installer::globals::updatepack ) 581 { 582 $installer::logger::Global->print("Setting updatepack true\n"); 583 $installer::logger::Global->print("\n"); 584 } 585 else 586 { 587 $installer::logger::Global->print("\n"); 588 $installer::logger::Global->print("No updatepack\n"); 589 } 590 591} 592 593############################################################# 594# Reading the Windows list file for language encodings 595############################################################# 596 597sub read_encodinglist 598{ 599 my ($patharrayref) = @_; 600 601 my $fileref = installer::scriptitems::get_sourcepath_from_filename_and_includepath(\$installer::globals::encodinglistname, $patharrayref , 0); 602 603 if ( $$fileref eq "" ) { installer::exiter::exit_program("ERROR: Did not find Windows encoding list $installer::globals::encodinglistname!", "read_encodinglist"); } 604 605 $installer::logger::Global->printf("Found encoding file: %s\n", $$fileref); 606 607 my $encodinglist = installer::files::read_file($$fileref); 608 609 my %msiencoding = (); 610 my %msilanguage = (); 611 612 # Controlling the encoding list 613 614 for ( my $i = 0; $i <= $#{$encodinglist}; $i++ ) 615 { 616 my $line = ${$encodinglist}[$i]; 617 618 if ( $line =~ /^\s*\#/ ) { next; } # this is a comment line 619 620 if ( $line =~ /^(.*?)(\#.*)$/ ) { $line = $1; } # removing comments after "#" 621 622 if ( $line =~ /^\s*([\w-]+)\s*(\d+)\s*(\d+)\s*$/ ) 623 { 624 my $onelanguage = $1; 625 my $codepage = $2; 626 my $windowslanguage = $3; 627 628 $msiencoding{$onelanguage} = $codepage; 629 $msilanguage{$onelanguage} = $windowslanguage; 630 } 631 else 632 { 633 installer::exiter::exit_program("ERROR: Wrong syntax in Windows encoding list $installer::globals::encodinglistname : en-US 1252 1033 !", "read_encodinglist"); 634 } 635 } 636 637 $installer::globals::msiencoding = \%msiencoding; 638 $installer::globals::msilanguage = \%msilanguage; 639 640 # my $key; 641 # foreach $key (keys %{$installer::globals::msiencoding}) { print "A Key: $key : Value: $installer::globals::msiencoding->{$key}\n"; } 642 # foreach $key (keys %{$installer::globals::msilanguage}) { print "B Key: $key : Value: $installer::globals::msilanguage->{$key}\n"; } 643 644} 645 646############################################################# 647# Only for Windows and Linux (RPM)there is currently 648# a reliable mechanism to register extensions during 649# installation process. Therefore it is for all other 650# platforms forbidden to install oxt files into that 651# directory, in which they are searched for registration. 652############################################################# 653 654sub check_oxtfiles 655{ 656 my ( $filesarray ) = @_; 657 658 for ( my $i = 0; $i <= $#{$filesarray}; $i++ ) 659 { 660 my $onefile = ${$filesarray}[$i]; 661 662 if (( $onefile->{'Name'} ) && ( $onefile->{'Dir'} )) 663 { 664 if (( $onefile->{'Name'} =~ /\.oxt\s*$/ ) && ( $onefile->{'Dir'} eq $installer::globals::extensioninstalldir )) 665 { 666 installer::exiter::exit_program("There is currently only for Linux (RPM) and Windows a reliable mechanism to register extensions during installation.\nPlease remove file \"$onefile->{'gid'}\" from your installation set!\nYou can use \"\#ifdef WNT\" and \"\#ifdef LINUX\" in scp.", "check_oxtfiles"); 667 } 668 } 669 } 670} 671 672############################################################# 673# Check if Java is available to create xpd installer 674############################################################# 675 676sub check_java_for_xpd 677{ 678 my ( $allvariables ) = @_; 679 680 if ( ! $installer::globals::solarjavaset ) { $allvariables->{'XPDINSTALLER'} = 0; } 681} 682 683#################################################################### 684# Setting global variable "$installer::globals::addchildprojects" 685#################################################################### 686 687sub set_addchildprojects 688{ 689 my ($allvariables) = @_; 690 691 if (( $allvariables->{'JAVAPRODUCT'} ) || 692 ( $allvariables->{'ADAPRODUCT'} ) || 693 ( $allvariables->{'UREPRODUCT'} ) || 694 ( $allvariables->{'ADDREQUIREDPACKAGES'} )) { $installer::globals::addchildprojects = 1; } 695 696 if ( $installer::globals::patch ) 697 { 698 $installer::globals::addchildprojects = 0; # no child projects for patches 699 } 700 701 $installer::logger::Global->printf( 702 "Value of \$installer::globals::addchildprojects: %s\n", 703 $installer::globals::addchildprojects); 704} 705 706#################################################################### 707# Setting global variable "$installer::globals::addjavainstaller" 708#################################################################### 709 710sub set_addjavainstaller 711{ 712 my ($allvariables) = @_; 713 714 if ( $allvariables->{'JAVAINSTALLER'} ) { $installer::globals::addjavainstaller = 1; } 715 716 if ( $installer::globals::patch ) { $installer::globals::addjavainstaller = 0; } 717 if ( $installer::globals::languagepack ) { $installer::globals::addjavainstaller = 0; } 718 if ( $allvariableshashref->{'XPDINSTALLER'} ) { $installer::globals::addjavainstaller = 0; } 719 720 $installer::logger::Global->printf( 721 "Value of \$installer::globals::addjavainstaller: %s\n", 722 $installer::globals::addjavainstaller); 723} 724 725####################################################################### 726# Setting global variable "$installer::globals::addsystemintegration" 727####################################################################### 728 729sub set_addsystemintegration 730{ 731 my ($allvariables) = @_; 732 733 if ( $allvariables->{'ADDSYSTEMINTEGRATION'} ) { $installer::globals::addsystemintegration = 1; } 734 735 if ( $installer::globals::patch ) { $installer::globals::addsystemintegration = 0; } 736 if ( $installer::globals::languagepack ) { $installer::globals::addsystemintegration = 0; } 737 if (( $installer::globals::packageformat eq "native" ) || ( $installer::globals::packageformat eq "portable" )) { $installer::globals::addsystemintegration = 0; } 738 739 $installer::logger::Global->printf( 740 "Value of \$installer::globals::addsystemintegration: %s\n", 741 $installer::globals::addsystemintegration); 742} 743 7441; 745