[email protected] | a65175d | 2010-08-17 04:00:57 | [diff] [blame] | 1 | // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
[email protected] | f3f9106 | 2008-10-29 19:20:44 | [diff] [blame] | 2 | // 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] | 3bf6ade0 | 2009-07-23 19:51:18 | [diff] [blame] | 8 | #ifndef CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_ |
| 9 | #define CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_ |
[email protected] | 32b76ef | 2010-07-26 23:08:24 | [diff] [blame] | 10 | #pragma once |
[email protected] | f3f9106 | 2008-10-29 19:20:44 | [diff] [blame] | 11 | |
| 12 | namespace installer_util { |
| 13 | |
[email protected] | ceb4711 | 2010-03-25 22:09:50 | [diff] [blame] | 14 | // Return status of installer |
[email protected] | f3f9106 | 2008-10-29 19:20:44 | [diff] [blame] | 15 | enum 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] | ceb4711 | 2010-03-25 22:09:50 | [diff] [blame] | 19 | EXISTING_VERSION_LAUNCHED, // No work done, just launched existing chrome |
[email protected] | f3f9106 | 2008-10-29 19:20:44 | [diff] [blame] | 20 | HIGHER_VERSION_EXISTS, // Higher version of Chrome already exists |
[email protected] | f0a51fb5 | 2009-03-05 12:46:38 | [diff] [blame] | 21 | USER_LEVEL_INSTALL_EXISTS, // User level install already exists |
| 22 | SYSTEM_LEVEL_INSTALL_EXISTS, // Machine level install already exists |
[email protected] | f3f9106 | 2008-10-29 19:20:44 | [diff] [blame] | 23 | INSTALL_FAILED, // Install/update failed |
[email protected] | 816a663 | 2009-06-01 16:45:33 | [diff] [blame] | 24 | SETUP_PATCH_FAILED, // Failed to patch setup.exe |
[email protected] | f3f9106 | 2008-10-29 19:20:44 | [diff] [blame] | 25 | 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] | 097a856 | 2008-12-08 17:41:47 | [diff] [blame] | 30 | INSUFFICIENT_RIGHTS, // User trying system level install is not Admin |
[email protected] | f3f9106 | 2008-10-29 19:20:44 | [diff] [blame] | 31 | 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] | 4df8786f | 2009-04-17 13:24:57 | [diff] [blame] | 34 | UNINSTALL_DELETE_PROFILE, // User confirmed uninstall and profile deletion |
[email protected] | f3f9106 | 2008-10-29 19:20:44 | [diff] [blame] | 35 | 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] | 2414e84 | 2008-11-07 01:27:57 | [diff] [blame] | 39 | RENAME_SUCCESSFUL, // Rename of new_chrome.exe to chrome.exe worked |
[email protected] | 64fcca73 | 2009-01-27 00:52:17 | [diff] [blame] | 40 | RENAME_FAILED, // Rename of new_chrome.exe failed |
| 41 | EULA_REJECTED, // EULA dialog was not accepted by user. |
[email protected] | 9e7a2dce | 2009-01-29 03:27:35 | [diff] [blame] | 42 | EULA_ACCEPTED, // EULA dialog was accepted by user. |
[email protected] | ef038f229 | 2009-02-27 22:24:26 | [diff] [blame] | 43 | EULA_ACCEPTED_OPT_IN, // EULA accepted wtih the crash optin selected. |
[email protected] | 50cecbe | 2009-10-04 20:03:27 | [diff] [blame] | 44 | INSTALL_DIR_IN_USE, // Installation directory is in use by another process |
[email protected] | 96ef99c | 2010-01-13 17:43:23 | [diff] [blame] | 45 | UNINSTALL_REQUIRES_REBOOT, // Uninstallation required a reboot. |
| 46 | IN_USE_UPDATED, // Chrome successfully updated but old version running |
[email protected] | c3ad1b2b | 2010-02-02 05:21:10 | [diff] [blame] | 47 | SAME_VERSION_REPAIR_FAILED, // Chrome repair failed as Chrome was running |
[email protected] | 933d320d | 2010-11-11 21:36:55 | [diff] [blame] | 48 | REENTRY_SYS_UPDATE, // Setup has been re-launched as the interactive user |
[email protected] | abd4dc7 | 2010-02-24 03:53:00 | [diff] [blame] | 49 | SXS_OPTION_NOT_SUPPORTED // The chrome-sxs option provided does not work |
| 50 | // with other command line options. |
[email protected] | f3f9106 | 2008-10-29 19:20:44 | [diff] [blame] | 51 | }; |
| 52 | |
| 53 | namespace switches { |
[email protected] | 12c0b18 | 2010-11-14 23:50:39 | [diff] [blame^] | 54 | extern const char kCeee[]; |
| 55 | extern const char kChrome[]; |
| 56 | extern const char kChromeFrame[]; |
| 57 | extern const char kChromeSxS[]; |
| 58 | extern const char kCreateAllShortcuts[]; |
| 59 | extern const char kDeleteProfile[]; |
| 60 | extern const char kDisableLogging[]; |
| 61 | extern const char kDoNotCreateShortcuts[]; |
| 62 | extern const char kDoNotLaunchChrome[]; |
| 63 | extern const char kDoNotRegisterForUpdateLaunch[]; |
| 64 | extern const char kDoNotRemoveSharedItems[]; |
| 65 | extern const char kEnableLogging[]; |
| 66 | extern const char kForceUninstall[]; |
[email protected] | ed578097 | 2010-08-06 01:46:59 | [diff] [blame] | 67 | extern const char kInstallArchive[]; |
| 68 | extern const char kInstallerData[]; |
[email protected] | 12c0b18 | 2010-11-14 23:50:39 | [diff] [blame^] | 69 | extern const char kLogFile[]; |
| 70 | extern const char kMakeChromeDefault[]; |
| 71 | extern const char kMsi[]; |
| 72 | extern const char kMultiInstall[]; |
[email protected] | ed578097 | 2010-08-06 01:46:59 | [diff] [blame] | 73 | extern const char kNewSetupExe[]; |
| 74 | extern const char kRegisterChromeBrowser[]; |
| 75 | extern const char kRegisterChromeBrowserSuffix[]; |
[email protected] | 12c0b18 | 2010-11-14 23:50:39 | [diff] [blame^] | 76 | extern const char kRenameChromeExe[]; |
| 77 | extern const char kRemoveChromeRegistration[]; |
| 78 | extern const char kRunAsAdmin[]; |
| 79 | extern const char kSystemLevel[]; |
| 80 | extern const char kUninstall[]; |
[email protected] | ed578097 | 2010-08-06 01:46:59 | [diff] [blame] | 81 | extern const char kUpdateSetupExe[]; |
[email protected] | 12c0b18 | 2010-11-14 23:50:39 | [diff] [blame^] | 82 | extern const char kVerboseLogging[]; |
[email protected] | ed578097 | 2010-08-06 01:46:59 | [diff] [blame] | 83 | extern const char kShowEula[]; |
[email protected] | 12c0b18 | 2010-11-14 23:50:39 | [diff] [blame^] | 84 | extern const char kAltDesktopShortcut[]; |
[email protected] | ed578097 | 2010-08-06 01:46:59 | [diff] [blame] | 85 | extern const char kInactiveUserToast[]; |
[email protected] | 12c0b18 | 2010-11-14 23:50:39 | [diff] [blame^] | 86 | extern const char kSystemLevelToast[]; |
| 87 | extern const char kToastResultsKey[]; |
[email protected] | f3f9106 | 2008-10-29 19:20:44 | [diff] [blame] | 88 | } // namespace switches |
| 89 | |
[email protected] | 1fb2879 | 2010-09-09 14:54:39 | [diff] [blame] | 90 | extern const wchar_t kChromeDll[]; |
| 91 | extern const wchar_t kChromeExe[]; |
| 92 | extern const wchar_t kChromeFrameDll[]; |
| 93 | extern const wchar_t kChromeFrameHelperExe[]; |
| 94 | extern const wchar_t kChromeFrameHelperWndClass[]; |
| 95 | extern const wchar_t kChromeNaCl64Dll[]; |
| 96 | extern const wchar_t kChromeOldExe[]; |
| 97 | extern const wchar_t kChromeNewExe[]; |
[email protected] | 1bcb975 | 2010-02-17 03:24:45 | [diff] [blame] | 98 | extern const wchar_t kGoogleChromeInstallSubDir1[]; |
| 99 | extern const wchar_t kGoogleChromeInstallSubDir2[]; |
[email protected] | f3f9106 | 2008-10-29 19:20:44 | [diff] [blame] | 100 | extern const wchar_t kInstallBinaryDir[]; |
[email protected] | 1d1a51b | 2009-01-29 23:25:08 | [diff] [blame] | 101 | extern const wchar_t kInstallerDir[]; |
[email protected] | 1fb2879 | 2010-09-09 14:54:39 | [diff] [blame] | 102 | extern const wchar_t kInstallUserDataDir[]; |
| 103 | extern const wchar_t kNaClExe[]; |
| 104 | extern const wchar_t kSetupExe[]; |
[email protected] | 1bcb975 | 2010-02-17 03:24:45 | [diff] [blame] | 105 | extern const wchar_t kSxSSuffix[]; |
[email protected] | c604a55 | 2010-03-22 20:12:50 | [diff] [blame] | 106 | extern const wchar_t kUninstallArgumentsField[]; |
[email protected] | f3f9106 | 2008-10-29 19:20:44 | [diff] [blame] | 107 | extern const wchar_t kUninstallDisplayNameField[]; |
[email protected] | 0bb1a62 | 2009-03-04 03:22:32 | [diff] [blame] | 108 | extern const wchar_t kUninstallInstallationDate[]; |
[email protected] | 1fb2879 | 2010-09-09 14:54:39 | [diff] [blame] | 109 | extern const char kUninstallMetricsName[]; |
| 110 | extern const wchar_t kUninstallStringField[]; |
[email protected] | 519357d | 2009-06-17 18:54:03 | [diff] [blame] | 111 | |
[email protected] | f3f9106 | 2008-10-29 19:20:44 | [diff] [blame] | 112 | } // namespace installer_util |
| 113 | |
[email protected] | 3bf6ade0 | 2009-07-23 19:51:18 | [diff] [blame] | 114 | #endif // CHROME_INSTALLER_UTIL_UTIL_CONSTANTS_H_ |