summaryrefslogtreecommitdiffstats
path: root/chrome/installer/setup/setup.cc
diff options
context:
space:
mode:
authorkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-08 17:15:52 +0000
committerkuchhal@chromium.org <kuchhal@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-08 17:15:52 +0000
commit4b636fa73856bc6b58abc850e1d1095d6592581d (patch)
tree9f8c482963ef8bd41814c1e054804e3536ea2c95 /chrome/installer/setup/setup.cc
parentfa08c45a2b823aff04a34f720aff876288e0c9dd (diff)
downloadchromium_src-4b636fa73856bc6b58abc850e1d1095d6592581d.zip
chromium_src-4b636fa73856bc6b58abc850e1d1095d6592581d.tar.gz
chromium_src-4b636fa73856bc6b58abc850e1d1095d6592581d.tar.bz2
Fix some problems with machine level install.
BUG=2380 Review URL: http://codereview.chromium.org/6402 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3015 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/setup/setup.cc')
-rw-r--r--chrome/installer/setup/setup.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/installer/setup/setup.cc b/chrome/installer/setup/setup.cc
index 2ac4dfa..e3edf19 100644
--- a/chrome/installer/setup/setup.cc
+++ b/chrome/installer/setup/setup.cc
@@ -130,6 +130,11 @@ bool CreateOrUpdateChromeShortcuts(const std::wstring& exe_path,
file_util::GetFilenameFromPath(exe_path));
std::wstring arguments(L" --");
arguments.append(installer_util::switches::kUninstall);
+ if (system_install) {
+ arguments.append(L" --");
+ arguments.append(installer_util::switches::kSystemInstall);
+ }
+
LOG(INFO) << "Creating/updating uninstall link at " << uninstall_link;
std::wstring target_folder = file_util::GetDirectoryFromPath(install_path);
ret2 = file_util::CreateShortcutLink(setup_exe.c_str(),