OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 declarations of the installer functions that build | 5 // This file contains the declarations of the installer functions that build |
6 // the WorkItemList used to install the application. | 6 // the WorkItemList used to install the application. |
7 | 7 |
8 #ifndef CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_ | 8 #ifndef CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_ |
9 #define CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_ | 9 #define CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_ |
10 | 10 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 // do a few post install tasks: | 56 // do a few post install tasks: |
57 // - Handle the case of in-use-update by updating "opv" (old version) key or | 57 // - Handle the case of in-use-update by updating "opv" (old version) key or |
58 // deleting it if not required. | 58 // deleting it if not required. |
59 // - Register any new dlls and unregister old dlls. | 59 // - Register any new dlls and unregister old dlls. |
60 // - If this is an MSI install, ensures that the MSI marker is set, and sets | 60 // - If this is an MSI install, ensures that the MSI marker is set, and sets |
61 // it if not. | 61 // it if not. |
62 // If these operations are successful, the function returns true, otherwise | 62 // If these operations are successful, the function returns true, otherwise |
63 // false. | 63 // false. |
64 bool AppendPostInstallTasks(const InstallerState& installer_state, | 64 bool AppendPostInstallTasks(const InstallerState& installer_state, |
65 const FilePath& setup_path, | 65 const FilePath& setup_path, |
| 66 const FilePath& new_chrome_exe, |
66 const Version* current_version, | 67 const Version* current_version, |
67 const Version& new_version, | 68 const Version& new_version, |
68 const FilePath& temp_path, | 69 const FilePath& temp_path, |
69 WorkItemList* post_install_task_list); | 70 WorkItemList* post_install_task_list); |
70 | 71 |
71 // Builds the complete WorkItemList used to build the set of installation steps | 72 // Builds the complete WorkItemList used to build the set of installation steps |
72 // needed to lay down one or more installed products. | 73 // needed to lay down one or more installed products. |
73 // | 74 // |
74 // setup_path: Path to the executable (setup.exe) as it will be copied | 75 // setup_path: Path to the executable (setup.exe) as it will be copied |
75 // to Chrome install folder after install is complete | 76 // to Chrome install folder after install is complete |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 // Refreshes the elevation policy on platforms where it is supported. | 175 // Refreshes the elevation policy on platforms where it is supported. |
175 void RefreshElevationPolicy(); | 176 void RefreshElevationPolicy(); |
176 | 177 |
177 // Add work items to add or remove the "quick-enable-cf" to the multi-installer | 178 // Add work items to add or remove the "quick-enable-cf" to the multi-installer |
178 // binaries' version key on the basis of the current operation (represented in | 179 // binaries' version key on the basis of the current operation (represented in |
179 // |installer_state|) and the pre-existing machine configuration (represented in | 180 // |installer_state|) and the pre-existing machine configuration (represented in |
180 // |machine_state|). |setup_path| (the path to the executable currently being | 181 // |machine_state|). |setup_path| (the path to the executable currently being |
181 // run) and |new_version| (the version of the product(s) currently being | 182 // run) and |new_version| (the version of the product(s) currently being |
182 // installed) are required when processing product installation; they are unused | 183 // installed) are required when processing product installation; they are unused |
183 // (and may therefore be NULL) when uninstalling. | 184 // (and may therefore be NULL) when uninstalling. |
184 void AddQuickEnableChromeFrameWorkItems(const InstallerState& installer_state, | 185 void AddQuickEnableWorkItems(const InstallerState& installer_state, |
185 const InstallationState& machine_state, | 186 const InstallationState& machine_state, |
186 const FilePath* setup_path, | 187 const FilePath* setup_path, |
187 const Version* new_version, | 188 const Version* new_version, |
188 WorkItemList* work_item_list); | 189 WorkItemList* work_item_list); |
189 | |
190 // Add work items to add or remove the "quick-enable-application-host" command | |
191 // to the multi-installer binaries' version key on the basis of the current | |
192 // operation (represented in |installer_state|) and the pre-existing machine | |
193 // configuration (represented in |machine_state|). |setup_path| (the path to | |
194 // the executable currently being run) and |new_version| (the version of the | |
195 // product(s) currently being installed) are required when processing product | |
196 // installation; they are unused (and may therefore be NULL) when uninstalling. | |
197 void AddQuickEnableApplicationHostWorkItems( | |
198 const InstallerState& installer_state, | |
199 const InstallationState& machine_state, | |
200 const FilePath* setup_path, | |
201 const Version* new_version, | |
202 WorkItemList* work_item_list); | |
203 | 190 |
204 } // namespace installer | 191 } // namespace installer |
205 | 192 |
206 #endif // CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_ | 193 #endif // CHROME_INSTALLER_SETUP_INSTALL_WORKER_H_ |
OLD | NEW |