X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 q=dns; s=default; b=GZqzEGXjly/5eyoGcUBcjrJCYzFNCgeRvHHjjVepwAQ
	4/U4YiEhkgTnyqfTn7WgkAZxGzfQXK1gP6cqODZX2KJP9VU4mh+CHYgK4nxXJbnh
	OKJ5I7GE7JDrIcsmxdTR+HVWxRP6D9SDveQEeZWk/49dcnDPmt8ksp51hlA9bPyM
	=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:message-id:date:from:mime-version:to:subject
	:references:in-reply-to:content-type:content-transfer-encoding;
	 s=default; bh=q0XtuOQ2x3Qhc/v4yOJ7HBda+bU=; b=kRDaMkXa/oWwXdwWm
	Ww/ZrrDiF0ewGFnczeLT1p/J7PVhjiA7joYkW7T2qtMfYTAIJfIs8PePMPr6ZDl9
	t2+T9CCgStVzGQSp23WSEJaoCm2LK2krq1pDV/m/4Pdy5ualY/9FWyKAGQB9+MY0
	PaXXJbOuslHdvyoz76/ZvHbRlU=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-3.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED autolearn=ham version=3.3.2
X-HELO: mail-pd0-f175.google.com
X-Received: by 10.68.223.161 with SMTP id qv1mr8661782pbc.79.1379004145139;        Thu, 12 Sep 2013 09:42:25 -0700 (PDT)
Message-ID: <5231EEF4.6010407@users.sourceforge.net>
Date: Thu, 12 Sep 2013 11:42:28 -0500
From: "Yaakov (Cygwin/X)" <yselkowitz@users.sourceforge.net>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130801 Thunderbird/17.0.8
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: cannot run setup64.exe without admin privileges (even if renamed foo.exe)
References: <CAPw2spinsbSZaduOMJtgR6rkaoJA9s7rTm6LCwvWBCK9-kiN8A@mail.gmail.com>
In-Reply-To: <CAPw2spinsbSZaduOMJtgR6rkaoJA9s7rTm6LCwvWBCK9-kiN8A@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

On 2013-09-12 04:07, Frédéric Bron wrote:
> I would like to run setup64.exe on Windows 7 without asking for admin
> rights but the computer asks me for admin credentials.
> I read this: http://cygwin.com/ml/cygwin/2011-06/msg00286.html where
> Corinna suggested to rename the .exe to foo.exe but this did not work.
> I also do not have the rights to modify the Local Security Policy.

UAC Installer Detection only affects x86 binaries, so that only helps 
with setup-x86.exe. As for setup-x86_64.exe, its builtin manifest 
requires Admin privileges because otherwise it won't promote itself 
automatically, and most people install Cygwin for All Users.

> Is there any workaround? Would it be possible to supply a setup that
> do not need admin privileges?

You can build setup.exe yourself for x86_64-w64-mingw32 with the 
requestedExecutionLevel entry removed from the manifest.  The sources 
are in cygwin-apps CVS.


Yaakov


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

