1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/installer/mini_installer/mini_installer_constants.h"
7 namespace mini_installer
{
9 // Various filenames and prefixes.
10 // The target name of the installer extracted from resources.
11 const wchar_t kSetupExe
[] = L
"setup.exe";
12 // The prefix of the chrome archive resource.
13 const wchar_t kChromeArchivePrefix
[] = L
"chrome";
14 // The prefix of the installer resource.
15 const wchar_t kSetupPrefix
[] = L
"setup";
17 // Command line switch names for setup.exe.
18 #if defined(COMPONENT_BUILD)
19 const wchar_t kCmdUncompressedArchive
[] = L
"uncompressed-archive";
21 const wchar_t kCmdInstallArchive
[] = L
"install-archive";
23 const wchar_t kCmdUpdateSetupExe
[] = L
"update-setup-exe";
24 const wchar_t kCmdNewSetupExe
[] = L
"new-setup-exe";
25 const wchar_t kCmdPreviousVersion
[] = L
"previous-version";
27 // Temp directory prefix that this process creates.
28 const wchar_t kTempPrefix
[] = L
"CR_";
29 // ap value suffix to force subsequent updates to use the full rather than
30 // differential updater.
31 const wchar_t kFullInstallerSuffix
[] = L
"-full";
32 // ap value tag for a multi-install product.
33 const wchar_t kMultiInstallTag
[] = L
"-multi";
35 // The resource types that would be unpacked from the mini installer.
36 // Uncompressed binary.
37 const wchar_t kBinResourceType
[] = L
"BN";
38 // LZ compressed binary.
39 const wchar_t kLZCResourceType
[] = L
"BL";
41 const wchar_t kLZMAResourceType
[] = L
"B7";
43 // Registry value names.
44 // The name of an app's Client State registry value that holds its tag/channel.
45 const wchar_t kApRegistryValue
[] = L
"ap";
46 // The name of the value in kCleanupRegistryKey that tells the installer not to
47 // delete extracted files.
48 const wchar_t kCleanupRegistryValue
[] = L
"ChromeInstallerCleanup";
49 // The name of an app's Client State registry value that holds the path to its
51 const wchar_t kUninstallRegistryValue
[] = L
"UninstallString";
53 // Registry key paths.
54 #if defined(GOOGLE_CHROME_BUILD)
55 // The path to the key containing each app's Client State registry key.
56 const wchar_t kClientStateKeyBase
[] =
57 L
"Software\\Google\\Update\\ClientState\\";
58 // The path to the key in which kCleanupRegistryValue is found.
59 const wchar_t kCleanupRegistryKey
[] =
60 L
"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Google Chrome";
62 // The path to the key containing each app's Client State registry key.
63 // No trailing slash on this one because the app's GUID is not appended.
64 const wchar_t kClientStateKeyBase
[] = L
"Software\\Chromium";
65 // The path to the key in which kCleanupRegistryValue is found.
66 const wchar_t kCleanupRegistryKey
[] = L
"Software\\Chromium";
69 // One gigabyte is the biggest resource size that it can handle.
70 const size_t kMaxResourceSize
= 1024*1024*1024;
72 } // namespace mini_installer