public inbox for cygwin-apps-cvs@sourceware.org help / color / mirror / Atom feed
From: corinna@sourceware.org To: cygwin-apps-cvs@sourceware.org Subject: setup ChangeLog LogFile.cc LogFile.h main.cc r ... Date: Thu, 07 Nov 2013 13:14:00 -0000 [thread overview] Message-ID: <20131107131419.29126.qmail@sourceware.org> (raw) 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
reply other threads:[~2013-11-07 13:14 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20131107131419.29126.qmail@sourceware.org \ --to=corinna@sourceware.org \ --cc=cygwin-apps-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).