 

> -----Original Message-----
> From: Shachar Shemesh [mailto:psql@shemesh.biz] 
> Sent: 09 May 2004 10:20
> To: Dave Page
> Cc: marcs@znep.com; pgman@candle.pha.pa.us; 
> pgsql-hackers@postgresql.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.

Sun, 9 May 2004 10:30:36 +0100
"Dave Page" <dpage@vale-housing.co.uk>
Re: Relocatable installs