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

Issue 1271893003: Add options to write version number to registry. (Closed)

Created:
5 years, 4 months ago by bcwhite
Modified:
5 years, 3 months ago
CC:
chromium-reviews, grt+watch_chromium.org, wfh+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add options to write version number to registry. The MSI installer creates a DisplayVersion registry entry with an encoded version of Chrome's actual version. Since this is done _after_ the setup call completes, we can't simply set the value in the normal setup process. Instead, we launch a background process that waits a while (for msiexec to complete) and then writes the updated version. This is accomplished by having setup, upon successful completion, run itself in the background and then exit normally. --set-display-version-product="ABCD-EF-GH-IJKL" --set-display-version-value="A.B.C.D" --delay=30 BUG=67348 Committed: https://crrev.com/0d3e644a25802bdb3afa7fc09eff5aab456c5733 Cr-Commit-Position: refs/heads/master@{#348556} Committed: https://crrev.com/30198c1e69bc8c91e4e0853fa399702b8bddb302 Cr-Commit-Position: refs/heads/master@{#348732}

Patch Set 1 #

Patch Set 2 : extract registry overwrite to its own method #

Total comments: 16

Patch Set 3 : address review comments by robertshield #

Total comments: 2

Patch Set 4 : restore ReadValue call (HasValue check fails) #

Patch Set 5 : comment improvements #

Patch Set 6 : start subprocess to set DisplayVersion #

Total comments: 16

Patch Set 7 : addressed review comments #

Total comments: 14

Patch Set 8 : address review comments by grt #

Patch Set 9 : convert msi-product-guid to squid for registry lookup #

Patch Set 10 : reduce delay from 30s to 10s #

Patch Set 11 : change DisplayVersion in Uninstall, too #

Total comments: 18

Patch Set 12 : addressed review comments by grt #

Total comments: 8

Patch Set 13 : addressed more review comments #

Total comments: 2

Patch Set 14 : fix format to %ls #

Total comments: 2

Patch Set 15 : fix parameters for %ls #

Patch Set 16 : fix parethesis #

Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -10 lines) Patch
M chrome/installer/setup/setup_constants.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/installer/setup/setup_constants.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +15 lines, -0 lines 0 comments Download
M chrome/installer/setup/setup_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +119 lines, -10 lines 0 comments Download
M chrome/installer/setup/setup_util.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/installer/setup/setup_util.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/installer/setup/setup_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/installer/util/master_preferences_constants.h View 1 2 3 4 5 6 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/installer/util/master_preferences_constants.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 66 (18 generated)
bcwhite
Robert... This is only partially complete. Still missing is the code to actually start itself ...
5 years, 4 months ago (2015-08-03 21:43:16 UTC) #2
robertshield
Lg, a few comments below. While reading this, two other possible approaches came to mind: ...
5 years, 4 months ago (2015-08-08 04:32:39 UTC) #3
robertshield
https://codereview.chromium.org/1271893003/diff/20001/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://codereview.chromium.org/1271893003/diff/20001/chrome/installer/setup/setup_main.cc#newcode103 chrome/installer/setup/setup_main.cc:103: if ((result = key.ReadValue(kDisplayVersion, &existing)) != ERROR_SUCCESS) We should ...
5 years, 4 months ago (2015-08-08 04:33:31 UTC) #4
bcwhite
> 1) Use RegNotifyChangeKeyValue Can be sure it will change and will change only once? ...
5 years, 4 months ago (2015-08-13 16:25:58 UTC) #5
robertshield
On Thu, Aug 13, 2015 at 12:25 PM, <bcwhite@chromium.org> wrote: > 1) Use RegNotifyChangeKeyValue >> ...
5 years, 4 months ago (2015-08-13 17:19:12 UTC) #6
robertshield
lgtm https://codereview.chromium.org/1271893003/diff/40001/chrome/installer/util/util_constants.cc File chrome/installer/util/util_constants.cc (right): https://codereview.chromium.org/1271893003/diff/40001/chrome/installer/util/util_constants.cc#newcode36 chrome/installer/util/util_constants.cc:36: // only after some time has passed. *This ...
5 years, 4 months ago (2015-08-14 13:31:14 UTC) #7
bcwhite
Added code to fork sub-process and set registry entry, 30 second delay. PTAL I've tested ...
5 years, 4 months ago (2015-08-15 21:30:18 UTC) #8
robertshield
https://codereview.chromium.org/1271893003/diff/100001/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://codereview.chromium.org/1271893003/diff/100001/chrome/installer/setup/setup_main.cc#newcode135 chrome/installer/setup/setup_main.cc:135: base::string16 command_line; base::CommandLine provides convenience methods to do this ...
5 years, 4 months ago (2015-08-18 17:27:26 UTC) #9
grt (UTC plus 2)
https://codereview.chromium.org/1271893003/diff/100001/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://codereview.chromium.org/1271893003/diff/100001/chrome/installer/setup/setup_main.cc#newcode155 chrome/installer/setup/setup_main.cc:155: if (!::CreateProcess(setup_exe.AsUTF16Unsafe().c_str(), On 2015/08/18 17:27:26, robertshield wrote: > use ...
5 years, 4 months ago (2015-08-19 17:43:31 UTC) #11
robertshield
https://codereview.chromium.org/1271893003/diff/100001/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://codereview.chromium.org/1271893003/diff/100001/chrome/installer/setup/setup_main.cc#newcode155 chrome/installer/setup/setup_main.cc:155: if (!::CreateProcess(setup_exe.AsUTF16Unsafe().c_str(), On 2015/08/19 17:43:30, grt (no reviews 7.31-8.19) ...
5 years, 4 months ago (2015-08-19 17:57:07 UTC) #12
bcwhite
https://codereview.chromium.org/1271893003/diff/100001/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://codereview.chromium.org/1271893003/diff/100001/chrome/installer/setup/setup_main.cc#newcode135 chrome/installer/setup/setup_main.cc:135: base::string16 command_line; On 2015/08/18 17:27:26, robertshield wrote: > base::CommandLine ...
5 years, 3 months ago (2015-09-02 15:21:46 UTC) #13
grt (UTC plus 2)
https://codereview.chromium.org/1271893003/diff/100001/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://codereview.chromium.org/1271893003/diff/100001/chrome/installer/setup/setup_main.cc#newcode155 chrome/installer/setup/setup_main.cc:155: if (!::CreateProcess(setup_exe.AsUTF16Unsafe().c_str(), On 2015/09/02 15:21:45, bcwhite wrote: > On ...
5 years, 3 months ago (2015-09-02 20:43:56 UTC) #14
bcwhite
https://codereview.chromium.org/1271893003/diff/100001/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://codereview.chromium.org/1271893003/diff/100001/chrome/installer/setup/setup_main.cc#newcode155 chrome/installer/setup/setup_main.cc:155: if (!::CreateProcess(setup_exe.AsUTF16Unsafe().c_str(), On 2015/09/02 20:43:55, grt wrote: > On ...
5 years, 3 months ago (2015-09-09 18:20:23 UTC) #15
grt (UTC plus 2)
Robert: do you think this should use WMI to launch the sub-proc rather than just ...
5 years, 3 months ago (2015-09-10 15:56:30 UTC) #16
robertshield
On 2015/09/10 15:56:30, grt wrote: > Robert: do you think this should use WMI to ...
5 years, 3 months ago (2015-09-10 16:37:29 UTC) #17
bcwhite
> The documented behaviour of CREATE_BREAKAWAY_FROM_JOB should accomplish the > desired effect of getting out ...
5 years, 3 months ago (2015-09-11 02:54:35 UTC) #18
bcwhite
I've reduced the delay time from 30s to 10s. All my runs show that msiexec ...
5 years, 3 months ago (2015-09-11 13:57:22 UTC) #19
bcwhite
I think that covers it. Improvements to when the registry change runs can be done ...
5 years, 3 months ago (2015-09-11 15:14:10 UTC) #20
grt (UTC plus 2)
https://codereview.chromium.org/1271893003/diff/200001/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://codereview.chromium.org/1271893003/diff/200001/chrome/installer/setup/setup_main.cc#newcode83 chrome/installer/setup/setup_main.cc:83: const wchar_t kGoogleUpdatePipeName[] = L"\\\\.\\pipe\\GoogleCrashServices\\"; please move all of ...
5 years, 3 months ago (2015-09-11 18:14:26 UTC) #21
bcwhite
https://codereview.chromium.org/1271893003/diff/200001/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://codereview.chromium.org/1271893003/diff/200001/chrome/installer/setup/setup_main.cc#newcode83 chrome/installer/setup/setup_main.cc:83: const wchar_t kGoogleUpdatePipeName[] = L"\\\\.\\pipe\\GoogleCrashServices\\"; On 2015/09/11 18:14:26, grt ...
5 years, 3 months ago (2015-09-11 19:24:45 UTC) #22
grt (UTC plus 2)
https://codereview.chromium.org/1271893003/diff/200001/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://codereview.chromium.org/1271893003/diff/200001/chrome/installer/setup/setup_main.cc#newcode1671 chrome/installer/setup/setup_main.cc:1671: new_setup, base::ASCIIToUTF16(install_id), *installer_version); On 2015/09/11 19:24:44, bcwhite wrote: > ...
5 years, 3 months ago (2015-09-11 20:07:01 UTC) #23
bcwhite
I verified the update of Uninstall through checking both WoW64 nodes. You're probably not around ...
5 years, 3 months ago (2015-09-12 03:49:23 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1271893003/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1271893003/240001
5 years, 3 months ago (2015-09-12 04:52:07 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/52141)
5 years, 3 months ago (2015-09-12 07:18:09 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1271893003/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1271893003/240001
5 years, 3 months ago (2015-09-12 12:51:56 UTC) #31
grt (UTC plus 2)
https://codereview.chromium.org/1271893003/diff/240001/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://codereview.chromium.org/1271893003/diff/240001/chrome/installer/setup/setup_main.cc#newcode131 chrome/installer/setup/setup_main.cc:131: L"%s\\Products\\%s\\InstallProperties", kSystemPrincipalSid, This needs to be %ls (below, too); ...
5 years, 3 months ago (2015-09-12 13:41:32 UTC) #32
grt (UTC plus 2)
LGTM w/ format string fix.
5 years, 3 months ago (2015-09-12 13:45:27 UTC) #34
bcwhite
https://codereview.chromium.org/1271893003/diff/240001/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://codereview.chromium.org/1271893003/diff/240001/chrome/installer/setup/setup_main.cc#newcode131 chrome/installer/setup/setup_main.cc:131: L"%s\\Products\\%s\\InstallProperties", kSystemPrincipalSid, On 2015/09/12 13:41:32, grt wrote: > This ...
5 years, 3 months ago (2015-09-12 14:25:29 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1271893003/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1271893003/260001
5 years, 3 months ago (2015-09-12 14:26:15 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/52173) linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 3 months ago (2015-09-12 17:26:56 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1271893003/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1271893003/260001
5 years, 3 months ago (2015-09-12 19:55:47 UTC) #42
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_clobber_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_clobber_rel_ng/builds/69116)
5 years, 3 months ago (2015-09-13 01:57:01 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1271893003/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1271893003/260001
5 years, 3 months ago (2015-09-13 04:36:38 UTC) #46
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_clobber_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_clobber_rel_ng/builds/69156)
5 years, 3 months ago (2015-09-13 07:32:58 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1271893003/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1271893003/260001
5 years, 3 months ago (2015-09-14 00:00:09 UTC) #50
commit-bot: I haz the power
Committed patchset #14 (id:260001)
5 years, 3 months ago (2015-09-14 04:44:34 UTC) #51
commit-bot: I haz the power
Patchset 14 (id:??) landed as https://crrev.com/0d3e644a25802bdb3afa7fc09eff5aab456c5733 Cr-Commit-Position: refs/heads/master@{#348556}
5 years, 3 months ago (2015-09-14 04:47:46 UTC) #52
hans
https://codereview.chromium.org/1271893003/diff/260001/chrome/installer/setup/setup_main.cc File chrome/installer/setup/setup_main.cc (right): https://codereview.chromium.org/1271893003/diff/260001/chrome/installer/setup/setup_main.cc#newcode132 chrome/installer/setup/setup_main.cc:132: installer::GuidToSquid(product)); This passes a non-POD type (installer::GuidToSquid returns a ...
5 years, 3 months ago (2015-09-14 16:32:03 UTC) #54
hans
A revert of this CL (patchset #14 id:260001) has been created in https://codereview.chromium.org/1336923004/ by hans@chromium.org. ...
5 years, 3 months ago (2015-09-14 16:33:43 UTC) #55
bcwhite
On 2015/09/14 16:33:43, hans wrote: > A revert of this CL (patchset #14 id:260001) has ...
5 years, 3 months ago (2015-09-14 19:29:23 UTC) #56
hans
On 2015/09/14 19:29:23, bcwhite wrote: > Don! I *hate* printf! Odd that MSVC works just ...
5 years, 3 months ago (2015-09-14 19:56:30 UTC) #57
bcwhite
On 2015/09/14 19:56:30, hans wrote: > On 2015/09/14 19:29:23, bcwhite wrote: > > Don! I ...
5 years, 3 months ago (2015-09-14 20:06:39 UTC) #58
hans
lgtm! On 2015/09/14 20:06:39, bcwhite wrote: > Fixed, thanks. Is there documentation on how to ...
5 years, 3 months ago (2015-09-14 20:10:56 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1271893003/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1271893003/300001
5 years, 3 months ago (2015-09-14 20:28:01 UTC) #62
commit-bot: I haz the power
Committed patchset #16 (id:300001)
5 years, 3 months ago (2015-09-14 21:56:17 UTC) #63
commit-bot: I haz the power
Patchset 16 (id:??) landed as https://crrev.com/30198c1e69bc8c91e4e0853fa399702b8bddb302 Cr-Commit-Position: refs/heads/master@{#348732}
5 years, 3 months ago (2015-09-14 21:57:22 UTC) #64
commit-bot: I haz the power
Patchset 16 (id:??) landed as https://crrev.com/0d3e644a25802bdb3afa7fc09eff5aab456c5733 Cr-Commit-Position: refs/heads/master@{#348556}
5 years, 3 months ago (2015-09-23 12:29:09 UTC) #65
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:37:46 UTC) #66
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/30198c1e69bc8c91e4e0853fa399702b8bddb302
Cr-Commit-Position: refs/heads/master@{#348732}

Powered by Google App Engine
This is Rietveld 408576698