Lines Matching refs:installer_state
59 #include "chrome/installer/util/installer_state.h"
94 const installer::InstallerState& installer_state,
140 const installer::InstallerState& installer_state,
144 installer_state.UpdateStage(installer::UNCOMPRESSING);
147 installer_state.WriteInstallerResult(*install_status,
162 installer_state));
166 installer_state.WriteInstallerResult(*install_status,
174 if ((installer_state.UpdateStage(installer::ENSEMBLE_PATCHING),
176 (installer_state.UpdateStage(installer::BINARY_PATCHING),
179 installer_state.WriteInstallerResult(*install_status,
189 // In multi-install, adds all products to |installer_state| that are
191 // in |installer_state|.
193 InstallerState* installer_state) {
194 if (installer_state->is_multi_install()) {
199 if (!installer_state->FindProduct(type)) {
201 original_state.GetProductState(installer_state->system_install(),
204 installer_state->AddProductFromState(type, *state);
223 InstallerState* installer_state) {
227 AddExistingMultiInstalls(original_state, installer_state);
228 const base::FilePath &target_path = installer_state->target_path();
256 if (installer_state->FindProduct(BrowserDistribution::CHROME_FRAME)) {
257 installer::AddDeleteOldIELowRightsPolicyWorkItems(*installer_state,
266 const Products& products = installer_state->products();
267 HKEY reg_root = installer_state->root_key();
301 const InstallerState& installer_state,
312 if (!installer_state.is_multi_install())
316 const bool is_system_install = installer_state.system_install();
318 installer_state.multi_package_binaries_distribution();
326 const Products& products = installer_state.products();
361 installer_state.WriteInstallerResult(
377 // removed from |installer_state|'s list of products (thereby preserving
384 InstallerState* installer_state,
386 const Products& products = installer_state->products();
389 const bool system_level = installer_state->system_install();
391 if (installer_state->is_multi_install()) {
393 installer_state->FindProduct(BrowserDistribution::CHROME_BROWSER);
395 installer_state->FindProduct(BrowserDistribution::CHROME_APP_HOST);
397 installer_state->FindProduct(BrowserDistribution::CHROME_BINARIES);
399 installer_state->FindProduct(BrowserDistribution::CHROME_FRAME);
435 binaries = installer_state->AddProduct(&binaries_to_add);
452 installer_state->RemoveProduct(chrome_frame);
455 chrome_frame = installer_state->AddProductFromState(
475 chrome = installer_state->AddProduct(&multi_chrome);
483 installer_state->WriteInstallerResult(
494 installer_state->WriteInstallerResult(*status,
511 installer_state->WriteInstallerResult(*status,
526 InstallerState* installer_state,
528 if (installer_state->FindProduct(BrowserDistribution::CHROME_APP_HOST)) {
529 if (!installer_state->is_multi_install()) {
533 installer_state->WriteInstallerResult(*status, 0, NULL);
537 if (installer_state->system_install()) {
541 installer_state->WriteInstallerResult(*status, 0, NULL);
551 // specifically, the |installer_state| object.
559 InstallerState* installer_state,
561 if (!CheckAppHostPreconditions(original_state, installer_state, status)) {
568 AddExistingMultiInstalls(original_state, installer_state);
570 if (!CheckMultiInstallConditions(original_state, installer_state, status)) {
575 const Products& products = installer_state->products();
581 installer_state->WriteInstallerResult(*status,
586 if (!installer_state->system_install()) {
625 installer_state->WriteInstallerResult(*status,
634 installer_state->WriteInstallerResult(*status, 0, NULL);
641 installer_state->WriteInstallerResult(
651 if (installer_state->ensure_google_update_present()) {
656 installer_state->WriteInstallerResult(*status, 0, NULL);
668 const InstallerState& installer_state,
673 if (!temp_path->Initialize(installer_state.target_path().DirName(),
694 InstallerState* installer_state) {
695 DCHECK(installer_state);
696 const bool system_install = installer_state->system_install();
700 installer_state->UpdateStage(installer::PRECONDITIONS);
703 BrowserDistribution::GetSpecificDistribution(installer_state->state_type())->
705 if (CheckPreInstallConditions(original_state, installer_state,
707 VLOG(1) << "Installing to " << installer_state->target_path().value();
709 original_state, cmd_line, prefs, *installer_state, &archive_type,
735 const Products& products = installer_state->products();
742 installer_state->UpdateStage(installer::NO_STAGE);
748 const InstallerState& installer_state,
754 original_state.GetProductState(installer_state.system_install(),
766 original_state, installer_state, cmd_line.GetProgram(), product,
772 const InstallerState& installer_state,
774 const Products& products = installer_state.products();
786 installer_state.FindProduct(BrowserDistribution::CHROME_BROWSER);
795 !installer_state.system_install()) {
814 if (installer_state.FindProduct(BrowserDistribution::CHROME_BINARIES)) {
829 prod_status = UninstallProduct(original_state, installer_state,
836 original_state, installer_state, cmd_line, &install_status);
847 google_update::UninstallGoogleUpdate(installer_state.system_install());
913 const InstallerState& installer_state,
968 installer_state, chrome_exe.DirName(), Version(), chrome,
991 InstallerState* installer_state) {
992 const bool system_level = installer_state->system_install();
1001 InstallerState install_gcf(installer_state->level());
1039 InstallerState* installer_state,
1080 installer_state->WriteInstallerResult(
1084 installer_state->UpdateStage(installer::NO_STAGE);
1106 installer_state->FindProduct(BrowserDistribution::CHROME_BROWSER);
1108 if (chrome_install && installer_state->system_install()) {
1111 installer::HandleActiveSetupForBrowser(installer_state->target_path(),
1116 << ", system_install:" << installer_state->system_install();
1121 original_state, *installer_state, cmd_line);
1126 installer_state->FindProduct(BrowserDistribution::CHROME_BROWSER);
1174 *exit_code = RenameChromeExecutables(original_state, installer_state);
1189 installer_state->FindProduct(BrowserDistribution::CHROME_BROWSER);
1192 installer::DeleteChromeRegistrationKeys(*installer_state,
1198 installer_state->FindProduct(BrowserDistribution::CHROME_BROWSER);
1201 installer::HandleOsUpgradeForBrowser(*installer_state,
1209 *exit_code = installer::IsEULAAccepted(installer_state->system_install());
1223 const Products& products = installer_state->products();
1229 installer_state->target_path());
1233 const Products& products = installer_state->products();
1254 installer::ChromeFrameReadyModeOptIn(original_state, *installer_state));
1259 *installer_state));
1264 *installer_state));
1267 installer_state);
1290 *exit_code = MigrateChromeFrame(original_state, installer_state);
1408 const InstallerState& installer_state,
1413 const bool system_install = installer_state.system_install();
1425 if (!CreateTemporaryAndUnpackDirectories(installer_state, &temp_path,
1427 installer_state.WriteInstallerResult(installer::TEMP_DIR_FAILED,
1440 CreateChromeArchiveHelper(cmd_line, installer_state, unpack_path));
1445 installer_state,
1469 installer_state.WriteInstallerResult(
1480 installer_state.WriteInstallerResult(
1495 installer_state.WriteInstallerResult(install_status,
1501 if (installer_state.operation() == InstallerState::MULTI_INSTALL) {
1511 installer_state.UpdateStage(installer::DEFERRING_TO_HIGHER_VERSION);
1512 if (DeferToExistingInstall(setup_exe, cmd_line, installer_state,
1524 const Products& products = installer_state.products();
1565 installer_state.WriteInstallerResult(install_status, message_id, NULL);
1570 CheckGroupPolicySettings(original_state, installer_state,
1578 if (!system_install && installer_state.ensure_google_update_present()) {
1583 installer_state.WriteInstallerResult(install_status, 0, NULL);
1592 original_state, installer_state, cmd_line.GetProgram(),
1600 if (installer_state.FindProduct(BrowserDistribution::CHROME_FRAME)) {
1606 if (installer_state.target_path().empty()) {
1612 chrome_exe = installer_state.target_path()
1619 installer_state.UpdateStage(installer::FINISHING);
1625 installer_state.FindProduct(BrowserDistribution::CHROME_BROWSER) :
1641 installer_state.WriteInstallerResult(install_status, install_msg_base,
1653 chrome_install->LaunchChrome(installer_state.target_path());
1657 const Product* chrome = installer_state.FindProduct(
1690 setup_path = installer_state.GetInstallerDirectory(*installer_version)
1693 const Products& products = installer_state.products();
1734 InstallerState installer_state;
1735 installer_state.Initialize(cmd_line, prefs, original_state);
1742 installer_state.WriteInstallerResult(
1750 installer_state.WriteInstallerResult(
1772 original_state, cmd_line, &installer_state, &exit_code)) {
1795 installer_state.WriteInstallerResult(installer::INSUFFICIENT_RIGHTS,
1805 UninstallProducts(original_state, installer_state, cmd_line);
1809 InstallProducts(original_state, cmd_line, prefs, &installer_state);
1822 installer_state.FindProduct(BrowserDistribution::CHROME_FRAME);
1831 const Products& products = installer_state.products();
1852 if (!(installer_state.is_msi() && is_uninstall))