OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/installer/mini_installer/mini_installer_constants.h" | 5 #include "chrome/installer/mini_installer/mini_installer_constants.h" |
6 | 6 |
7 namespace mini_installer { | 7 namespace mini_installer { |
8 | 8 |
9 // Various filenames and prefixes. | 9 // Various filenames and prefixes. |
10 // The target name of the installer extracted from resources. | 10 // The target name of the installer extracted from resources. |
(...skipping 28 matching lines...) Expand all Loading... |
39 const wchar_t kLZCResourceType[] = L"BL"; | 39 const wchar_t kLZCResourceType[] = L"BL"; |
40 // 7zip archive. | 40 // 7zip archive. |
41 const wchar_t kLZMAResourceType[] = L"B7"; | 41 const wchar_t kLZMAResourceType[] = L"B7"; |
42 | 42 |
43 // Registry value names. | 43 // Registry value names. |
44 // The name of an app's Client State registry value that holds its tag/channel. | 44 // The name of an app's Client State registry value that holds its tag/channel. |
45 const wchar_t kApRegistryValue[] = L"ap"; | 45 const wchar_t kApRegistryValue[] = L"ap"; |
46 // The name of the value in kCleanupRegistryKey that tells the installer not to | 46 // The name of the value in kCleanupRegistryKey that tells the installer not to |
47 // delete extracted files. | 47 // delete extracted files. |
48 const wchar_t kCleanupRegistryValue[] = L"ChromeInstallerCleanup"; | 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"; |
49 // The name of an app's Client State registry value that holds the path to its | 53 // The name of an app's Client State registry value that holds the path to its |
50 // uninstaller. | 54 // uninstaller. |
51 const wchar_t kUninstallRegistryValue[] = L"UninstallString"; | 55 const wchar_t kUninstallRegistryValue[] = L"UninstallString"; |
52 | 56 |
53 // Registry key paths. | 57 // Registry key paths. |
54 #if defined(GOOGLE_CHROME_BUILD) | 58 #if defined(GOOGLE_CHROME_BUILD) |
55 // The path to the key containing each app's Client State registry key. | 59 // The path to the key containing each app's Client State registry key. |
56 const wchar_t kClientStateKeyBase[] = | 60 const wchar_t kClientStateKeyBase[] = |
57 L"Software\\Google\\Update\\ClientState\\"; | 61 L"Software\\Google\\Update\\ClientState\\"; |
58 // The path to the key in which kCleanupRegistryValue is found. | 62 // The path to the key in which kCleanupRegistryValue is found. |
59 const wchar_t kCleanupRegistryKey[] = | 63 const wchar_t kCleanupRegistryKey[] = |
60 L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Google Chrome"; | 64 L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Google Chrome"; |
61 #else | 65 #else |
62 // The path to the key containing each app's Client State registry key. | 66 // 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. | 67 // No trailing slash on this one because the app's GUID is not appended. |
64 const wchar_t kClientStateKeyBase[] = L"Software\\Chromium"; | 68 const wchar_t kClientStateKeyBase[] = L"Software\\Chromium"; |
65 // The path to the key in which kCleanupRegistryValue is found. | 69 // The path to the key in which kCleanupRegistryValue is found. |
66 const wchar_t kCleanupRegistryKey[] = L"Software\\Chromium"; | 70 const wchar_t kCleanupRegistryKey[] = L"Software\\Chromium"; |
67 #endif | 71 #endif |
68 | 72 |
69 // One gigabyte is the biggest resource size that it can handle. | 73 // One gigabyte is the biggest resource size that it can handle. |
70 const size_t kMaxResourceSize = 1024*1024*1024; | 74 const size_t kMaxResourceSize = 1024*1024*1024; |
71 | 75 |
72 } // namespace mini_installer | 76 } // namespace mini_installer |
OLD | NEW |