Re: Relocatable installs

From: "Dave Page" <dpage(at)vale-housing(dot)co(dot)uk>
To: "Shachar Shemesh" <psql(at)shemesh(dot)biz>
Cc: <marcs(at)znep(dot)com>, <pgman(at)candle(dot)pha(dot)pa(dot)us>, <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Relocatable installs
Date: 2004-05-09 09:30:36
Message-ID: 03AF4E498C591348A42FC93DEA9661B889FCCB@mail.vale-housing.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> -----Original Message-----
> From: Shachar Shemesh [mailto:psql(at)shemesh(dot)biz]
> Sent: 09 May 2004 10:20
> To: Dave Page
> Cc: marcs(at)znep(dot)com; pgman(at)candle(dot)pha(dot)pa(dot)us;
> pgsql-hackers(at)postgresql(dot)org
> Subject: Re: [HACKERS] Relocatable installs
>
> I don't think that's a problem at all:
> 1. Believe it or not, you can write to HKEY_CURRENT_USER even
> if you are an admin! New and improved..... In fact, if you
> don't mind messing with the "load hive" interfaces, you can
> even write to someone else's HKCU if you are admin. It makes
> installs more complicated, but see 2 for why this will not be
> necessary.

I think you're missing what I was saying. To properly write to the event
log without getting messages like:

The description for Event ID ( 0 ) in Source ( btwdins ) cannot be
found. The local computer may not have the necessary registry
information or message DLL files to display messages from a remote
computer. You may be able to use the /AUXSOURCE= flag to retrieve this
description; see Help and Support for details. The following information
is part of the event: Service started.

you need to register an event source with a message dll under
HKEY_LOCAL_MACHINE. HKCU is not an option. This is not part of the
relocatable install issue I grant you - the mention of HKLM permissions
just made me think of it...

> 2. Original suggestion talked about looking up at HKCU, and
> then (if not
> found) at HKEY_LOCAL_MACHINE

Yes, that's fine for the relocatable install issues.

> 3. I doubt the same machine will require BOTH service and
> per-user installation

No, but either may want to use the event log.

Regards, Dave.

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2004-05-09 10:19:53 Re: Relocatable installs
Previous Message Shachar Shemesh 2004-05-09 09:20:29 Re: Relocatable installs