What to do when setup fails?
Dave Korn
dk@artimi.com
Wed Nov 10 13:17:00 GMT 2004
> -----Original Message-----
> From: cygwin-owner On Behalf Of Max Bowsher
> Sent: 10 November 2004 00:37
> To: Luke Kendall; cygwin
> Subject: Re: What to do when setup fails?
>
> Luke Kendall wrote:
> > I recently found another system that Cygwin setup failed on
> > every time.
> >
> > I'm installing from a local mirror for which all the
> > checksums are good.
> >
> > It fails due to mount, apparently. A panel titled "Mount" pops up
> > after the download stage, saying: "The operation completed
> > successfully", and then setup exits.
> >
> > I tried several times, with failures pretty consistent but
> > just small variations on this theme.
>
> Bizarre. I've noted this in setup's bug tracker for attention when my
> university work eases off.
>From mount.cc:
void
create_mount (String const posix, String const win32, int istext,
int issystem)
{
char buf[1000];
HKEY key;
DWORD disposition;
DWORD flags;
remove_mount (posix);
snprintf (buf, sizeof(buf), "Software\\%s\\%s\\%s\\%s",
CYGWIN_INFO_CYGNUS_REGISTRY_NAME,
CYGWIN_INFO_CYGWIN_REGISTRY_NAME,
CYGWIN_INFO_CYGWIN_MOUNT_REGISTRY_NAME, posix.cstr_oneuse ());
HKEY kr = issystem ? HKEY_LOCAL_MACHINE : HKEY_CURRENT_USER;
if (RegCreateKeyEx (kr, buf, 0, (char *)"Cygwin", 0, KEY_ALL_ACCESS,
0, &key, &disposition) != ERROR_SUCCESS)
fatal ("mount");
Luke, if setup is failing to create that key, you must be trying to install
for all users while running as a user with inadequate rights, mustn't you? The
attached patch would tell you what the actual error code was, if you felt like
rebuilding setup.
cheers,
DaveK
--
Can't think of a witty .sigline today....
-------------- next part --------------
A non-text attachment was scrubbed...
Name: setup-mnt-err-patch.diff
Type: application/octet-stream
Size: 755 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20041110/4d857a26/attachment.obj>
-------------- next part --------------
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list