This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: cannot run setup64.exe without admin privileges (even if renamed foo.exe)
- From: Frédéric Bron <frederic dot bron at m4x dot org>
- To: cygwin <cygwin at cygwin dot com>
- Date: Thu, 19 Sep 2013 09:55:18 +0200
- Subject: Re: cannot run setup64.exe without admin privileges (even if renamed foo.exe)
- Authentication-results: sourceware.org; auth=none
- 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>
> 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