Hi,

> -----Original Message-----
> From: Johannes Schindelin [mailto:[EMAIL PROTECTED]
> Sent: Sunday, January 27, 2008 6:17 PM

> Should not all of install.reg [and uninstall.reg] be converted in one
> go, rather than only a few?
That sounds like a fine idea, but does not seem to be pressingly important.
AFAICT, there are couples ways to do it:
- store our .reg files in the resources and invoke regedit appropriately;
cons: is regedit.exe guaranteed to be present on each system?

- (as you mentioned) store registry as key-value pairs in resources and
implement simplified regedit engine.

> I imagine that a key/value array would be needed; however, this is
> not as trivial as it sounds, since we have different settings
> depending on the mode we wish to install: for all users, for one
> user, or debugging settings.
Well... as I discovered today, the difference between "all users" and
"current user" is just the first parameter to RegCreate/Set/DeleteKey/Value
(HKEY_LOCAL_MACHINE or HKEY_CURRENT_USER). As of debugging settings we can
just use command line option, as you suggested, and handle separately.

> For that matter, can you pass command line options when registering the
> .dll?
Technically you can, but I'd rather limit this use to "for-developers use".

> > +#include <stdio.h>
> Do you use it?
Seems like sprintf defined there.

> > +   char path_to_value[MAX_PATH]; // more than necessary for registry
> > key
> There's a line wrap here.  You are sending via GMail's web interface,
> right?
Usually, I am using Google Groups to start a new discussion. Sometimes, I
reply through their web interface.

> That's basically the reason why I left this for a later stage...
Don't NOTES represent "The Plan"?

--
Kirill.

Reply via email to