| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 // | 4 // |
| 5 // This file contains the specification of setup main functions. | 5 // This file contains the specification of setup main functions. |
| 6 | 6 |
| 7 #ifndef CHROME_INSTALLER_SETUP_INSTALL_H_ | 7 #ifndef CHROME_INSTALLER_SETUP_INSTALL_H_ |
| 8 #define CHROME_INSTALLER_SETUP_INSTALL_H_ | 8 #define CHROME_INSTALLER_SETUP_INSTALL_H_ |
| 9 #pragma once | 9 #pragma once |
| 10 | 10 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 // Note: since caller unpacks Chrome to install_temp_path\source, the caller | 44 // Note: since caller unpacks Chrome to install_temp_path\source, the caller |
| 45 // is responsible for cleaning up install_temp_path. | 45 // is responsible for cleaning up install_temp_path. |
| 46 InstallStatus InstallOrUpdateProduct( | 46 InstallStatus InstallOrUpdateProduct( |
| 47 const InstallationState& original_state, | 47 const InstallationState& original_state, |
| 48 const InstallerState& installer_state, | 48 const InstallerState& installer_state, |
| 49 const FilePath& setup_path, const FilePath& archive_path, | 49 const FilePath& setup_path, const FilePath& archive_path, |
| 50 const FilePath& install_temp_path, const FilePath& prefs_path, | 50 const FilePath& install_temp_path, const FilePath& prefs_path, |
| 51 const installer::MasterPreferences& prefs, const Version& new_version, | 51 const installer::MasterPreferences& prefs, const Version& new_version, |
| 52 const Package& package); | 52 const Package& package); |
| 53 | 53 |
| 54 // Appends registration or unregistration work items to |work_item_list| for the | |
| 55 // COM DLLs whose file names are given in |dll_files| and which reside in the | |
| 56 // path |dll_folder|. | |
| 57 // |system_level| specifies whether to call the system or user level DLL | |
| 58 // registration entry points. | |
| 59 // |do_register| says whether to register or unregister. | |
| 60 // |may_fail| states whether this is best effort or not. If |may_fail| is true | |
| 61 // then |work_item_list| will still succeed if the registration fails and | |
| 62 // no registration rollback will be performed. | |
| 63 void AddRegisterComDllWorkItems(const FilePath& dll_folder, | |
| 64 const std::vector<FilePath>& dll_files, | |
| 65 bool system_level, | |
| 66 bool do_register, | |
| 67 bool ignore_failures, | |
| 68 WorkItemList* work_item_list); | |
| 69 | 54 |
| 70 void AddSetMsiMarkerWorkItem(const Product& product, | |
| 71 bool set, | |
| 72 WorkItemList* work_item_list); | |
| 73 | |
| 74 // This method adds work items to create (or update) Chrome uninstall entry in | |
| 75 // either the Control Panel->Add/Remove Programs list or in the Omaha client | |
| 76 // state key if running under an MSI installer. | |
| 77 void AddUninstallShortcutWorkItems(const FilePath& setup_path, | |
| 78 const Version& new_version, | |
| 79 WorkItemList* install_list, | |
| 80 const Product& product); | |
| 81 | |
| 82 // Called for either installation or uninstallation. This method updates the | |
| 83 // registry according to Chrome Frame specific options for the current | |
| 84 // installation. This includes handling of the ready-mode option. | |
| 85 void AddChromeFrameWorkItems(bool install, const FilePath& setup_path, | |
| 86 const Version& new_version, const Product& product, | |
| 87 WorkItemList* list); | |
| 88 | 55 |
| 89 } // namespace installer | 56 } // namespace installer |
| 90 | 57 |
| 91 #endif // CHROME_INSTALLER_SETUP_INSTALL_H_ | 58 #endif // CHROME_INSTALLER_SETUP_INSTALL_H_ |
| OLD | NEW |