Add options to write version number to registry.
commit0d3e644a25802bdb3afa7fc09eff5aab456c5733
authorbcwhite <bcwhite@chromium.org>
Mon, 14 Sep 2015 04:44:24 +0000 (13 21:44 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 14 Sep 2015 04:47:34 +0000 (14 04:47 +0000)
tree836596177789ade8a00cc8d5c8eb50eea0c0cda4
parent493d90ef42c523aa443191dbe7c6fab35be91abf
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-path="SOFTWARE\...\InstallProperties"
--set-display-version-value="A.B.C.D"
--delay=30

BUG=67348

Review URL: https://codereview.chromium.org/1271893003

Cr-Commit-Position: refs/heads/master@{#348556}
chrome/installer/setup/setup_constants.cc
chrome/installer/setup/setup_constants.h
chrome/installer/setup/setup_main.cc
chrome/installer/setup/setup_util.cc
chrome/installer/setup/setup_util.h
chrome/installer/setup/setup_util_unittest.cc
chrome/installer/util/master_preferences_constants.cc
chrome/installer/util/master_preferences_constants.h