make_installer.pl (fb67933c) | make_installer.pl (d1fa6344) |
---|---|
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 --- 60 unchanged lines hidden (view full) --- 69use installer::windows::featurecomponent; 70use installer::windows::file; 71use installer::windows::font; 72use installer::windows::icon; 73use installer::windows::idtglobal; 74use installer::windows::inifile; 75use installer::windows::java; 76use installer::windows::media; | 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 --- 60 unchanged lines hidden (view full) --- 69use installer::windows::featurecomponent; 70use installer::windows::file; 71use installer::windows::font; 72use installer::windows::icon; 73use installer::windows::idtglobal; 74use installer::windows::inifile; 75use installer::windows::java; 76use installer::windows::media; |
77use installer::windows::mergemodule; | |
78use installer::windows::msiglobal; 79use installer::windows::msp; 80use installer::windows::patch; 81use installer::windows::property; 82use installer::windows::removefile; 83use installer::windows::registry; 84use installer::windows::selfreg; 85use installer::windows::shortcut; --- 433 unchanged lines hidden (view full) --- 519 520my $profileitemsinproductarrayref = installer::setupscript::get_all_items_from_script($setupscriptref, "ProfileItem"); 521if ( $installer::globals::globallogging ) { installer::files::save_array_of_hashes($loggingdir . "profileitems1.log", $profileitemsinproductarrayref); } 522 523my $folderinproductarrayref; 524my $folderitemsinproductarrayref; 525my $registryitemsinproductarrayref; 526my $windowscustomactionsarrayref; | 77use installer::windows::msiglobal; 78use installer::windows::msp; 79use installer::windows::patch; 80use installer::windows::property; 81use installer::windows::removefile; 82use installer::windows::registry; 83use installer::windows::selfreg; 84use installer::windows::shortcut; --- 433 unchanged lines hidden (view full) --- 518 519my $profileitemsinproductarrayref = installer::setupscript::get_all_items_from_script($setupscriptref, "ProfileItem"); 520if ( $installer::globals::globallogging ) { installer::files::save_array_of_hashes($loggingdir . "profileitems1.log", $profileitemsinproductarrayref); } 521 522my $folderinproductarrayref; 523my $folderitemsinproductarrayref; 524my $registryitemsinproductarrayref; 525my $windowscustomactionsarrayref; |
527my $mergemodulesarrayref; | |
528 529if ( $installer::globals::iswindowsbuild ) # Windows specific items: Folder, FolderItem, RegistryItem, WindowsCustomAction 530{ 531 $installer::logger::Info->print( "... analyzing folders ... \n" ); 532 533 $folderinproductarrayref = installer::setupscript::get_all_items_from_script($setupscriptref, "Folder"); 534 if ( $installer::globals::globallogging ) { installer::files::save_array_of_hashes($loggingdir . "folder1.log", $folderinproductarrayref); } 535 --- 15 unchanged lines hidden (view full) --- 551 552 $registryitemsinproductarrayref = installer::scriptitems::remove_uninstall_regitems_from_script($registryitemsinproductarrayref); 553 if ( $installer::globals::globallogging ) { installer::files::save_array_of_hashes($loggingdir . "registryitems1b.log", $registryitemsinproductarrayref); } 554 555 $installer::logger::Info->print( "... analyzing Windows custom actions ... \n" ); 556 557 $windowscustomactionsarrayref = installer::setupscript::get_all_items_from_script($setupscriptref, "WindowsCustomAction"); 558 if ( $installer::globals::globallogging ) { installer::files::save_array_of_hashes($loggingdir . "windowscustomactions1.log", $windowscustomactionsarrayref); } | 526 527if ( $installer::globals::iswindowsbuild ) # Windows specific items: Folder, FolderItem, RegistryItem, WindowsCustomAction 528{ 529 $installer::logger::Info->print( "... analyzing folders ... \n" ); 530 531 $folderinproductarrayref = installer::setupscript::get_all_items_from_script($setupscriptref, "Folder"); 532 if ( $installer::globals::globallogging ) { installer::files::save_array_of_hashes($loggingdir . "folder1.log", $folderinproductarrayref); } 533 --- 15 unchanged lines hidden (view full) --- 549 550 $registryitemsinproductarrayref = installer::scriptitems::remove_uninstall_regitems_from_script($registryitemsinproductarrayref); 551 if ( $installer::globals::globallogging ) { installer::files::save_array_of_hashes($loggingdir . "registryitems1b.log", $registryitemsinproductarrayref); } 552 553 $installer::logger::Info->print( "... analyzing Windows custom actions ... \n" ); 554 555 $windowscustomactionsarrayref = installer::setupscript::get_all_items_from_script($setupscriptref, "WindowsCustomAction"); 556 if ( $installer::globals::globallogging ) { installer::files::save_array_of_hashes($loggingdir . "windowscustomactions1.log", $windowscustomactionsarrayref); } |
559 560 $installer::logger::Info->print( "... analyzing Windows merge modules ... \n" ); 561 562 $mergemodulesarrayref = installer::setupscript::get_all_items_from_script($setupscriptref, "MergeModule"); 563 if ( $installer::globals::globallogging ) { installer::files::save_array_of_hashes($loggingdir . "mergemodules1.log", $mergemodulesarrayref); } | |
564} 565 566my $modulesinproductarrayref; 567 568if (!($installer::globals::is_copy_only_project)) 569{ 570 $installer::logger::Info->print( "... analyzing modules ... \n" ); 571 --- 160 unchanged lines hidden (view full) --- 732 if ( $allvariableshashref->{'UPDATE_DATABASE'} ) 733 { 734 $installer::logger::Info->print( "... analyzing update database ...\n" ); 735 $refdatabase = installer::windows::update::readdatabase($allvariableshashref, $languagestringref, $includepatharrayref); 736 737 if ( $installer::globals::updatedatabase ) 738 { 739 ($uniquefilename, $revuniquefilename, $revshortfilename, $allupdatesequences, $allupdatecomponents, $allupdatefileorder, $allupdatecomponentorder, $shortdirname, $componentid, $componentidkeypath, $alloldproperties, $allupdatelastsequences, $allupdatediskids) = installer::windows::update::create_database_hashes($refdatabase); | 557} 558 559my $modulesinproductarrayref; 560 561if (!($installer::globals::is_copy_only_project)) 562{ 563 $installer::logger::Info->print( "... analyzing modules ... \n" ); 564 --- 160 unchanged lines hidden (view full) --- 725 if ( $allvariableshashref->{'UPDATE_DATABASE'} ) 726 { 727 $installer::logger::Info->print( "... analyzing update database ...\n" ); 728 $refdatabase = installer::windows::update::readdatabase($allvariableshashref, $languagestringref, $includepatharrayref); 729 730 if ( $installer::globals::updatedatabase ) 731 { 732 ($uniquefilename, $revuniquefilename, $revshortfilename, $allupdatesequences, $allupdatecomponents, $allupdatefileorder, $allupdatecomponentorder, $shortdirname, $componentid, $componentidkeypath, $alloldproperties, $allupdatelastsequences, $allupdatediskids) = installer::windows::update::create_database_hashes($refdatabase); |
740 if ( $mergemodulesarrayref > -1 ) { installer::windows::update::readmergedatabase($mergemodulesarrayref, $languagestringref, $includepatharrayref); } | |
741 } 742 } 743 } 744 745 ############################################## 746 # Setting global code variables for Windows 747 ############################################## 748 --- 1427 unchanged lines hidden (view full) --- 2176 2177 # validating the database # ToDo 2178 2179 my $languagefile = installer::files::read_file($installer::globals::idtlanguagepath . $installer::globals::separator . "SIS.mlf"); 2180 # my $languagefile = installer::files::read_file($installer::globals::idtlanguagepath . $installer::globals::separator . "SIS.ulf"); 2181 2182 installer::windows::msiglobal::write_summary_into_msi_database($msifilename, $onelanguage, $languagefile, $allvariableshashref); 2183 | 733 } 734 } 735 } 736 737 ############################################## 738 # Setting global code variables for Windows 739 ############################################## 740 --- 1427 unchanged lines hidden (view full) --- 2168 2169 # validating the database # ToDo 2170 2171 my $languagefile = installer::files::read_file($installer::globals::idtlanguagepath . $installer::globals::separator . "SIS.mlf"); 2172 # my $languagefile = installer::files::read_file($installer::globals::idtlanguagepath . $installer::globals::separator . "SIS.ulf"); 2173 2174 installer::windows::msiglobal::write_summary_into_msi_database($msifilename, $onelanguage, $languagefile, $allvariableshashref); 2175 |
2184 # if there are Merge Modules, they have to be integrated now 2185 $filesinproductlanguageresolvedarrayref = installer::windows::mergemodule::merge_mergemodules_into_msi_database($mergemodulesarrayref, $filesinproductlanguageresolvedarrayref, $msifilename, $languagestringref, $onelanguage, $languagefile, $allvariableshashref, $includepatharrayref, $allupdatesequences, $allupdatelastsequences, $allupdatediskids); 2186 if (( $installer::globals::globallogging ) && ($installer::globals::globalloggingform21)) { installer::files::save_array_of_hashes($loggingdir . "productfiles21_" . $onelanguage . ".log", $filesinproductlanguageresolvedarrayref); } 2187 $installer::globals::globalloggingform21 = 0; 2188 | |
2189 # copy msi database into installation directory 2190 2191 my $msidestfilename = $installdir . $installer::globals::separator . $msidatabasename; 2192 installer::systemactions::copy_one_file($msifilename, $msidestfilename); 2193 } 2194 } 2195 2196 # Creating transforms, if the installation set has more than one language --- 24 unchanged lines hidden (view full) --- 2221 2222 # installer::windows::msiglobal::copy_scpactions_into_installset($defaultlanguage, $installdir, $scpactionsinproductlanguageresolvedarrayref); 2223 installer::worker::put_scpactions_into_installset($installdir); 2224 2225 # ... copying the setup.exe 2226 2227 installer::windows::msiglobal::copy_windows_installer_files_into_installset($installdir, $includepatharrayref, $allvariableshashref); 2228 | 2176 # copy msi database into installation directory 2177 2178 my $msidestfilename = $installdir . $installer::globals::separator . $msidatabasename; 2179 installer::systemactions::copy_one_file($msifilename, $msidestfilename); 2180 } 2181 } 2182 2183 # Creating transforms, if the installation set has more than one language --- 24 unchanged lines hidden (view full) --- 2208 2209 # installer::windows::msiglobal::copy_scpactions_into_installset($defaultlanguage, $installdir, $scpactionsinproductlanguageresolvedarrayref); 2210 installer::worker::put_scpactions_into_installset($installdir); 2211 2212 # ... copying the setup.exe 2213 2214 installer::windows::msiglobal::copy_windows_installer_files_into_installset($installdir, $includepatharrayref, $allvariableshashref); 2215 |
2229 # ... copying MergeModules into installation set 2230 2231 if ( ! $installer::globals::fix_number_of_cab_files ) { installer::windows::msiglobal::copy_merge_modules_into_installset($installdir); } 2232 | |
2233 # ... copying the child projects 2234 2235 if ($installer::globals::addchildprojects) 2236 { 2237 installer::windows::msiglobal::copy_child_projects_into_installset($installdir, $allvariableshashref); 2238 } 2239 2240 $installer::logger::Info->print( "... creating ddf files ...\n" ); --- 89 unchanged lines hidden --- | 2216 # ... copying the child projects 2217 2218 if ($installer::globals::addchildprojects) 2219 { 2220 installer::windows::msiglobal::copy_child_projects_into_installset($installdir, $allvariableshashref); 2221 } 2222 2223 $installer::logger::Info->print( "... creating ddf files ...\n" ); --- 89 unchanged lines hidden --- |