OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/installer/util/util_constants.h" | 5 #include "chrome/installer/util/util_constants.h" |
6 | 6 |
7 namespace installer_util { | 7 namespace installer_util { |
8 | 8 |
9 namespace switches { | 9 namespace switches { |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... |
41 const wchar_t kDoNotRemoveSharedItems[] = L"do-not-remove-shared-items"; | 41 const wchar_t kDoNotRemoveSharedItems[] = L"do-not-remove-shared-items"; |
42 | 42 |
43 // Enable logging at the error level. This is the default behavior. | 43 // Enable logging at the error level. This is the default behavior. |
44 const wchar_t kEnableLogging[] = L"enable-logging"; | 44 const wchar_t kEnableLogging[] = L"enable-logging"; |
45 | 45 |
46 // If present, setup will uninstall chrome without asking for any | 46 // If present, setup will uninstall chrome without asking for any |
47 // confirmation from user. | 47 // confirmation from user. |
48 const wchar_t kForceUninstall[] = L"force-uninstall"; | 48 const wchar_t kForceUninstall[] = L"force-uninstall"; |
49 | 49 |
50 // Specify the file path of Chrome archive for install. | 50 // Specify the file path of Chrome archive for install. |
51 const wchar_t kInstallArchive[] = L"install-archive"; | 51 const char kInstallArchive[] = "install-archive"; |
52 | 52 |
53 // Specify the file path of Chrome master preference file. | 53 // Specify the file path of Chrome master preference file. |
54 const wchar_t kInstallerData[] = L"installerdata"; | 54 const char kInstallerData[] = "installerdata"; |
55 | 55 |
56 // If present, specify file path to write logging info. | 56 // If present, specify file path to write logging info. |
57 const wchar_t kLogFile[] = L"log-file"; | 57 const wchar_t kLogFile[] = L"log-file"; |
58 | 58 |
59 // Register Chrome as default browser on the system. Usually this will require | 59 // Register Chrome as default browser on the system. Usually this will require |
60 // that setup is running as admin. If running as admin we try to register | 60 // that setup is running as admin. If running as admin we try to register |
61 // as default browser at system level, if running as non-admin we try to | 61 // as default browser at system level, if running as non-admin we try to |
62 // register as default browser only for the current user. | 62 // register as default browser only for the current user. |
63 const wchar_t kMakeChromeDefault[] = L"make-chrome-default"; | 63 const wchar_t kMakeChromeDefault[] = L"make-chrome-default"; |
64 | 64 |
65 // Tells installer to expect to be run as a subsidiary to an MSI. | 65 // Tells installer to expect to be run as a subsidiary to an MSI. |
66 const wchar_t kMsi[] = L"msi"; | 66 const wchar_t kMsi[] = L"msi"; |
67 | 67 |
68 // Useful only when used with --update-setup-exe, otherwise ignored. It | 68 // Useful only when used with --update-setup-exe, otherwise ignored. It |
69 // specifies the full path where updated setup.exe will be stored. | 69 // specifies the full path where updated setup.exe will be stored. |
70 const wchar_t kNewSetupExe[] = L"new-setup-exe"; | 70 const char kNewSetupExe[] = "new-setup-exe"; |
71 | 71 |
72 // Register Chrome as a valid browser on the current sytem. This option | 72 // Register Chrome as a valid browser on the current sytem. This option |
73 // requires that setup.exe is running as admin. If this option is specified, | 73 // requires that setup.exe is running as admin. If this option is specified, |
74 // options kInstallArchive and kUninstall are ignored. | 74 // options kInstallArchive and kUninstall are ignored. |
75 const wchar_t kRegisterChromeBrowser[] = L"register-chrome-browser"; | 75 const char kRegisterChromeBrowser[] = "register-chrome-browser"; |
76 | 76 |
77 const wchar_t kRegisterChromeBrowserSuffix[] = | 77 const char kRegisterChromeBrowserSuffix[] = |
78 L"register-chrome-browser-suffix"; | 78 "register-chrome-browser-suffix"; |
79 | 79 |
80 // Renames chrome.exe to old_chrome.exe and renames new_chrome.exe to chrome.exe | 80 // Renames chrome.exe to old_chrome.exe and renames new_chrome.exe to chrome.exe |
81 // to support in-use updates. Also deletes opv key. | 81 // to support in-use updates. Also deletes opv key. |
82 const wchar_t kRenameChromeExe[] = L"rename-chrome-exe"; | 82 const wchar_t kRenameChromeExe[] = L"rename-chrome-exe"; |
83 | 83 |
84 // Removes Chrome registration from current machine. Requires admin rights. | 84 // Removes Chrome registration from current machine. Requires admin rights. |
85 const wchar_t kRemoveChromeRegistration[] = L"remove-chrome-registration"; | 85 const wchar_t kRemoveChromeRegistration[] = L"remove-chrome-registration"; |
86 | 86 |
87 // When we try to relaunch setup.exe as admin on Vista, we append this command | 87 // When we try to relaunch setup.exe as admin on Vista, we append this command |
88 // line flag so that we try the launch only once. | 88 // line flag so that we try the launch only once. |
89 const wchar_t kRunAsAdmin[] = L"run-as-admin"; | 89 const wchar_t kRunAsAdmin[] = L"run-as-admin"; |
90 | 90 |
91 // Install Chrome to system wise location. The default is per user install. | 91 // Install Chrome to system wise location. The default is per user install. |
92 const wchar_t kSystemLevel[] = L"system-level"; | 92 const wchar_t kSystemLevel[] = L"system-level"; |
93 | 93 |
94 // If present, setup will uninstall chrome. | 94 // If present, setup will uninstall chrome. |
95 const wchar_t kUninstall[] = L"uninstall"; | 95 const wchar_t kUninstall[] = L"uninstall"; |
96 | 96 |
97 // Also see --new-setup-exe. This command line option specifies a diff patch | 97 // Also see --new-setup-exe. This command line option specifies a diff patch |
98 // that setup.exe will apply to itself and store the resulting binary in the | 98 // that setup.exe will apply to itself and store the resulting binary in the |
99 // path given by --new-setup-exe. | 99 // path given by --new-setup-exe. |
100 const wchar_t kUpdateSetupExe[] = L"update-setup-exe"; | 100 const char kUpdateSetupExe[] = "update-setup-exe"; |
101 | 101 |
102 // Enable verbose logging (info level). | 102 // Enable verbose logging (info level). |
103 const wchar_t kVerboseLogging[] = L"verbose-logging"; | 103 const wchar_t kVerboseLogging[] = L"verbose-logging"; |
104 | 104 |
105 // Show the embedded EULA dialog. | 105 // Show the embedded EULA dialog. |
106 const wchar_t kShowEula[] = L"show-eula"; | 106 const char kShowEula[] = "show-eula"; |
107 | 107 |
108 // Use the alternate desktop shortcut name. | 108 // Use the alternate desktop shortcut name. |
109 const wchar_t kAltDesktopShortcut[] = L"alt-desktop-shortcut"; | 109 const wchar_t kAltDesktopShortcut[] = L"alt-desktop-shortcut"; |
110 | 110 |
111 // Perform the inactive user toast experiment. | 111 // Perform the inactive user toast experiment. |
112 const wchar_t kInactiveUserToast[] = L"inactive-user-toast"; | 112 const char kInactiveUserToast[] = "inactive-user-toast"; |
113 | 113 |
114 // User toast experiment switch from system context to user context. | 114 // User toast experiment switch from system context to user context. |
115 const wchar_t kSystemLevelToast[] = L"system-level-toast"; | 115 const wchar_t kSystemLevelToast[] = L"system-level-toast"; |
116 | 116 |
117 } // namespace switches | 117 } // namespace switches |
118 | 118 |
119 const wchar_t kGoogleChromeInstallSubDir1[] = L"Google"; | 119 const wchar_t kGoogleChromeInstallSubDir1[] = L"Google"; |
120 const wchar_t kGoogleChromeInstallSubDir2[] = L"Chrome"; | 120 const wchar_t kGoogleChromeInstallSubDir2[] = L"Chrome"; |
121 const wchar_t kInstallBinaryDir[] = L"Application"; | 121 const wchar_t kInstallBinaryDir[] = L"Application"; |
122 const wchar_t kInstallUserDataDir[] = L"User Data"; | 122 const wchar_t kInstallUserDataDir[] = L"User Data"; |
123 const wchar_t kChromeExe[] = L"chrome.exe"; | 123 const wchar_t kChromeExe[] = L"chrome.exe"; |
124 const wchar_t kChromeOldExe[] = L"old_chrome.exe"; | 124 const wchar_t kChromeOldExe[] = L"old_chrome.exe"; |
125 const wchar_t kChromeNewExe[] = L"new_chrome.exe"; | 125 const wchar_t kChromeNewExe[] = L"new_chrome.exe"; |
126 const wchar_t kNaClExe[] = L"nacl64.exe"; | 126 const wchar_t kNaClExe[] = L"nacl64.exe"; |
127 const wchar_t kChromeDll[] = L"chrome.dll"; | 127 const wchar_t kChromeDll[] = L"chrome.dll"; |
128 const wchar_t kChromeNaCl64Dll[] = L"nacl64.dll"; | 128 const wchar_t kChromeNaCl64Dll[] = L"nacl64.dll"; |
129 const wchar_t kChromeFrameDll[] = L"npchrome_frame.dll"; | 129 const wchar_t kChromeFrameDll[] = L"npchrome_frame.dll"; |
130 const wchar_t kSetupExe[] = L"setup.exe"; | 130 const wchar_t kSetupExe[] = L"setup.exe"; |
131 const wchar_t kInstallerDir[] = L"Installer"; | 131 const wchar_t kInstallerDir[] = L"Installer"; |
132 const wchar_t kSxSSuffix[] = L" SxS"; | 132 const wchar_t kSxSSuffix[] = L" SxS"; |
133 | 133 |
134 const wchar_t kUninstallStringField[] = L"UninstallString"; | 134 const wchar_t kUninstallStringField[] = L"UninstallString"; |
135 const wchar_t kUninstallArgumentsField[] = L"UninstallArguments"; | 135 const wchar_t kUninstallArgumentsField[] = L"UninstallArguments"; |
136 const wchar_t kUninstallDisplayNameField[] = L"DisplayName"; | 136 const wchar_t kUninstallDisplayNameField[] = L"DisplayName"; |
137 const wchar_t kUninstallMetricsName[] = L"uninstall_metrics"; | 137 const wchar_t kUninstallMetricsName[] = L"uninstall_metrics"; |
138 const wchar_t kUninstallInstallationDate[] = L"installation_date"; | 138 const wchar_t kUninstallInstallationDate[] = L"installation_date"; |
139 } // namespace installer_util | 139 } // namespace installer_util |
OLD | NEW |