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 defines the methods useful for uninstalling Chrome. | 5 // This file defines the methods useful for uninstalling Chrome. |
6 | 6 |
7 #include "chrome/installer/setup/uninstall.h" | 7 #include "chrome/installer/setup/uninstall.h" |
8 | 8 |
9 #include <windows.h> | 9 #include <windows.h> |
10 | 10 |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
347 LOG(WARNING) << "Failed to delete Desktop shortcuts."; | 347 LOG(WARNING) << "Failed to delete Desktop shortcuts."; |
348 } | 348 } |
349 | 349 |
350 VLOG(1) << "Deleting Quick Launch shortcuts."; | 350 VLOG(1) << "Deleting Quick Launch shortcuts."; |
351 if (!ShellUtil::RemoveShortcuts(ShellUtil::SHORTCUT_LOCATION_QUICK_LAUNCH, | 351 if (!ShellUtil::RemoveShortcuts(ShellUtil::SHORTCUT_LOCATION_QUICK_LAUNCH, |
352 dist, install_level, target_exe)) { | 352 dist, install_level, target_exe)) { |
353 LOG(WARNING) << "Failed to delete Quick Launch shortcuts."; | 353 LOG(WARNING) << "Failed to delete Quick Launch shortcuts."; |
354 } | 354 } |
355 | 355 |
356 VLOG(1) << "Deleting Start Menu shortcuts."; | 356 VLOG(1) << "Deleting Start Menu shortcuts."; |
357 if (!ShellUtil::RemoveShortcuts(ShellUtil::SHORTCUT_LOCATION_START_MENU, dist, | 357 if (!ShellUtil::RemoveShortcuts( |
358 install_level, target_exe)) { | 358 ShellUtil::SHORTCUT_LOCATION_START_MENU_CHROME_DIR, dist, install_level, |
359 target_exe)) { | |
359 LOG(WARNING) << "Failed to delete Start Menu shortcuts."; | 360 LOG(WARNING) << "Failed to delete Start Menu shortcuts."; |
360 } | 361 } |
361 | 362 |
gab
2013/08/28 19:52:27
Also want to add an extra block here to remove Chr
calamity
2013/10/02 01:08:05
Done.
| |
362 // Unpin all pinned-to-taskbar shortcuts that point to |chrome_exe|. | 363 // Unpin all pinned-to-taskbar shortcuts that point to |chrome_exe|. |
363 if (!ShellUtil::RemoveShortcuts(ShellUtil::SHORTCUT_LOCATION_TASKBAR_PINS, | 364 if (!ShellUtil::RemoveShortcuts(ShellUtil::SHORTCUT_LOCATION_TASKBAR_PINS, |
364 dist, ShellUtil::CURRENT_USER, target_exe)) { | 365 dist, ShellUtil::CURRENT_USER, target_exe)) { |
365 LOG(WARNING) << "Failed to unpin taskbar shortcuts at user-level."; | 366 LOG(WARNING) << "Failed to unpin taskbar shortcuts at user-level."; |
366 } | 367 } |
367 | 368 |
368 // Delete the folder of secondary tiles from the start screen for |dist|. | 369 // Delete the folder of secondary tiles from the start screen for |dist|. |
369 if (!ShellUtil::RemoveShortcuts(ShellUtil::SHORTCUT_LOCATION_APP_SHORTCUTS, | 370 if (!ShellUtil::RemoveShortcuts(ShellUtil::SHORTCUT_LOCATION_APP_SHORTCUTS, |
370 dist, install_level, target_exe)) { | 371 dist, install_level, target_exe)) { |
371 LOG(WARNING) << "Failed to delete start-screen shortcuts."; | 372 LOG(WARNING) << "Failed to delete start-screen shortcuts."; |
(...skipping 1055 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1427 // deletion unconditionally. If they are not empty, the session manager | 1428 // deletion unconditionally. If they are not empty, the session manager |
1428 // will not delete them on reboot. | 1429 // will not delete them on reboot. |
1429 ScheduleParentAndGrandparentForDeletion(target_path); | 1430 ScheduleParentAndGrandparentForDeletion(target_path); |
1430 } else if (DeleteApplicationProductAndVendorDirectories(target_path) == | 1431 } else if (DeleteApplicationProductAndVendorDirectories(target_path) == |
1431 installer::DELETE_FAILED) { | 1432 installer::DELETE_FAILED) { |
1432 *uninstall_status = installer::UNINSTALL_FAILED; | 1433 *uninstall_status = installer::UNINSTALL_FAILED; |
1433 } | 1434 } |
1434 } | 1435 } |
1435 | 1436 |
1436 } // namespace installer | 1437 } // namespace installer |
OLD | NEW |