|
1 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
2 * License, v. 2.0. If a copy of the MPL was not distributed with this |
|
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
4 |
|
5 BOOL LaunchWinPostProcess(const WCHAR *installationDir, |
|
6 const WCHAR *updateInfoDir, |
|
7 bool forceSync, |
|
8 HANDLE userToken); |
|
9 BOOL StartServiceUpdate(LPCWSTR installDir); |
|
10 BOOL GetUpdateDirectoryPath(LPWSTR path); |
|
11 DWORD LaunchServiceSoftwareUpdateCommand(int argc, LPCWSTR *argv); |
|
12 BOOL WriteStatusFailure(LPCWSTR updateDirPath, int errorCode); |
|
13 BOOL WriteStatusPending(LPCWSTR updateDirPath); |
|
14 DWORD WaitForServiceStop(LPCWSTR serviceName, DWORD maxWaitSeconds); |
|
15 DWORD WaitForProcessExit(LPCWSTR filename, DWORD maxSeconds); |
|
16 BOOL DoesFallbackKeyExist(); |
|
17 BOOL IsLocalFile(LPCWSTR file, BOOL &isLocal); |
|
18 DWORD StartServiceCommand(int argc, LPCWSTR* argv); |
|
19 BOOL IsUnpromptedElevation(BOOL &isUnpromptedElevation); |
|
20 |
|
21 #define SVC_NAME L"MozillaMaintenance" |
|
22 |
|
23 #define BASE_SERVICE_REG_KEY \ |
|
24 L"SOFTWARE\\Mozilla\\MaintenanceService" |
|
25 |
|
26 // The test only fallback key, as its name implies, is only present on machines |
|
27 // that will use automated tests. Since automated tests always run from a |
|
28 // different directory for each test, the presence of this key bypasses the |
|
29 // "This is a valid installation directory" check. This key also stores |
|
30 // the allowed name and issuer for cert checks so that the cert check |
|
31 // code can still be run unchanged. |
|
32 #define TEST_ONLY_FALLBACK_KEY_PATH \ |
|
33 BASE_SERVICE_REG_KEY L"\\3932ecacee736d366d6436db0f55bce4" |
|
34 |
|
35 #ifdef MOZ_METRO |
|
36 bool GetDefaultBrowserAppModelID(WCHAR* aIDBuffer, long aCharLength); |
|
37 HRESULT LaunchDefaultMetroBrowser(); |
|
38 #endif |
|
39 |