Bug 716045 - "Run As" dialog appears after every Nightly install. r=rstrong

This commit is contained in:
Brian R. Bondy 2012-01-22 16:07:58 -05:00
parent e6f6e05b55
commit 9ad78ef238

View File

@ -138,10 +138,12 @@
; and we need a return result back to the service when run that way. ; and we need a return result back to the service when run that way.
${If} $5 == "" ${If} $5 == ""
; An install of maintenance service was never attempted. ; An install of maintenance service was never attempted.
; We call ExecShell (which is ShellExecute) with the verb "runas" ; We know we are an Admin and that we have write access into HKLM
; to ask for elevation if the user isn't already elevated. If the user ; based on the above checks, so attempt to just run the EXE.
; is already elevated it will just launch the program. ; In the worst case, in case there is some edge case with the
ExecShell "runas" "$INSTDIR\maintenanceservice_installer.exe" ; IsAdmin check and the permissions check, the maintenance service
; will just fail to be attempted to be installed.
nsExec::Exec "$INSTDIR\maintenanceservice_installer.exe"
${EndIf} ${EndIf}
${EndIf} ${EndIf}
!endif !endif