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

Issue 11733007: Duplicate setup.exe into an identical executable and point Active Setup to that executable instead. (Closed)

Created:
7 years, 11 months ago by gab
Modified:
7 years, 11 months ago
CC:
chromium-reviews, grt+watch_chromium.org
Visibility:
Public.

Description

Duplicate setup.exe into an identical executable and point Active Setup to that executable instead. Active Setup is a Windows "Run-once-for-each-user-at-next-login" mechanism which we use to install per-user shortcuts on system-level installs. It currently points to setup.exe --configure-user-settings --... Windows' clever heuristics detect that this is an installer solely based on the process name and tries to elevate (this is mitigated on Vista since we set requestedExecutionLevel="asInvoker" in setup's manifest; on XP however this results in a blocking "Install Program as Other User" dialog at log in...). BUG=166473 TEST= On Windows XP: 0) Have User A (admin) and User B (non-admin, logged out) 1) Install system-level Chrome from User A 2) Log in to User B 3) See that the per-user Quick Launch shortcut has been installed (and that you weren't prompted by the "Install Program as Other User" dialog). More Active Setup testing can be done as per the TEST block on https://codereview.chromium.org/11465025/. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176101

Patch Set 1 #

Total comments: 4

Patch Set 2 : chromesu.exe #

Total comments: 5

Patch Set 3 : RequiresActiveSetup() and move out of AddActiveSetupWorkItems #

Total comments: 6

Patch Set 4 : add to InstallerState #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -2 lines) Patch
M chrome/installer/setup/install_worker.cc View 1 2 3 3 chunks +13 lines, -2 lines 0 comments Download
M chrome/installer/util/installer_state.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/installer/util/installer_state.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/installer/util/util_constants.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/util/util_constants.cc View 1 2 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
gab
Sirs, can you both take a look? Thanks! Gab
7 years, 11 months ago (2013-01-08 21:36:26 UTC) #1
grt (UTC plus 2)
https://codereview.chromium.org/11733007/diff/1/chrome/installer/setup/install_worker.cc File chrome/installer/setup/install_worker.cc (right): https://codereview.chromium.org/11733007/diff/1/chrome/installer/setup/install_worker.cc#newcode1412 chrome/installer/setup/install_worker.cc:1412: list->AddCopyTreeWorkItem(setup_path.value(), active_setup_exe.value(), AddActiveSetupWorkItems is called once for each product, ...
7 years, 11 months ago (2013-01-09 14:13:15 UTC) #2
gab
See replies below. https://codereview.chromium.org/11733007/diff/1/chrome/installer/setup/install_worker.cc File chrome/installer/setup/install_worker.cc (right): https://codereview.chromium.org/11733007/diff/1/chrome/installer/setup/install_worker.cc#newcode1412 chrome/installer/setup/install_worker.cc:1412: list->AddCopyTreeWorkItem(setup_path.value(), active_setup_exe.value(), On 2013/01/09 14:13:15, grt ...
7 years, 11 months ago (2013-01-09 15:39:42 UTC) #3
robertshield
https://codereview.chromium.org/11733007/diff/7001/chrome/installer/setup/install_worker.h File chrome/installer/setup/install_worker.h (right): https://codereview.chromium.org/11733007/diff/7001/chrome/installer/setup/install_worker.h#newcode158 chrome/installer/setup/install_worker.h:158: const FilePath& temp_path, please document |temp_path| and |setup_path| https://codereview.chromium.org/11733007/diff/7001/chrome/installer/util/util_constants.cc ...
7 years, 11 months ago (2013-01-09 15:51:59 UTC) #4
gab
PTAL. Thanks! Gab https://codereview.chromium.org/11733007/diff/7001/chrome/installer/setup/install_worker.h File chrome/installer/setup/install_worker.h (right): https://codereview.chromium.org/11733007/diff/7001/chrome/installer/setup/install_worker.h#newcode158 chrome/installer/setup/install_worker.h:158: const FilePath& temp_path, On 2013/01/09 15:51:59, ...
7 years, 11 months ago (2013-01-09 18:47:52 UTC) #5
robertshield
lg, one more nit https://codereview.chromium.org/11733007/diff/7001/chrome/installer/util/util_constants.cc File chrome/installer/util/util_constants.cc (right): https://codereview.chromium.org/11733007/diff/7001/chrome/installer/util/util_constants.cc#newcode205 chrome/installer/util/util_constants.cc:205: const wchar_t kActiveSetupExe[] = L"chromesu.exe"; ...
7 years, 11 months ago (2013-01-09 18:53:14 UTC) #6
gab
https://codereview.chromium.org/11733007/diff/10001/chrome/installer/setup/install_worker.cc File chrome/installer/setup/install_worker.cc (right): https://codereview.chromium.org/11733007/diff/10001/chrome/installer/setup/install_worker.cc#newcode1417 chrome/installer/setup/install_worker.cc:1417: DCHECK(RequiresActiveSetup(installer_state)); On 2013/01/09 18:53:14, robertshield wrote: > Doesn't this ...
7 years, 11 months ago (2013-01-09 18:56:35 UTC) #7
grt (UTC plus 2)
https://codereview.chromium.org/11733007/diff/10001/chrome/installer/setup/install_worker.cc File chrome/installer/setup/install_worker.cc (right): https://codereview.chromium.org/11733007/diff/10001/chrome/installer/setup/install_worker.cc#newcode113 chrome/installer/setup/install_worker.cc:113: bool RequiresActiveSetup(const InstallerState& installer_state) { did you consider making ...
7 years, 11 months ago (2013-01-09 18:57:45 UTC) #8
gab
Done, thanks! https://codereview.chromium.org/11733007/diff/10001/chrome/installer/setup/install_worker.cc File chrome/installer/setup/install_worker.cc (right): https://codereview.chromium.org/11733007/diff/10001/chrome/installer/setup/install_worker.cc#newcode113 chrome/installer/setup/install_worker.cc:113: bool RequiresActiveSetup(const InstallerState& installer_state) { On 2013/01/09 ...
7 years, 11 months ago (2013-01-09 19:35:10 UTC) #9
grt (UTC plus 2)
lgtm!
7 years, 11 months ago (2013-01-10 02:55:42 UTC) #10
robertshield
lgtm
7 years, 11 months ago (2013-01-10 03:12:17 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gab@chromium.org/11733007/12004
7 years, 11 months ago (2013-01-10 13:11:43 UTC) #12
commit-bot: I haz the power
7 years, 11 months ago (2013-01-10 16:46:01 UTC) #13
Message was sent while issue was closed.
Change committed as 176101

Powered by Google App Engine
This is Rietveld 408576698