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 declares Chrome uninstall related functions. | 5 // This file declares Chrome uninstall related functions. |
6 | 6 |
7 #ifndef CHROME_INSTALLER_SETUP_UNINSTALL_H_ | 7 #ifndef CHROME_INSTALLER_SETUP_UNINSTALL_H_ |
8 #define CHROME_INSTALLER_SETUP_UNINSTALL_H_ | 8 #define CHROME_INSTALLER_SETUP_UNINSTALL_H_ |
9 | 9 |
10 #include <shlobj.h> | 10 #include <shlobj.h> |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 // was used to launch current uninstaller. | 53 // was used to launch current uninstaller. |
54 installer::InstallStatus UninstallProduct( | 54 installer::InstallStatus UninstallProduct( |
55 const InstallationState& original_state, | 55 const InstallationState& original_state, |
56 const InstallerState& installer_state, | 56 const InstallerState& installer_state, |
57 const FilePath& setup_path, | 57 const FilePath& setup_path, |
58 const Product& dist, | 58 const Product& dist, |
59 bool remove_all, | 59 bool remove_all, |
60 bool force_uninstall, | 60 bool force_uninstall, |
61 const CommandLine& cmd_line); | 61 const CommandLine& cmd_line); |
62 | 62 |
| 63 // Cleans up the installation directory after all uninstall operations have |
| 64 // completed. Depending on what products are remaining, setup.exe and the |
| 65 // installer archive may be deleted. Empty directories will be pruned (or |
| 66 // scheduled for pruning after reboot, if necessary). |
| 67 // |
| 68 // original_state: The installation state of all products on the system. |
| 69 // installer_state: State associated with this operation. |
| 70 // cmd_line: CommandLine that contains information about the command that |
| 71 // was used to launch current uninstaller. |
| 72 // uninstall_status: the uninstall status so far (may change during invocation). |
| 73 void CleanUpInstallationDirectoryAfterUninstall( |
| 74 const InstallationState& original_state, |
| 75 const InstallerState& installer_state, |
| 76 const CommandLine& cmd_line, |
| 77 installer::InstallStatus* uninstall_status); |
| 78 |
63 } // namespace installer | 79 } // namespace installer |
64 | 80 |
65 #endif // CHROME_INSTALLER_SETUP_UNINSTALL_H_ | 81 #endif // CHROME_INSTALLER_SETUP_UNINSTALL_H_ |
OLD | NEW |