Chromium Code Reviews| 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_MINI_INSTALLER_H_ | 5 #ifndef CHROME_INSTALLER_MINI_INSTALLER_MINI_INSTALLER_H_ |
| 6 #define CHROME_INSTALLER_MINI_INSTALLER_MINI_INSTALLER_H_ | 6 #define CHROME_INSTALLER_MINI_INSTALLER_MINI_INSTALLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 // The windows command line to uncompress a LZ compressed file. It is a define | 9 // The windows command line to uncompress a LZ compressed file. It is a define |
| 10 // because we need the string to be writable. We don't need the full path | 10 // because we need the string to be writable. We don't need the full path |
| 11 // since it is located in windows\system32 and is available since windows2k. | 11 // since it is located in windows\system32 and is available since windows2k. |
| 12 #define UNCOMPRESS_CMD L"expand.exe " | 12 #define UNCOMPRESS_CMD L"expand.exe " |
| 13 | 13 |
| 14 namespace mini_installer { | 14 namespace mini_installer { |
| 15 | 15 |
| 16 // Various filenames | 16 // Various filenames |
| 17 const wchar_t kSetupName[] = L"setup.exe"; | 17 const wchar_t kSetupName[] = L"setup.exe"; |
| 18 const wchar_t kChromePrefix[] = L"chrome"; | 18 const wchar_t kChromePrefix[] = L"chrome"; |
| 19 const wchar_t kSetupPrefix[] = L"setup"; | 19 const wchar_t kSetupPrefix[] = L"setup"; |
| 20 | 20 |
| 21 // setup.exe command line arguements | 21 // setup.exe command line arguements |
| 22 const wchar_t kCmdInstallArchive[] = L" --install-archive"; | 22 const wchar_t kCmdInstallArchive[] = L" --install-archive"; |
| 23 const wchar_t kCmdUpdateSetupExe[] = L" --update-setup-exe"; | 23 const wchar_t kCmdUpdateSetupExe[] = L" --update-setup-exe"; |
| 24 const wchar_t kCmdNewSetupExe[] = L" --new-setup-exe"; | 24 const wchar_t kCmdNewSetupExe[] = L" --new-setup-exe"; |
| 25 | 25 |
| 26 // Temp directory prefix that this process creates | 26 // Temp directory prefix that this process creates |
| 27 const wchar_t kTempPrefix[] = L"CR_"; | 27 const wchar_t kTempPrefix[] = L"CR_"; |
| 28 // Google Update will use full installer if this suffix is found in ap key. | 28 // Google Update will use full installer if this suffix is found in ap value. |
|
robertshield
2010/12/15 20:25:45
grammar nits:
Google Update will use *the* full in
grt (UTC plus 2)
2010/12/16 05:59:13
Done.
| |
| 29 const wchar_t kFullInstallerSuffix[] = L"-full"; | 29 const wchar_t kFullInstallerSuffix[] = L"-full"; |
| 30 // ap value tag for a multi-install product. | |
| 31 const wchar_t kMultiInstallTag[] = L"-multi"; | |
| 30 | 32 |
| 31 // The resource types that would be unpacked from the mini installer. | 33 // The resource types that would be unpacked from the mini installer. |
| 32 // 'BN' is uncompressed binary and 'BL' is LZ compressed binary. | 34 // 'BN' is uncompressed binary and 'BL' is LZ compressed binary. |
| 33 const wchar_t kBinResourceType[] = L"BN"; | 35 const wchar_t kBinResourceType[] = L"BN"; |
| 34 const wchar_t kLZCResourceType[] = L"BL"; | 36 const wchar_t kLZCResourceType[] = L"BL"; |
| 35 const wchar_t kLZMAResourceType[] = L"B7"; | 37 const wchar_t kLZMAResourceType[] = L"B7"; |
| 36 | 38 |
| 37 // Registry key to get uninstall command | 39 // Registry key to get uninstall command |
| 38 const wchar_t kApRegistryValueName[] = L"ap"; | 40 const wchar_t kApRegistryValueName[] = L"ap"; |
| 39 // Registry key that tells Chrome installer not to delete extracted files. | 41 // Registry key that tells Chrome installer not to delete extracted files. |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 60 const int kMaxResourceSize = 1024*1024*1024; | 62 const int kMaxResourceSize = 1024*1024*1024; |
| 61 | 63 |
| 62 // This is the file that contains the list of files to be linked in the | 64 // This is the file that contains the list of files to be linked in the |
| 63 // executable. This file is updated by the installer generator tool chain. | 65 // executable. This file is updated by the installer generator tool chain. |
| 64 const wchar_t kManifestFilename[] = L"packed_files.txt"; | 66 const wchar_t kManifestFilename[] = L"packed_files.txt"; |
| 65 | 67 |
| 66 } // namespace mini_installer | 68 } // namespace mini_installer |
| 67 | 69 |
| 68 #endif // CHROME_INSTALLER_MINI_INSTALLER_MINI_INSTALLER_H_ | 70 #endif // CHROME_INSTALLER_MINI_INSTALLER_MINI_INSTALLER_H_ |
| 69 | 71 |
| OLD | NEW |