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"; | |
53 // The name of an app's Client State registry value that holds the path to its | 49 // The name of an app's Client State registry value that holds the path to its |
54 // uninstaller. | 50 // uninstaller. |
55 const wchar_t kUninstallRegistryValue[] = L"UninstallString"; | 51 const wchar_t kUninstallRegistryValue[] = L"UninstallString"; |
56 | 52 |
57 // Registry key paths. | 53 // Registry key paths. |
58 #if defined(GOOGLE_CHROME_BUILD) | 54 #if defined(GOOGLE_CHROME_BUILD) |
59 // The path to the key containing each app's Client State registry key. | 55 // The path to the key containing each app's Client State registry key. |
60 const wchar_t kClientStateKeyBase[] = | 56 const wchar_t kClientStateKeyBase[] = |
61 L"Software\\Google\\Update\\ClientState\\"; | 57 L"Software\\Google\\Update\\ClientState\\"; |
62 // The path to the key in which kCleanupRegistryValue is found. | 58 // The path to the key in which kCleanupRegistryValue is found. |
63 const wchar_t kCleanupRegistryKey[] = | 59 const wchar_t kCleanupRegistryKey[] = |
64 L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Google Chrome"; | 60 L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Google Chrome"; |
65 #else | 61 #else |
66 // The path to the key containing each app's Client State registry key. | 62 // 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. | 63 // No trailing slash on this one because the app's GUID is not appended. |
68 const wchar_t kClientStateKeyBase[] = L"Software\\Chromium"; | 64 const wchar_t kClientStateKeyBase[] = L"Software\\Chromium"; |
69 // The path to the key in which kCleanupRegistryValue is found. | 65 // The path to the key in which kCleanupRegistryValue is found. |
70 const wchar_t kCleanupRegistryKey[] = L"Software\\Chromium"; | 66 const wchar_t kCleanupRegistryKey[] = L"Software\\Chromium"; |
71 #endif | 67 #endif |
72 | 68 |
73 // One gigabyte is the biggest resource size that it can handle. | 69 // One gigabyte is the biggest resource size that it can handle. |
74 const size_t kMaxResourceSize = 1024*1024*1024; | 70 const size_t kMaxResourceSize = 1024*1024*1024; |
75 | 71 |
76 } // namespace mini_installer | 72 } // namespace mini_installer |
OLD | NEW |