OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 { | 7 namespace installer { |
8 | 8 |
9 namespace switches { | 9 namespace switches { |
10 | 10 |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 // specified as command line arguments following the --patch switch. | 179 // specified as command line arguments following the --patch switch. |
180 // Ex: --patch=courgette --input_file='input' --patch_file='patch' | 180 // Ex: --patch=courgette --input_file='input' --patch_file='patch' |
181 // --output_file='output' | 181 // --output_file='output' |
182 const char kPatch[] = "patch"; | 182 const char kPatch[] = "patch"; |
183 const char kInputFile[] = "input-file"; | 183 const char kInputFile[] = "input-file"; |
184 const char kPatchFile[] = "patch-file"; | 184 const char kPatchFile[] = "patch-file"; |
185 const char kOutputFile[] = "output-file"; | 185 const char kOutputFile[] = "output-file"; |
186 | 186 |
187 } // namespace switches | 187 } // namespace switches |
188 | 188 |
| 189 namespace env_vars { |
| 190 |
| 191 // The presence of this environment variable with a value of 1 implies that |
| 192 // setup.exe should run as a system installation regardless of what is on the |
| 193 // command line. |
| 194 const char kGoogleUpdateIsMachineEnvVar[] = "GoogleUpdateIsMachine"; |
| 195 |
| 196 } // namespace env_vars |
| 197 |
189 // The Active Setup executable will be an identical copy of setup.exe; this is | 198 // The Active Setup executable will be an identical copy of setup.exe; this is |
190 // necessary because Windows' installer detection heuristics (which include | 199 // necessary because Windows' installer detection heuristics (which include |
191 // things like process name being "setup.exe") will otherwise force elevation | 200 // things like process name being "setup.exe") will otherwise force elevation |
192 // for non-admin users when setup.exe is launched. This is mitigated by adding | 201 // for non-admin users when setup.exe is launched. This is mitigated by adding |
193 // requestedExecutionLevel="asInvoker" to setup.exe's manifest on Vista+, but | 202 // requestedExecutionLevel="asInvoker" to setup.exe's manifest on Vista+, but |
194 // there is no such manifest entry on Windows XP (which results in | 203 // there is no such manifest entry on Windows XP (which results in |
195 // crbug.com/166473). | 204 // crbug.com/166473). |
196 // TODO(gab): Rename setup.exe itself altogether and use the same binary for | 205 // TODO(gab): Rename setup.exe itself altogether and use the same binary for |
197 // Active Setup. | 206 // Active Setup. |
198 const wchar_t kActiveSetupExe[] = L"chrmstp.exe"; | 207 const wchar_t kActiveSetupExe[] = L"chrmstp.exe"; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
242 const wchar_t kChromeChannelBeta[] = L"beta"; | 251 const wchar_t kChromeChannelBeta[] = L"beta"; |
243 const wchar_t kChromeChannelStable[] = L""; | 252 const wchar_t kChromeChannelStable[] = L""; |
244 const wchar_t kChromeChannelStableExplicit[] = L"stable"; | 253 const wchar_t kChromeChannelStableExplicit[] = L"stable"; |
245 | 254 |
246 const size_t kMaxAppModelIdLength = 64U; | 255 const size_t kMaxAppModelIdLength = 64U; |
247 | 256 |
248 const char kCourgette[] = "courgette"; | 257 const char kCourgette[] = "courgette"; |
249 const char kBsdiff[] = "bsdiff"; | 258 const char kBsdiff[] = "bsdiff"; |
250 | 259 |
251 } // namespace installer | 260 } // namespace installer |
OLD | NEW |