make_installer.pl (677600b0) | make_installer.pl (04be0b07) |
---|---|
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 --- 199 unchanged lines hidden (view full) --- 208 $installer::logger::Info->print( "... creating idt files ...\n" ); 209 210 installer::logger::include_header_into_logfile("Creating idt files:"); 211 212 my $newidtdir = $idtdirbase . $installer::globals::separator . "00"; # new files into language independent directory "00" 213 installer::systemactions::create_directory($newidtdir); 214 215 # Collecting all files with flag "BINARYTABLE" | 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 --- 199 unchanged lines hidden (view full) --- 208 $installer::logger::Info->print( "... creating idt files ...\n" ); 209 210 installer::logger::include_header_into_logfile("Creating idt files:"); 211 212 my $newidtdir = $idtdirbase . $installer::globals::separator . "00"; # new files into language independent directory "00" 213 installer::systemactions::create_directory($newidtdir); 214 215 # Collecting all files with flag "BINARYTABLE" |
216 my $binarytablefiles = installer::worker::collect_all_items_with_special_flag($filesinproductlanguageresolvedarrayref ,"BINARYTABLE"); | 216 my $binarytablefiles = installer::worker::collect_all_items_with_special_flag( 217 $filesinproductlanguageresolvedarrayref, 218 "BINARYTABLE"); |
217 218 # Removing all files with flag "BINARYTABLE_ONLY" 219 @installer::globals::binarytableonlyfiles = (); | 219 220 # Removing all files with flag "BINARYTABLE_ONLY" 221 @installer::globals::binarytableonlyfiles = (); |
220 $filesinproductlanguageresolvedarrayref = installer::worker::remove_all_items_with_special_flag($filesinproductlanguageresolvedarrayref ,"BINARYTABLE_ONLY"); | 222 $filesinproductlanguageresolvedarrayref = installer::worker::remove_all_items_with_special_flag( 223 $filesinproductlanguageresolvedarrayref, 224 "BINARYTABLE_ONLY"); |
221 222 # Collecting all profileitems with flag "INIFILETABLE" for table "IniFile" 223 my $inifiletableentries = installer::worker::collect_all_items_with_special_flag($profileitemsinproductlanguageresolvedarrayref ,"INIFILETABLE"); 224 225 # Creating the important dynamic idt files 226 installer::windows::msiglobal::set_msiproductversion($allvariableshashref); 227 installer::windows::msiglobal::put_msiproductversion_into_bootstrapfile($filesinproductlanguageresolvedarrayref); 228 --- 166 unchanged lines hidden (view full) --- 395 installer::systemactions::create_directory($languageidtdir); 396 397 # Copy the template idt files and the new created idt files into this language directory 398 399 $installer::logger::Info->print( "... copying idt files ...\n" ); 400 401 installer::logger::include_header_into_logfile("Copying idt files to $languageidtdir:"); 402 | 225 226 # Collecting all profileitems with flag "INIFILETABLE" for table "IniFile" 227 my $inifiletableentries = installer::worker::collect_all_items_with_special_flag($profileitemsinproductlanguageresolvedarrayref ,"INIFILETABLE"); 228 229 # Creating the important dynamic idt files 230 installer::windows::msiglobal::set_msiproductversion($allvariableshashref); 231 installer::windows::msiglobal::put_msiproductversion_into_bootstrapfile($filesinproductlanguageresolvedarrayref); 232 --- 166 unchanged lines hidden (view full) --- 399 installer::systemactions::create_directory($languageidtdir); 400 401 # Copy the template idt files and the new created idt files into this language directory 402 403 $installer::logger::Info->print( "... copying idt files ...\n" ); 404 405 installer::logger::include_header_into_logfile("Copying idt files to $languageidtdir:"); 406 |
403 installer::windows::idtglobal::prepare_language_idt_directory($languageidtdir, $newidtdir, $onelanguage, $filesinproductlanguageresolvedarrayref, \@iconfilecollector, $binarytablefiles, $allvariableshashref); | 407 installer::windows::idtglobal::prepare_language_idt_directory( 408 $languageidtdir, 409 $newidtdir, 410 $onelanguage, 411 $filesinproductlanguageresolvedarrayref, 412 \@iconfilecollector, 413 $binarytablefiles, 414 $allvariableshashref); |
404 405 if (( ! $installer::globals::languagepack ) && ( ! $allvariableshashref->{'NOLANGUAGESELECTIONPRODUCT'} )) 406 { 407 # For multilingual installation sets, the dialog for the language selection can now be prepared, with 408 # a checkbox for each available language. This has to happen before the following translation. 409 # The new controls have to be added into the Control.idt 410 411 my $controlidttablename = $languageidtdir . $installer::globals::separator . "Control.idt"; --- 96 unchanged lines hidden (view full) --- 508 # adding language specific properties for multilingual installation sets 509 510 installer::windows::property::set_languages_in_property_table($languageidtdir, $languagesarrayref); 511 512 # adding settings into CheckBox.idt 513 installer::windows::property::update_checkbox_table($languageidtdir, $allvariableshashref); 514 515 # adding the files from the binary directory into the binary table | 415 416 if (( ! $installer::globals::languagepack ) && ( ! $allvariableshashref->{'NOLANGUAGESELECTIONPRODUCT'} )) 417 { 418 # For multilingual installation sets, the dialog for the language selection can now be prepared, with 419 # a checkbox for each available language. This has to happen before the following translation. 420 # The new controls have to be added into the Control.idt 421 422 my $controlidttablename = $languageidtdir . $installer::globals::separator . "Control.idt"; --- 96 unchanged lines hidden (view full) --- 519 # adding language specific properties for multilingual installation sets 520 521 installer::windows::property::set_languages_in_property_table($languageidtdir, $languagesarrayref); 522 523 # adding settings into CheckBox.idt 524 installer::windows::property::update_checkbox_table($languageidtdir, $allvariableshashref); 525 526 # adding the files from the binary directory into the binary table |
516 installer::windows::binary::update_binary_table($languageidtdir, $filesinproductlanguageresolvedarrayref, $binarytablefiles); | 527 installer::windows::binary::update_binary_table( 528 $languageidtdir, 529 $filesinproductlanguageresolvedarrayref, 530 $binarytablefiles); |
517 518 # setting patch codes to detect installed products 519 520 if (( $installer::globals::patch ) || ( $installer::globals::languagepack ) || ( $allvariableshashref->{'PDFCONVERTER'} )) { installer::windows::patch::update_patch_tables($languageidtdir, $allvariableshashref); } 521 522 # Adding Windows Installer CustomActions 523 524 installer::windows::idtglobal::addcustomactions($languageidtdir, $windowscustomactionsarrayref, $filesinproductlanguageresolvedarrayref); --- 1725 unchanged lines hidden --- | 531 532 # setting patch codes to detect installed products 533 534 if (( $installer::globals::patch ) || ( $installer::globals::languagepack ) || ( $allvariableshashref->{'PDFCONVERTER'} )) { installer::windows::patch::update_patch_tables($languageidtdir, $allvariableshashref); } 535 536 # Adding Windows Installer CustomActions 537 538 installer::windows::idtglobal::addcustomactions($languageidtdir, $windowscustomactionsarrayref, $filesinproductlanguageresolvedarrayref); --- 1725 unchanged lines hidden --- |