X-Spam-Check-By: sourceware.org
Message-ID: <31b7d2790612141030k545864d7la3bfe7ee00428dbc@mail.gmail.com>
Date: Thu, 14 Dec 2006 18:30:24 +0000
From: "DePriest, Jason R." <jrdepriest@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Vista & coreutils (or any other package)
In-Reply-To: <458194CC.62EC7425@dessent.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <20061214152631.GK9829@calimero.vinschen.de> 	 <45818407.981D73E7@dessent.net> <els2m3$7jr$1@sea.gmane.org> 	 <458194CC.62EC7425@dessent.net>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 12/14/06, Brian Dessent  wrote:
> Shankar Unni wrote:
>
> > > The manifest route is pretty simple, you just create an .xml file, then
> > > refer to it in a resource file, and then windres does the rest.
> >
> > But in cases like this, we really *don't* want to run with elevated
> > privileges - if I'm "install"ing to /tmp, I definitely don't want to
> > raise my privileges needlessly and potentially set up a security risk
> > somewhere. (Admittedly this is an unlikely scenario, but...)
>
> I thought the idea here was that the manifest tells the system
> explicitly "I am not an installer and I do not need to be run with
> elevated privileges", i.e. treat it like a normal program.
>

From Microsoft Vista's UAC Dev Requirements
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
When developing new installation programs, much like developing
programs for Windows Vista, be sure to embed an application manifest
with an appropriate requestedExecutionLevel element. See the Step Six:
Create and Embed an Application Manifest with Your Application section
for more information. When the requestedExecutionLevel is present in
the embedded application manifest, it overrides Installer Detection.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

So if you use

<requestedExecutionLevel
level="asInvoker" />

It should work without requiring elevated privileges.  Maybe.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

