Close a window for a race with the system linker
[chromium-blink-merge.git] / chrome / installer / mini_installer / mini_installer_constants.cc
blob48c24f51e0663270cec18fea15ddf2bc79561631
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";
26 // Temp directory prefix that this process creates.
27 const wchar_t kTempPrefix[] = L"CR_";
28 // ap value suffix to force subsequent updates to use the full rather than
29 // differential updater.
30 const wchar_t kFullInstallerSuffix[] = L"-full";
31 // ap value tag for a multi-install product.
32 const wchar_t kMultiInstallTag[] = L"-multi";
34 // The resource types that would be unpacked from the mini installer.
35 // Uncompressed binary.
36 const wchar_t kBinResourceType[] = L"BN";
37 // LZ compressed binary.
38 const wchar_t kLZCResourceType[] = L"BL";
39 // 7zip archive.
40 const wchar_t kLZMAResourceType[] = L"B7";
42 // Registry value names.
43 // The name of an app's Client State registry value that holds its tag/channel.
44 const wchar_t kApRegistryValue[] = L"ap";
45 // The name of the value in kCleanupRegistryKey that tells the installer not to
46 // delete extracted files.
47 const wchar_t kCleanupRegistryValue[] = L"ChromeInstallerCleanup";
48 // The name of an app's Client State registry value that holds the path to its
49 // uninstaller.
50 const wchar_t kUninstallRegistryValue[] = L"UninstallString";
52 // Registry key paths.
53 #if defined(GOOGLE_CHROME_BUILD)
54 // The path to the key containing each app's Client State registry key.
55 const wchar_t kClientStateKeyBase[] =
56 L"Software\\Google\\Update\\ClientState\\";
57 // The path to the key in which kCleanupRegistryValue is found.
58 const wchar_t kCleanupRegistryKey[] =
59 L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Google Chrome";
60 #else
61 // The path to the key containing each app's Client State registry key.
62 const wchar_t kClientStateKeyBase[] = L"Software\\Chromium";
63 // The path to the key in which kCleanupRegistryValue is found.
64 const wchar_t kCleanupRegistryKey[] = L"Software\\Chromium";
65 #endif
67 // One gigabyte is the biggest resource size that it can handle.
68 const size_t kMaxResourceSize = 1024*1024*1024;
70 } // namespace mini_installer