Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3155)

Unified Diff: chrome/installer/mini_installer/mini_installer.cc

Issue 2267003: Use different product IO for SxS in mini installer.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/installer/mini_installer/chrome_frame_appid.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/mini_installer/mini_installer.cc
===================================================================
--- chrome/installer/mini_installer/mini_installer.cc (revision 48325)
+++ chrome/installer/mini_installer/mini_installer.cc (working copy)
@@ -150,10 +150,20 @@
void SetFullInstallerFlag(HKEY root_key) {
HKEY key;
wchar_t ap_registry_key[128];
+ const wchar_t* app_guid = google_update::kAppGuid;
+
+ int args_num;
+ wchar_t* cmd_line = ::GetCommandLine();
+ wchar_t** args = ::CommandLineToArgvW(cmd_line, &args_num);
+ for (int i = 1; i < args_num; ++i) {
+ if (0 == ::lstrcmpi(args[i], L"--chrome-sxs"))
+ app_guid = google_update::kSxSAppGuid;
+ }
+
if (!SafeStrCopy(ap_registry_key, _countof(ap_registry_key),
kApRegistryKeyBase) ||
!SafeStrCat(ap_registry_key, _countof(ap_registry_key),
- google_update::kAppGuid)) {
+ app_guid)) {
return;
}
if (::RegOpenKeyEx(root_key, ap_registry_key, NULL,
« no previous file with comments | « chrome/installer/mini_installer/chrome_frame_appid.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698