blob: db53573947f3a1397b90877768dee4fcb6b9173b [file] [log] [blame]
[email protected]a65175d2010-08-17 04:00:571// Copyright (c) 2010 The Chromium Authors. All rights reserved.
[email protected]f3f91062008-10-29 19:20:442// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4//
5// Defines all install related constants that need to be used by Chrome as
6// well as Chrome Installer.
7
[email protected]3bf6ade02009-07-23 19:51:188#ifndef CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_
9#define CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_
[email protected]32b76ef2010-07-26 23:08:2410#pragma once
[email protected]f3f91062008-10-29 19:20:4411
12namespace installer_util {
13
[email protected]ceb47112010-03-25 22:09:5014// Return status of installer
[email protected]f3f91062008-10-29 19:20:4415enum InstallStatus {
16 FIRST_INSTALL_SUCCESS, // Successfully installed Chrome for the first time
17 INSTALL_REPAIRED, // Same version reinstalled for repair
18 NEW_VERSION_UPDATED, // Chrome successfully updated to new version
[email protected]ceb47112010-03-25 22:09:5019 EXISTING_VERSION_LAUNCHED, // No work done, just launched existing chrome
[email protected]f3f91062008-10-29 19:20:4420 HIGHER_VERSION_EXISTS, // Higher version of Chrome already exists
[email protected]f0a51fb52009-03-05 12:46:3821 USER_LEVEL_INSTALL_EXISTS, // User level install already exists
22 SYSTEM_LEVEL_INSTALL_EXISTS, // Machine level install already exists
[email protected]f3f91062008-10-29 19:20:4423 INSTALL_FAILED, // Install/update failed
[email protected]816a6632009-06-01 16:45:3324 SETUP_PATCH_FAILED, // Failed to patch setup.exe
[email protected]f3f91062008-10-29 19:20:4425 OS_NOT_SUPPORTED, // Current OS not supported
26 OS_ERROR, // OS API call failed
27 TEMP_DIR_FAILED, // Unable to get Temp directory
28 UNCOMPRESSION_FAILED, // Failed to uncompress Chrome archive
29 INVALID_ARCHIVE, // Something wrong with the installer archive
[email protected]097a8562008-12-08 17:41:4730 INSUFFICIENT_RIGHTS, // User trying system level install is not Admin
[email protected]f3f91062008-10-29 19:20:4431 CHROME_NOT_INSTALLED, // Chrome not installed (returned in case of uninstall)
32 CHROME_RUNNING, // Chrome currently running (when trying to uninstall)
33 UNINSTALL_CONFIRMED, // User has confirmed Chrome uninstall
[email protected]4df8786f2009-04-17 13:24:5734 UNINSTALL_DELETE_PROFILE, // User confirmed uninstall and profile deletion
[email protected]f3f91062008-10-29 19:20:4435 UNINSTALL_SUCCESSFUL, // Chrome successfully uninstalled
36 UNINSTALL_FAILED, // Chrome uninstallation failed
37 UNINSTALL_CANCELLED, // User cancelled Chrome uninstallation
38 UNKNOWN_STATUS, // Unknown status (this should never happen)
[email protected]2414e842008-11-07 01:27:5739 RENAME_SUCCESSFUL, // Rename of new_chrome.exe to chrome.exe worked
[email protected]64fcca732009-01-27 00:52:1740 RENAME_FAILED, // Rename of new_chrome.exe failed
41 EULA_REJECTED, // EULA dialog was not accepted by user.
[email protected]9e7a2dce2009-01-29 03:27:3542 EULA_ACCEPTED, // EULA dialog was accepted by user.
[email protected]ef038f2292009-02-27 22:24:2643 EULA_ACCEPTED_OPT_IN, // EULA accepted wtih the crash optin selected.
[email protected]50cecbe2009-10-04 20:03:2744 INSTALL_DIR_IN_USE, // Installation directory is in use by another process
[email protected]96ef99c2010-01-13 17:43:2345 UNINSTALL_REQUIRES_REBOOT, // Uninstallation required a reboot.
46 IN_USE_UPDATED, // Chrome successfully updated but old version running
[email protected]c3ad1b2b2010-02-02 05:21:1047 SAME_VERSION_REPAIR_FAILED, // Chrome repair failed as Chrome was running
[email protected]933d320d2010-11-11 21:36:5548 REENTRY_SYS_UPDATE, // Setup has been re-launched as the interactive user
[email protected]abd4dc72010-02-24 03:53:0049 SXS_OPTION_NOT_SUPPORTED // The chrome-sxs option provided does not work
50 // with other command line options.
[email protected]f3f91062008-10-29 19:20:4451};
52
53namespace switches {
[email protected]12c0b182010-11-14 23:50:3954extern const char kCeee[];
55extern const char kChrome[];
56extern const char kChromeFrame[];
57extern const char kChromeSxS[];
58extern const char kCreateAllShortcuts[];
59extern const char kDeleteProfile[];
60extern const char kDisableLogging[];
61extern const char kDoNotCreateShortcuts[];
62extern const char kDoNotLaunchChrome[];
63extern const char kDoNotRegisterForUpdateLaunch[];
64extern const char kDoNotRemoveSharedItems[];
65extern const char kEnableLogging[];
66extern const char kForceUninstall[];
[email protected]ed5780972010-08-06 01:46:5967extern const char kInstallArchive[];
68extern const char kInstallerData[];
[email protected]12c0b182010-11-14 23:50:3969extern const char kLogFile[];
70extern const char kMakeChromeDefault[];
71extern const char kMsi[];
72extern const char kMultiInstall[];
[email protected]ed5780972010-08-06 01:46:5973extern const char kNewSetupExe[];
74extern const char kRegisterChromeBrowser[];
75extern const char kRegisterChromeBrowserSuffix[];
[email protected]12c0b182010-11-14 23:50:3976extern const char kRenameChromeExe[];
77extern const char kRemoveChromeRegistration[];
78extern const char kRunAsAdmin[];
79extern const char kSystemLevel[];
80extern const char kUninstall[];
[email protected]ed5780972010-08-06 01:46:5981extern const char kUpdateSetupExe[];
[email protected]12c0b182010-11-14 23:50:3982extern const char kVerboseLogging[];
[email protected]ed5780972010-08-06 01:46:5983extern const char kShowEula[];
[email protected]12c0b182010-11-14 23:50:3984extern const char kAltDesktopShortcut[];
[email protected]ed5780972010-08-06 01:46:5985extern const char kInactiveUserToast[];
[email protected]12c0b182010-11-14 23:50:3986extern const char kSystemLevelToast[];
87extern const char kToastResultsKey[];
[email protected]f3f91062008-10-29 19:20:4488} // namespace switches
89
[email protected]1fb28792010-09-09 14:54:3990extern const wchar_t kChromeDll[];
91extern const wchar_t kChromeExe[];
92extern const wchar_t kChromeFrameDll[];
93extern const wchar_t kChromeFrameHelperExe[];
94extern const wchar_t kChromeFrameHelperWndClass[];
95extern const wchar_t kChromeNaCl64Dll[];
96extern const wchar_t kChromeOldExe[];
97extern const wchar_t kChromeNewExe[];
[email protected]1bcb9752010-02-17 03:24:4598extern const wchar_t kGoogleChromeInstallSubDir1[];
99extern const wchar_t kGoogleChromeInstallSubDir2[];
[email protected]f3f91062008-10-29 19:20:44100extern const wchar_t kInstallBinaryDir[];
[email protected]1d1a51b2009-01-29 23:25:08101extern const wchar_t kInstallerDir[];
[email protected]1fb28792010-09-09 14:54:39102extern const wchar_t kInstallUserDataDir[];
103extern const wchar_t kNaClExe[];
104extern const wchar_t kSetupExe[];
[email protected]1bcb9752010-02-17 03:24:45105extern const wchar_t kSxSSuffix[];
[email protected]c604a552010-03-22 20:12:50106extern const wchar_t kUninstallArgumentsField[];
[email protected]f3f91062008-10-29 19:20:44107extern const wchar_t kUninstallDisplayNameField[];
[email protected]0bb1a622009-03-04 03:22:32108extern const wchar_t kUninstallInstallationDate[];
[email protected]1fb28792010-09-09 14:54:39109extern const char kUninstallMetricsName[];
110extern const wchar_t kUninstallStringField[];
[email protected]519357d2009-06-17 18:54:03111
[email protected]f3f91062008-10-29 19:20:44112} // namespace installer_util
113
[email protected]3bf6ade02009-07-23 19:51:18114#endif // CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_