OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include <string> | 5 #include <string> |
6 #include <windows.h> | 6 #include <windows.h> |
7 #include <msi.h> | 7 #include <msi.h> |
8 #include <shellapi.h> | 8 #include <shellapi.h> |
9 #include <shlobj.h> | 9 #include <shlobj.h> |
10 | 10 |
(...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 system_install); | 591 system_install); |
592 // If --uninstall option is not specified, we assume it is install case. | 592 // If --uninstall option is not specified, we assume it is install case. |
593 } else { | 593 } else { |
594 install_status = InstallChrome(parsed_command_line, | 594 install_status = InstallChrome(parsed_command_line, |
595 installed_version.get(), | 595 installed_version.get(), |
596 prefs.get()); | 596 prefs.get()); |
597 } | 597 } |
598 | 598 |
599 BrowserDistribution* dist = BrowserDistribution::GetDistribution(); | 599 BrowserDistribution* dist = BrowserDistribution::GetDistribution(); |
600 | 600 |
601 #if defined(CHROME_FRAME_BUILD) | 601 if (InstallUtil::IsChromeFrameProcess()) { |
602 if (install_status == installer_util::UNINSTALL_REQUIRES_REBOOT) { | 602 if (install_status == installer_util::UNINSTALL_REQUIRES_REBOOT) { |
603 ShowRebootDialog(); | 603 ShowRebootDialog(); |
604 } else if (parsed_command_line.HasSwitch( | 604 } else if (parsed_command_line.HasSwitch( |
605 installer_util::switches::kUninstall)) { | 605 installer_util::switches::kUninstall)) { |
606 ::MessageBoxW(NULL, | 606 ::MessageBoxW(NULL, |
607 installer_util::GetLocalizedString( | 607 installer_util::GetLocalizedString( |
608 IDS_UNINSTALL_COMPLETE_BASE).c_str(), | 608 IDS_UNINSTALL_COMPLETE_BASE).c_str(), |
609 dist->GetApplicationName().c_str(), | 609 dist->GetApplicationName().c_str(), |
610 MB_OK); | 610 MB_OK); |
| 611 } |
611 } | 612 } |
612 #endif | |
613 | 613 |
614 if (install_status == installer_util::UNINSTALL_REQUIRES_REBOOT) { | 614 if (install_status == installer_util::UNINSTALL_REQUIRES_REBOOT) { |
615 install_status = installer_util::UNINSTALL_SUCCESSFUL; | 615 install_status = installer_util::UNINSTALL_SUCCESSFUL; |
616 } | 616 } |
617 | 617 |
618 CoUninitialize(); | 618 CoUninitialize(); |
619 return dist->GetInstallReturnCode(install_status); | 619 return dist->GetInstallReturnCode(install_status); |
620 } | 620 } |
OLD | NEW |