Index: chrome/installer/setup/install.cc |
=================================================================== |
--- chrome/installer/setup/install.cc (revision 2671) |
+++ chrome/installer/setup/install.cc (working copy) |
@@ -50,6 +50,10 @@ |
file_util::GetFilenameFromPath(exe_path)); |
uninstall_cmd.append(L"\" --"); |
uninstall_cmd.append(installer_util::switches::kUninstall); |
+ if (reg_root == HKEY_LOCAL_MACHINE) { |
+ uninstall_cmd.append(L" --"); |
+ uninstall_cmd.append(installer_util::switches::kSystemInstall); |
+ } |
// Create DisplayName, UninstallString and InstallLocation keys |
BrowserDistribution* dist = BrowserDistribution::GetDistribution(); |