delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2013/09/19/03:56:21

X-Recipient: archive-cygwin AT delorie DOT 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:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type:content-transfer-encoding;
q=dns; s=default; b=leNp5H1Tqa4uUuwObAkS361s4eOxk/NNvMD+rZdG0gt
EBc5qjDpEhCzOD0i+jec3xjFiNu6zNFslz1hU9dXJ1MMyVlikPG9hQstT6bAyN/P
UpFYRiZjuf9wJ/dQnrG2RsjeScq2+2uxkdsHqWiUH8wARh2cFVgkl1IFgOyH16IA
=
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:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type:content-transfer-encoding;
s=default; bh=6w6U+XLAWXvaQLsh0L4JUh/2UaY=; b=b+oWqtmoKyY12izft
l30ngIUhZVXjoN0VK4aZA3IdBIsMnod+dYXhDYPUHcIlTZzyXl2o9eYAEoyESFky
MyC6x9yOTXGsUxb+O+UzyjtsNECuS0R/Y7B4G4KXDOy9s6Ko81YZQVmIqV09OQ8e
G/K8/iHz9hpmHML26Vo2jPwDBw=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,NO_RELAYS autolearn=ham version=3.3.2
X-HELO: mail-wi0-f177.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type:content-transfer-encoding; bh=ZxbG/tK5YOpDGXdd/UgTuaiOEBoBI6JkaeT+1xsSCdA=; b=Hk/EVJZWYbioHGptpYBP4tFiygBT9A+Tl4g2j/17Z7+H1U7sFAfc+g70cxkpqGpxGd saoRx3tQFs7JRrX0cd2R4ry2sJGIaZWWTvzMKz5fLHYcPn18rbQMWbi7Pza+i3kA1cWJ jzj60OyI5zzrX8h6xFoNzl93zacWV3CnMMS1IDOtLiGFcm+QiWedWXf/d3xcpghdVs53 6GNNrxw1Fn07eY4bFHmOV2a3CxokzDjfayFchn42nwuLC/T3o+whwwVFBkxjfQ72Kz+9 /hsmB4VgPZeFnnTj2HbdcZ0e01j9+Fy5Pr6tjoOC/KXbENv7bm96LpM6zAIh7h9SQtxL VKhQ==
X-Gm-Message-State: ALoCoQlmclbkGWMJwuwn1Hu+226uZSMq0c7lgsUa/s/8m7HA+zvYQ4JtAq6mZQLfpFo/xH7NJQxy
X-Received: by 10.195.13.164 with SMTP id ez4mr202415wjd.11.1379577358427; Thu, 19 Sep 2013 00:55:58 -0700 (PDT)
MIME-Version: 1.0
In-Reply-To: <5239EC4C.7060904@cwilson.fastmail.fm>
References: <CAPw2spinsbSZaduOMJtgR6rkaoJA9s7rTm6LCwvWBCK9-kiN8A AT mail DOT gmail DOT com> <5231EEF4 DOT 6010407 AT users DOT sourceforge DOT net> <CAPw2sphgi3r6U=ZvUj7ywS1JYOgPY2f4spuDW8Frff5gUCsrtQ AT mail DOT gmail DOT com> <20130918174034 DOT GB2351 AT ednor DOT casa DOT cgf DOT cx> <CAPw2spi2cQMRid83Zg53d3QvaA9J=2=kBXet_0SHnZtOxmwjDg AT mail DOT gmail DOT com> <5239EC4C DOT 7060904 AT cwilson DOT fastmail DOT fm>
From: =?ISO-8859-1?Q?Fr=E9d=E9ric_Bron?= <frederic DOT bron AT m4x DOT org>
Date: Thu, 19 Sep 2013 09:55:18 +0200
Message-ID: <CAPw2sph9GFaR_PLsvfWj-1FR0G0qLuaPAGnqN4RWqJEitdE8tA@mail.gmail.com>
Subject: Re: cannot run setup64.exe without admin privileges (even if renamed foo.exe)
To: cygwin <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id r8J7uHTR008688

> No. setup.exe (either 32bit or 64bit) is a native windows application, and
> if you're trying to build it within cygwin, then you MUST use a cross
> compiler -- either i686-w64-mingw32 or x86_64-w64-mingw32. when configuring
> the build, just do:
>
> configure --host=i686-w64-mingw32 --build=i686-pc-cygwin ....
> to build 32bit setup.exe from 32bit cygwin
>
> configure --host=x86_64-w64-mingw32 --build=x86_64-pc-cygwin ....
> to build 64bit setup.exe from 64bit cygwin
>
> ...but you can always mix and match the --build and --host settings; 32setup
> from 64cygwin, or 64setup from 32cygwin.

It works very nicely. I have managed to build setup.exe for x86_64
from my old cygwin on i686 and I can now run setup on Windows 7 64
bits without administrator privileges. Wonderful!

I just modified this:
Index: bootstrap.sh
===================================================================
RCS file: /cvs/cygwin-apps/setup/bootstrap.sh,v
retrieving revision 2.9
diff -r2.9 bootstrap.sh
63a64
> host=x86_64-w64-mingw32
Index: setup64.exe.manifest
===================================================================
RCS file: /cvs/cygwin-apps/setup/setup64.exe.manifest,v
retrieving revision 2.1
diff -r2.1 setup64.exe.manifest
25c25
<         <requestedExecutionLevel level="requireAdministrator"
uiAccess="false"/>
---
>         <requestedExecutionLevel level="asInvoker" uiAccess="false"/>

Thanks a lot to everybody for the help,

Frédéric

--
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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019