public inbox for
help / color / mirror / Atom feed
From: Angelo Graziosi <>
To: XCygwin <>
Subject: Re: Postinstal failure for
Date: Mon, 29 Jul 2013 13:17:00 -0000	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

Il 28/07/2013 0.23, Angelo Graziosi ha scritto:
> For completenes, I want to flag that on Windows 7 U 64b and Cygwin32
> (but should be the same for Cygwin64) (postinstall) fails as
> follows (from setu.log.full):
> [...]
> 2013/07/27 23:41:15 running: C:\cygwin\bin\bash.exe --norc --noprofile
> "/etc/postinstall/"
> /usr/bin/mkdir: cannot create directory
> `/cygdrive/c/ProgramData/Microsoft/Windows/Start
> Menu/Programs/Cygwin-X': Permission denied
> mkshortcut: Saving "C:\ProgramData\Microsoft\Windows\Start
> Menu\Programs\Cygwin-X\XWin Server.lnk" failed; does the target
> directory exist?
> 2013/07/27 23:41:17 abnormal exit: exit code=3
> ...

The cause was an UAC issue.

I am new to W7 (64) so I am trying to setup it as on XP (32). More 
precisely, I have chose the local Cygwin repository in 
$HOME/cygwin_repo, being $HOME the HOME of the administrator (angelo). 
And, after the first installation (in which I got the UAC request), I 
have put setup-x86[_64].exe in the local repo. Cygwin32 is installed in 
C:\cygwin while Cygwin64 is in C:\cygwin64. I use the same repo for both 
(they are separated in MIRROR/x86[_64])

So, to install/update packages, I do:


   C:\cygwin\home\angelo\cygwin_repo\setup-x86.exe       (Cygwin32)
   C:\cygwin\home\angelo\cygwin_repo\setup-x86_64.exe    (Cygwin64)

Now, starting setup-x86_64.exe asks me always the UAC confirmation, 
instead setup-x86.exe don't! It run without administrator permissions. 
And this causes the failure described in my OP.

The workaround has been to move setup-x86.exe in the parent directory, i.e.



asks me the UAC confirmation, it really run as administrator.

What I don't understand is why moving setup-x86.exe in that way fixes 
the issue. I have also removed cygwin_repo and recreated but 
setup-x86.exe needs to stay above cygwin_repo... This regard only 
setup-x86.exe and not setup-x86_64.exe.. :(

> Ciao,
> Angelo.

Unsubscribe info:
Problem reports:

      reply	other threads:[~2013-07-29 13:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-27 22:23 Angelo Graziosi
2013-07-29 13:17 ` Angelo Graziosi [this message]

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be 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).