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 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
589 command_line, | 589 command_line, |
590 installed_version.get(), | 590 installed_version.get(), |
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(); |
| 600 |
| 601 #if defined(CHROME_FRAME_BUILD) |
| 602 if (install_status == installer_util::UNINSTALL_REQUIRES_REBOOT) { |
| 603 ShowRebootDialog(); |
| 604 } else if (parsed_command_line.HasSwitch( |
| 605 installer_util::switches::kUninstall)) { |
| 606 ::MessageBoxW(NULL, |
| 607 installer_util::GetLocalizedString( |
| 608 IDS_UNINSTALL_COMPLETE_BASE).c_str(), |
| 609 dist->GetApplicationName().c_str(), |
| 610 MB_OK); |
| 611 } |
| 612 #endif |
| 613 |
599 if (install_status == installer_util::UNINSTALL_REQUIRES_REBOOT) { | 614 if (install_status == installer_util::UNINSTALL_REQUIRES_REBOOT) { |
600 install_status = installer_util::UNINSTALL_SUCCESSFUL; | 615 install_status = installer_util::UNINSTALL_SUCCESSFUL; |
601 #if defined(CHROME_FRAME_BUILD) | |
602 ShowRebootDialog(); | |
603 #endif | |
604 } | 616 } |
605 | 617 |
606 CoUninitialize(); | 618 CoUninitialize(); |
607 | |
608 BrowserDistribution* dist = BrowserDistribution::GetDistribution(); | |
609 return dist->GetInstallReturnCode(install_status); | 619 return dist->GetInstallReturnCode(install_status); |
610 } | 620 } |
OLD | NEW |