From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29148 invoked by alias); 7 Nov 2013 13:14:19 -0000 Mailing-List: contact cygwin-apps-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cygwin-apps-cvs-owner@sourceware.org Received: (qmail 29129 invoked by uid 9078); 7 Nov 2013 13:14:19 -0000 Message-ID: <20131107131419.29126.qmail@sourceware.org> From: corinna@sourceware.org Date: Thu, 07 Nov 2013 13:14:00 -0000 To: cygwin-apps-cvs@sourceware.org Subject: setup ChangeLog LogFile.cc LogFile.h main.cc r ... User-Agent: Heirloom mailx 12.4 7/29/08 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2013-q4/txt/msg00062.txt.bz2 CVSROOT: /cvs/cygwin-apps Module name: setup Changes by: corinna@sourceware.org 2013-11-07 13:14:19 Modified files: . : ChangeLog LogFile.cc LogFile.h main.cc res.rc resource.h setup.exe.manifest setup64.exe.manifest win32.cc win32.h Log message: * 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. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/setup/ChangeLog.diff?cvsroot=cygwin-apps&r1=2.830&r2=2.831 http://sourceware.org/cgi-bin/cvsweb.cgi/setup/LogFile.cc.diff?cvsroot=cygwin-apps&r1=2.20&r2=2.21 http://sourceware.org/cgi-bin/cvsweb.cgi/setup/LogFile.h.diff?cvsroot=cygwin-apps&r1=2.6&r2=2.7 http://sourceware.org/cgi-bin/cvsweb.cgi/setup/main.cc.diff?cvsroot=cygwin-apps&r1=2.73&r2=2.74 http://sourceware.org/cgi-bin/cvsweb.cgi/setup/res.rc.diff?cvsroot=cygwin-apps&r1=2.102&r2=2.103 http://sourceware.org/cgi-bin/cvsweb.cgi/setup/resource.h.diff?cvsroot=cygwin-apps&r1=2.44&r2=2.45 http://sourceware.org/cgi-bin/cvsweb.cgi/setup/setup.exe.manifest.diff?cvsroot=cygwin-apps&r1=2.5&r2=2.6 http://sourceware.org/cgi-bin/cvsweb.cgi/setup/setup64.exe.manifest.diff?cvsroot=cygwin-apps&r1=2.1&r2=2.2 http://sourceware.org/cgi-bin/cvsweb.cgi/setup/win32.cc.diff?cvsroot=cygwin-apps&r1=2.14&r2=2.15 http://sourceware.org/cgi-bin/cvsweb.cgi/setup/win32.h.diff?cvsroot=cygwin-apps&r1=2.32&r2=2.33