| OLD | NEW |
| (Empty) |
| 1 // Copyright 2004-2010 Google Inc. | |
| 2 // | |
| 3 // Licensed under the Apache License, Version 2.0 (the "License"); | |
| 4 // you may not use this file except in compliance with the License. | |
| 5 // You may obtain a copy of the License at | |
| 6 // | |
| 7 // http://www.apache.org/licenses/LICENSE-2.0 | |
| 8 // | |
| 9 // Unless required by applicable law or agreed to in writing, software | |
| 10 // distributed under the License is distributed on an "AS IS" BASIS, | |
| 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 12 // See the License for the specific language governing permissions and | |
| 13 // limitations under the License. | |
| 14 // ======================================================================== | |
| 15 // | |
| 16 // Constants used in util functions | |
| 17 | |
| 18 #ifndef OMAHA_BASE_CONST_UTILS_H_ | |
| 19 #define OMAHA_BASE_CONST_UTILS_H_ | |
| 20 | |
| 21 namespace omaha { | |
| 22 | |
| 23 // The registry key for the registered application path. Take a look at | |
| 24 // http://msdn2.microsoft.com/en-us/library/ms997545.aspx for more information. | |
| 25 #define kRegKeyApplicationPath \ | |
| 26 _T("HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths") | |
| 27 #define kRegKeyPathValue _T("Path") | |
| 28 | |
| 29 #define USER_REG_VISTA_LOW_INTEGRITY_HKCU \ | |
| 30 _T("Software\\Microsoft\\Internet Explorer\\") \ | |
| 31 _T("InternetRegistry\\REGISTRY\\USER") | |
| 32 | |
| 33 // Including this property specification in the msiexec command line will | |
| 34 // prevent MSI from rebooting in all cases. | |
| 35 const TCHAR* const kMsiSuppressAllRebootsCmdLine = _T("REBOOT=ReallySuppress"); | |
| 36 | |
| 37 // TODO(omaha): We could probably move most of these to browser_utils. | |
| 38 // TODO(omaha): The rest are Windows constants. Maybe name this file as such. | |
| 39 | |
| 40 // The regkey for the default browser the Windows Shell opens. | |
| 41 #define kRegKeyDefaultBrowser _T("SOFTWARE\\Clients\\StartMenuInternet") | |
| 42 #define kRegKeyUserDefaultBrowser _T("HKCU\\") kRegKeyDefaultBrowser | |
| 43 #define kRegKeyMachineDefaultBrowser _T("HKLM\\") kRegKeyDefaultBrowser | |
| 44 #define kRegKeyShellOpenCommand _T("\\shell\\open\\command") | |
| 45 #define kRegKeyLegacyDefaultBrowser _T("HKCR\\http") | |
| 46 #define kRegKeyLegacyDefaultBrowserCommand \ | |
| 47 kRegKeyLegacyDefaultBrowser kRegKeyShellOpenCommand | |
| 48 | |
| 49 #define kIeExeName _T("IEXPLORE.EXE") | |
| 50 #define kFirefoxExeName _T("FIREFOX.EXE") | |
| 51 #define kChromeExeName _T("CHROME.EXE") | |
| 52 #define kChromeBrowserName _T("Google Chrome") | |
| 53 | |
| 54 // The regkey for proxy settings for IE. | |
| 55 const TCHAR* const kRegKeyIESettings = | |
| 56 _T("HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings"); | |
| 57 const TCHAR* const kRegKeyIESettingsConnections = _T("Connections"); | |
| 58 const TCHAR* const kRegValueIEDefaultConnectionSettings = | |
| 59 _T("DefaultConnectionSettings"); | |
| 60 const TCHAR* const kRegValueIEProxyEnable = _T("ProxyEnable"); | |
| 61 const TCHAR* const kRegValueIEProxyServer = _T("ProxyServer"); | |
| 62 const TCHAR* const kRegValueIEAutoConfigURL = _T("AutoConfigURL"); | |
| 63 | |
| 64 // Internet Explorer. | |
| 65 #define kRegKeyIeClass \ | |
| 66 _T("HKCR\\CLSID\\{0002DF01-0000-0000-C000-000000000046}\\LocalServer32") | |
| 67 #define kRegValueIeClass _T("") | |
| 68 | |
| 69 // Firefox. | |
| 70 #define kRegKeyFirefox \ | |
| 71 _T("HKCR\\Applications\\FIREFOX.EXE\\shell\\open\\command") | |
| 72 #define kRegValueFirefox _T("") | |
| 73 #define kFullRegKeyFirefox _T("HKLM\\SOFTWARE\\Mozilla\\Mozilla Firefox") | |
| 74 #define kRegKeyFirefoxPlugins _T("plugins") | |
| 75 #define kFirefoxCurrentVersion _T("CurrentVersion") | |
| 76 #define kFirefoxInstallDir _T("Install Directory") | |
| 77 | |
| 78 // Chrome. | |
| 79 #define kRegKeyChrome _T("HKCR\\Applications\\chrome.exe\\shell\\open\\command") | |
| 80 #define kRegValueChrome _T("") | |
| 81 | |
| 82 // SEHOP setting under IFEO. | |
| 83 #define kRegKeyWindowsNTCurrentVersion \ | |
| 84 _T("HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion") | |
| 85 #define kRegKeyImageFileExecutionOptions \ | |
| 86 kRegKeyWindowsNTCurrentVersion _T("\\") _T("Image File Execution Options") | |
| 87 #define kRegKeyDisableSEHOPValue _T("DisableExceptionChainValidation") | |
| 88 | |
| 89 | |
| 90 } // namespace omaha | |
| 91 | |
| 92 #endif // OMAHA_BASE_CONST_UTILS_H_ | |
| OLD | NEW |