]> cygwin.com Git - cygwin-apps/setup.git/commit - setup64.exe.manifest
* LogFile.cc (LogFile::exit): Don't print ending message after
authorCorinna Vinschen <corinna@vinschen.de>
Thu, 7 Nov 2013 13:14:19 +0000 (13:14 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Thu, 7 Nov 2013 13:14:19 +0000 (13:14 +0000)
commitaa09dcbb6868717d73060cd0611b7557752667a6
tree4f9f70716c1c6bb5b4e1b0a272368107c2827b03
parent318650accfad670618b08883fe3993fdfeab5021
* LogFile.cc (LogFile::exit): Don't print ending message after
successful elevation.
* res.rc (IDS_ELEVATED): New string.
* resource.h (IDS_ELEVATED): New string resource number.

* LogFile.cc (LogFile::flushAll): New function to flush log all logging
to files without exiting (as LogFile::exit does).
* LogFile.h: Declare new method closeAll.
* main.cc (NoAdminOption): Add new CLI options -B/--no-admin. This
option allows the user to suppress privilege elevation (in tandem with
"asInvoker" requestedExecutionLevel changes to exe manifests).
(WinMain): check if setup run with Administrator privilege and if the
NoAdminOption has not been specified, attempt to elevate privilege to an
Administrator via WINAPI ShellExecuteEx().
* setup.exe.manifest: Add requestedExecutionLevel of asInvoker to allow
suppression of privilege elevation.
* setup64.exe.manifest: Modify requestedExecutionLevel from
requireAdministrator to asInvoker to allow suppression of privilege
elevation. Continuity of privilege elevation attempt on startup is
implemented by main.cc changes to WinMain().
* win32.cc (NTSecurity::isRunAsAdmin): New function to allow main.cc to
check if setup.exe has been run with privilege elevated to Administrator
level.
* win32.h: Declare new method isRunAsAdmin.
ChangeLog
LogFile.cc
LogFile.h
main.cc
res.rc
resource.h
setup.exe.manifest
setup64.exe.manifest
win32.cc
win32.h
This page took 0.03054 seconds and 5 git commands to generate.