> -----Original Message----- > From: Shachar Shemesh [mailto:[EMAIL PROTECTED] > Sent: 09 May 2004 10:20 > To: Dave Page > Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; > [EMAIL PROTECTED] > 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. ---------------------------(end of broadcast)--------------------------- TIP 9: the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match