Update CrOS OOBE throbber to MD throbber; delete old asset
[chromium-blink-merge.git] / chrome / installer / mini_installer / mini_installer_constants.cc
blobf17d448d416cae525a13c623594ac3801b9b92d1
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";
20 #else
21 const wchar_t kCmdInstallArchive[] = L"install-archive";
22 #endif
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";
40 // 7zip archive.
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 // These values provide installer result codes to Omaha.
50 const wchar_t kInstallerErrorRegistryValue[] = L"InstallerError";
51 const wchar_t kInstallerExtraCode1RegistryValue[] = L"InstallerExtraCode1";
52 const wchar_t kInstallerResultRegistryValue[] = L"InstallerResult";
53 // The name of an app's Client State registry value that holds the path to its
54 // uninstaller.
55 const wchar_t kUninstallRegistryValue[] = L"UninstallString";
57 // Registry key paths.
58 #if defined(GOOGLE_CHROME_BUILD)
59 // The path to the key containing each app's Client State registry key.
60 const wchar_t kClientStateKeyBase[] =
61 L"Software\\Google\\Update\\ClientState\\";
62 // The path to the key in which kCleanupRegistryValue is found.
63 const wchar_t kCleanupRegistryKey[] =
64 L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Google Chrome";
65 #else
66 // The path to the key containing each app's Client State registry key.
67 // No trailing slash on this one because the app's GUID is not appended.
68 const wchar_t kClientStateKeyBase[] = L"Software\\Chromium";
69 // The path to the key in which kCleanupRegistryValue is found.
70 const wchar_t kCleanupRegistryKey[] = L"Software\\Chromium";
71 #endif
73 // One gigabyte is the biggest resource size that it can handle.
74 const size_t kMaxResourceSize = 1024*1024*1024;
76 } // namespace mini_installer