1 // Copyright (c) 2011 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 #ifndef CHROME_INSTALLER_MINI_INSTALLER_MINI_INSTALLER_H_
6 #define CHROME_INSTALLER_MINI_INSTALLER_MINI_INSTALLER_H_
8 namespace mini_installer
{
11 const wchar_t kSetupName
[] = L
"setup.exe";
12 const wchar_t kChromePrefix
[] = L
"chrome";
13 const wchar_t kSetupPrefix
[] = L
"setup";
15 // setup.exe command line arguments
16 const wchar_t kCmdInstallArchive
[] = L
" --install-archive";
17 const wchar_t kCmdUpdateSetupExe
[] = L
" --update-setup-exe";
18 const wchar_t kCmdNewSetupExe
[] = L
" --new-setup-exe";
20 // Temp directory prefix that this process creates
21 const wchar_t kTempPrefix
[] = L
"CR_";
22 // Google Update will use the full installer if this suffix is found in the ap
24 const wchar_t kFullInstallerSuffix
[] = L
"-full";
25 // ap value tag for a multi-install product.
26 const wchar_t kMultiInstallTag
[] = L
"-multi";
28 // The resource types that would be unpacked from the mini installer.
29 // 'BN' is uncompressed binary and 'BL' is LZ compressed binary.
30 const wchar_t kBinResourceType
[] = L
"BN";
31 const wchar_t kLZCResourceType
[] = L
"BL";
32 const wchar_t kLZMAResourceType
[] = L
"B7";
34 // Registry key to get uninstall command
35 const wchar_t kApRegistryValueName
[] = L
"ap";
36 // Registry key that tells Chrome installer not to delete extracted files.
37 const wchar_t kCleanupRegistryValueName
[] = L
"ChromeInstallerCleanup";
38 // Registry key to get uninstall command
39 const wchar_t kUninstallRegistryValueName
[] = L
"UninstallString";
41 // Paths for the above registry keys
42 #if defined(GOOGLE_CHROME_BUILD)
43 // The concatenation of this plus the Google Update GUID is the app registry
45 const wchar_t kApRegistryKeyBase
[] = L
"Software\\Google\\Update\\ClientState\\";
46 const wchar_t kUninstallRegistryKey
[] =
47 L
"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Google Chrome";
48 const wchar_t kCleanupRegistryKey
[] = L
"Software\\Google";
50 const wchar_t kApRegistryKeyBase
[] = L
"Software\\Chromium";
51 const wchar_t kUninstallRegistryKey
[] =
52 L
"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Chromium";
53 const wchar_t kCleanupRegistryKey
[] = L
"Software\\Chromium";
56 // One gigabyte is the biggest resource size that it can handle.
57 const int kMaxResourceSize
= 1024*1024*1024;
59 // This is the file that contains the list of files to be linked in the
60 // executable. This file is updated by the installer generator tool chain.
61 const wchar_t kManifestFilename
[] = L
"packed_files.txt";
63 } // namespace mini_installer
65 #endif // CHROME_INSTALLER_MINI_INSTALLER_MINI_INSTALLER_H_