summaryrefslogtreecommitdiffstats
path: root/chrome/installer/setup/uninstall.cc
diff options
context:
space:
mode:
authorrahulk@google.com <rahulk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-11 16:54:26 +0000
committerrahulk@google.com <rahulk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-11 16:54:26 +0000
commit78b1722653b794a0a68f0cc473fc1855b95517ae (patch)
treed56b107781e612599a0cf04b1745b988645bff9e /chrome/installer/setup/uninstall.cc
parent4d0cd7ce8c91a2c0157ecf9e0a5153712ff43d10 (diff)
downloadchromium_src-78b1722653b794a0a68f0cc473fc1855b95517ae.zip
chromium_src-78b1722653b794a0a68f0cc473fc1855b95517ae.tar.gz
chromium_src-78b1722653b794a0a68f0cc473fc1855b95517ae.tar.bz2
Cleanup setup.exe:
- Remove various migration code for shortcuts (now 149.13 has been pushed to everybody) - Cleanup error messages that will show up in log file with the default logging level - Remove junk error messages that haven't been helpful at all (delete registry key/valye errors) git-svn-id: svn://svn.chromium.org/chrome/trunk/src@655 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/setup/uninstall.cc')
-rw-r--r--chrome/installer/setup/uninstall.cc13
1 files changed, 5 insertions, 8 deletions
diff --git a/chrome/installer/setup/uninstall.cc b/chrome/installer/setup/uninstall.cc
index d742e62..0be9b04 100644
--- a/chrome/installer/setup/uninstall.cc
+++ b/chrome/installer/setup/uninstall.cc
@@ -71,7 +71,7 @@ void DeleteChromeShortcut(bool system_uninstall) {
PathService::Get(base::DIR_START_MENU, &shortcut_path);
}
if (shortcut_path.empty()) {
- LOG(ERROR) << "failed to get location for shortcut";
+ LOG(ERROR) << "Failed to get location for shortcut.";
} else {
file_util::AppendToPath(&shortcut_path,
installer_util::GetLocalizedString(IDS_PRODUCT_NAME_BASE));
@@ -87,8 +87,7 @@ void DeleteChromeShortcut(bool system_uninstall) {
bool DeleteRegistryKey(RegKey& key, const std::wstring& key_path) {
LOG(INFO) << "Deleting registry key " << key_path;
if (!key.DeleteKey(key_path.c_str())) {
- LOG(ERROR) << "Failed to delete registry key: " << key_path
- << " and the error is " << InstallUtil::FormatLastWin32Error();
+ LOG(ERROR) << "Failed to delete registry key: " << key_path;
return false;
}
return true;
@@ -102,8 +101,7 @@ bool DeleteRegistryValue(HKEY reg_root, const std::wstring& key_path,
RegKey key(reg_root, key_path.c_str(), KEY_ALL_ACCESS);
LOG(INFO) << "Deleting registry value " << value_name;
if (!key.DeleteValue(value_name.c_str())) {
- LOG(ERROR) << "Failed to delete registry value: " << value_name
- << " and the error is " << InstallUtil::FormatLastWin32Error();
+ LOG(ERROR) << "Failed to delete registry value: " << value_name;
return false;
}
return true;
@@ -216,8 +214,7 @@ void UninstallGears() {
unsigned int ret = MsiConfigureProduct(product, INSTALLLEVEL_MAXIMUM,
INSTALLSTATE_ABSENT);
if (ret != ERROR_SUCCESS)
- LOG(ERROR) << "Failed to uninstall Gears " << product
- << " because of error " << ret;
+ LOG(ERROR) << "Failed to uninstall Gears " << product << ": " << ret;
}
}
@@ -283,7 +280,7 @@ installer_util::InstallStatus installer_setup::UninstallChrome(
// to a temp location.
std::wstring install_path(installer::GetChromeInstallPath(system_uninstall));
if (install_path.empty()) {
- LOG(ERROR) << "Couldn't get installation destination path";
+ LOG(ERROR) << "Could not get installation destination path.";
// Nothing else we could do for uninstall, so we return.
return installer_util::UNINSTALL_FAILED;
} else {