> -----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....
setup-mnt-err-patch.diff
Description: Binary data
-- 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/

