зеркало из https://github.com/mozilla/gecko-dev.git
Bug 775458 - Microsoft Security Essentials causes slow update fix. r=rstrong
This commit is contained in:
Родитель
ee4d52c400
Коммит
fd335c8c32
|
@ -190,11 +190,11 @@ Section "MaintenanceService"
|
|||
${GetParameters} $0
|
||||
${GetOptions} "$0" "/Upgrade" $0
|
||||
${If} ${Errors}
|
||||
nsExec::Exec '"$INSTDIR\$TempMaintServiceName" install'
|
||||
ExecWait '"$INSTDIR\$TempMaintServiceName" install'
|
||||
${Else}
|
||||
; The upgrade cmdline is the same as install except
|
||||
; It will fail if the service isn't already installed.
|
||||
nsExec::Exec '"$INSTDIR\$TempMaintServiceName" upgrade'
|
||||
ExecWait '"$INSTDIR\$TempMaintServiceName" upgrade'
|
||||
${EndIf}
|
||||
|
||||
WriteUninstaller "$INSTDIR\Uninstall.exe"
|
||||
|
@ -255,7 +255,7 @@ FunctionEnd
|
|||
|
||||
Section "Uninstall"
|
||||
; Delete the service so that no updates will be attempted
|
||||
nsExec::Exec '"$INSTDIR\maintenanceservice.exe" uninstall'
|
||||
ExecWait '"$INSTDIR\maintenanceservice.exe" uninstall'
|
||||
|
||||
Push "$INSTDIR\updater.ini"
|
||||
Call un.RenameDelete
|
||||
|
|
|
@ -15,6 +15,10 @@
|
|||
#include "uachelper.h"
|
||||
#include "updatehelper.h"
|
||||
|
||||
// Link w/ subsystem window so we don't get a console when executing
|
||||
// this binary through the installer.
|
||||
#pragma comment(linker, "/SUBSYSTEM:windows")
|
||||
|
||||
SERVICE_STATUS gSvcStatus = { 0 };
|
||||
SERVICE_STATUS_HANDLE gSvcStatusHandle = nullptr;
|
||||
HANDLE gWorkDoneEvent = nullptr;
|
||||
|
|
Загрузка…
Ссылка в новой задаче