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) xinit.sh (postinstall) fails as
follows (from setu.log.full):
[...]
2013/07/27 23:41:15 running: C:\cygwin\bin\bash.exe --norc --noprofile
"/etc/postinstall/xinit.sh"
/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:
Start|Run
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.
Start|Run
C:\cygwin\home\angelo\setup-x86.exe
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: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://x.cygwin.com/docs/
FAQ: http://x.cygwin.com/docs/faq/