1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Defines all install related constants that need to be used by Chrome as
// well as Chrome Installer.
#ifndef CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_
#define CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_
namespace installer_util {
// Return status of installer
enum InstallStatus {
FIRST_INSTALL_SUCCESS, // Successfully installed Chrome for the first time
INSTALL_REPAIRED, // Same version reinstalled for repair
NEW_VERSION_UPDATED, // Chrome successfully updated to new version
HIGHER_VERSION_EXISTS, // Higher version of Chrome already exists
USER_LEVEL_INSTALL_EXISTS, // User level install already exists
SYSTEM_LEVEL_INSTALL_EXISTS, // Machine level install already exists
INSTALL_FAILED, // Install/update failed
SETUP_PATCH_FAILED, // Failed to patch setup.exe
OS_NOT_SUPPORTED, // Current OS not supported
OS_ERROR, // OS API call failed
TEMP_DIR_FAILED, // Unable to get Temp directory
UNCOMPRESSION_FAILED, // Failed to uncompress Chrome archive
INVALID_ARCHIVE, // Something wrong with the installer archive
INSUFFICIENT_RIGHTS, // User trying system level install is not Admin
CHROME_NOT_INSTALLED, // Chrome not installed (returned in case of uninstall)
CHROME_RUNNING, // Chrome currently running (when trying to uninstall)
UNINSTALL_CONFIRMED, // User has confirmed Chrome uninstall
UNINSTALL_DELETE_PROFILE, // User confirmed uninstall and profile deletion
UNINSTALL_SUCCESSFUL, // Chrome successfully uninstalled
UNINSTALL_FAILED, // Chrome uninstallation failed
UNINSTALL_CANCELLED, // User cancelled Chrome uninstallation
UNKNOWN_STATUS, // Unknown status (this should never happen)
RENAME_SUCCESSFUL, // Rename of new_chrome.exe to chrome.exe worked
RENAME_FAILED, // Rename of new_chrome.exe failed
EULA_REJECTED, // EULA dialog was not accepted by user.
EULA_ACCEPTED, // EULA dialog was accepted by user.
EULA_ACCEPTED_OPT_IN, // EULA accepted wtih the crash optin selected.
INSTALL_DIR_IN_USE, // Installation directory is in use by another process
UNINSTALL_REQUIRES_REBOOT, // Uninstallation required a reboot.
IN_USE_UPDATED, // Chrome successfully updated but old version running
SAME_VERSION_REPAIR_FAILED, // Chrome repair failed as Chrome was running
REENTRY_SYS_UPDATE // Setup has been re-lauched as the interactive user
};
namespace switches {
extern const wchar_t kChromeFrame[];
extern const wchar_t kCreateAllShortcuts[];
extern const wchar_t kDeleteProfile[];
extern const wchar_t kDisableLogging[];
extern const wchar_t kDoNotCreateShortcuts[];
extern const wchar_t kDoNotLaunchChrome[];
extern const wchar_t kDoNotRegisterForUpdateLaunch[];
extern const wchar_t kDoNotRemoveSharedItems[];
extern const wchar_t kEnableLogging[];
extern const wchar_t kForceUninstall[];
extern const wchar_t kInstallArchive[];
extern const wchar_t kInstallerData[];
extern const wchar_t kLogFile[];
extern const wchar_t kMakeChromeDefault[];
extern const wchar_t kNewSetupExe[];
extern const wchar_t kRegisterChromeBrowser[];
extern const wchar_t kRegisterChromeBrowserSuffix[];
extern const wchar_t kRenameChromeExe[];
extern const wchar_t kRemoveChromeRegistration[];
extern const wchar_t kRunAsAdmin[];
extern const wchar_t kSystemLevel[];
extern const wchar_t kUninstall[];
extern const wchar_t kUpdateSetupExe[];
extern const wchar_t kVerboseLogging[];
extern const wchar_t kShowEula[];
extern const wchar_t kAltDesktopShortcut[];
extern const wchar_t kInactiveUserToast[];
extern const wchar_t kSystemLevelToast[];
} // namespace switches
extern const wchar_t kInstallBinaryDir[];
extern const wchar_t kInstallUserDataDir[];
extern const wchar_t kChromeExe[];
extern const wchar_t kChromeOldExe[];
extern const wchar_t kChromeNewExe[];
extern const wchar_t kChromeDll[];
extern const wchar_t kChromeFrameDll[];
extern const wchar_t kSetupExe[];
extern const wchar_t kInstallerDir[];
extern const wchar_t kUninstallStringField[];
extern const wchar_t kUninstallDisplayNameField[];
extern const wchar_t kUninstallMetricsName[];
extern const wchar_t kUninstallInstallationDate[];
} // namespace installer_util
#endif // CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_
|