OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 #ifndef CHROME_INSTALLER_MINI_INSTALLER_ | 5 #ifndef CHROME_INSTALLER_MINI_INSTALLER_ |
6 #define CHROME_INSTALLER_MINI_INSTALLER_ | 6 #define CHROME_INSTALLER_MINI_INSTALLER_ |
7 | 7 |
8 // The windows command line to uncompress a LZ compressed file. It is a define | 8 // The windows command line to uncompress a LZ compressed file. It is a define |
9 // because we need the string to be writable. We don't need the full path | 9 // because we need the string to be writable. We don't need the full path |
10 // since it is located in windows\system32 and is available since windows2k. | 10 // since it is located in windows\system32 and is available since windows2k. |
11 #define UNCOMPRESS_CMD L"expand.exe " | 11 #define UNCOMPRESS_CMD L"expand.exe " |
12 | 12 |
13 namespace mini_installer { | 13 namespace mini_installer { |
14 | 14 |
15 // Various filenames | 15 // Various filenames |
16 const wchar_t kSetupName[] = L"setup.exe"; | 16 const wchar_t kSetupName[] = L"setup.exe"; |
17 const wchar_t kChromePrefix[] = L"chrome"; | 17 const wchar_t kChromePrefix[] = L"chrome"; |
18 const wchar_t kSetupPrefix[] = L"setup"; | 18 const wchar_t kSetupPrefix[] = L"setup"; |
19 | 19 |
20 // setup.exe command line arguements | 20 // setup.exe command line arguements |
21 const wchar_t kCmdInstallArchive[] = L" --install-archive"; | 21 const wchar_t kCmdInstallArchive[] = L" --install-archive"; |
22 const wchar_t kCmdUpdateSetupExe[] = L" --update-setup-exe"; | 22 const wchar_t kCmdUpdateSetupExe[] = L" --update-setup-exe"; |
23 const wchar_t kCmdNewSetupExe[] = L" --new-setup-exe"; | 23 const wchar_t kCmdNewSetupExe[] = L" --new-setup-exe"; |
24 | 24 |
25 // Temp directory prefix that this process creates | 25 // Temp directory prefix that this process creates |
26 const wchar_t kTempPrefix[] = L"CR_"; | 26 const wchar_t kTempPrefix[] = L"CR_"; |
| 27 // Google Update will use full installer if this suffix is found in ap key. |
| 28 const wchar_t kFullInstallerSuffix[] = L"-full"; |
27 | 29 |
28 // The resource types that would be unpacked from the mini installer. | 30 // The resource types that would be unpacked from the mini installer. |
29 // 'BN' is uncompressed binary and 'BL' is LZ compressed binary. | 31 // 'BN' is uncompressed binary and 'BL' is LZ compressed binary. |
30 const wchar_t kBinResourceType[] = L"BN"; | 32 const wchar_t kBinResourceType[] = L"BN"; |
31 const wchar_t kLZCResourceType[] = L"BL"; | 33 const wchar_t kLZCResourceType[] = L"BL"; |
32 const wchar_t kLZMAResourceType[] = L"B7"; | 34 const wchar_t kLZMAResourceType[] = L"B7"; |
33 | 35 |
34 // Registry key to get uninstall command | 36 // Registry key to get uninstall command |
35 const wchar_t kUninstallRegistryValueName[] = L"UninstallString"; | 37 const wchar_t kApRegistryValueName[] = L"ap"; |
36 // Registry key that tells Chrome installer not to delete extracted files. | 38 // Registry key that tells Chrome installer not to delete extracted files. |
37 const wchar_t kCleanupRegistryValueName[] = L"ChromeInstallerCleanup"; | 39 const wchar_t kCleanupRegistryValueName[] = L"ChromeInstallerCleanup"; |
38 // Paths for the above two registry keys | 40 // Registry key to get uninstall command |
| 41 const wchar_t kUninstallRegistryValueName[] = L"UninstallString"; |
| 42 |
| 43 // Paths for the above registry keys |
39 #if defined(GOOGLE_CHROME_BUILD) | 44 #if defined(GOOGLE_CHROME_BUILD) |
| 45 const wchar_t kApRegistryKey[] = L"Software\\Google\\Update\\ClientState\\" |
| 46 L"{8A69D345-D564-463c-AFF1-A69D9E530F96}"; |
40 const wchar_t kUninstallRegistryKey[] = | 47 const wchar_t kUninstallRegistryKey[] = |
41 L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Google Chrome"; | 48 L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Google Chrome"; |
42 const wchar_t kCleanupRegistryKey[] = L"Software\\Google"; | 49 const wchar_t kCleanupRegistryKey[] = L"Software\\Google"; |
43 #else | 50 #else |
| 51 const wchar_t kApRegistryKey[] = L"Software\\Chromium"; |
44 const wchar_t kUninstallRegistryKey[] = | 52 const wchar_t kUninstallRegistryKey[] = |
45 L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Chromium"; | 53 L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Chromium"; |
46 const wchar_t kCleanupRegistryKey[] = L"Software\\Chromium"; | 54 const wchar_t kCleanupRegistryKey[] = L"Software\\Chromium"; |
47 #endif | 55 #endif |
48 | 56 |
49 // One gigabyte is the biggest resource size that it can handle. | 57 // One gigabyte is the biggest resource size that it can handle. |
50 const int kMaxResourceSize = 1024*1024*1024; | 58 const int kMaxResourceSize = 1024*1024*1024; |
51 | 59 |
52 // This is the file that contains the list of files to be linked in the | 60 // This is the file that contains the list of files to be linked in the |
53 // executable. This file is updated by the installer generator tool chain. | 61 // executable. This file is updated by the installer generator tool chain. |
54 const wchar_t kManifestFilename[] = L"packed_files.txt"; | 62 const wchar_t kManifestFilename[] = L"packed_files.txt"; |
55 | 63 |
56 } // namespace mini_installer | 64 } // namespace mini_installer |
57 | 65 |
58 #endif // CHROME_INSTALLER_MINI_INSTALLER_ | 66 #endif // CHROME_INSTALLER_MINI_INSTALLER_ |
OLD | NEW |