Re: Writing to registry

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"MikeD" <nobody@xxxxxxxxxxx> wrote in message
news:u0bSWmPHGHA.3200@xxxxxxxxxxxxxxxxxxxxxxx
>
> "Gary Nelson" <gn@xxxxxxxxxx> wrote in message
> news:ek87P9NHGHA.2012@xxxxxxxxxxxxxxxxxxxxxxx
> > Jack,
> >
> > When I do setup I install all of the default keys into
HKEY_LOCAL_MACHINE,
> > and then when a new user starts the program I copy them over to HKCU.
>
> Why? That's just adding even more bloat to the Registry. IMO, it'd be
> better to code defaults in your program. Save non-default values to
> HKEY_CURRENT_USER as needed.
>
> --
> Mike
> Microsoft MVP Visual Basic
>
>

I agree.

One should never ignore the importance of clearly delimiting
properties/attributes/options/defaults as to whether they concern the
Application-at-large or a specific user. Lumping them together only causes
confusion and trouble down the road - when you attempt to administer,
upgrade, or backup the application; when you need to migrate to a multiple
user scenario; or when addressing security issues.

I keep harping on this subject as it one of my biggest pet peeves with OPAs
(Other People's Applications). Applications developed by programmers who
don't recognize the difference become become a PITA to migrate to a
distributed environment.

-ralph


.



Relevant Pages

  • Re: Writing to registry
    ... > When I do setup I install all of the default keys into HKEY_LOCAL_MACHINE, ...
    (microsoft.public.vb.general.discussion)
  • Re: Writing to registry
    ... >>> When I do setup I install all of the default keys into ... I've been using the Registry since it became available to VB programmers, ...
    (microsoft.public.vb.general.discussion)
  • RE: Realsecure
    ... Setup the box, activate the software, install the keys, and ... >is it better to run Realsecure Network sensor on Windows NT ...
    (Focus-IDS)
  • Re: Windows Installer does not install any files
    ... I am trying to install a VS2005 Windows Forms .Net project on a 64-bit Windows Server using Setup2.msi Setup.exe generated by Setup and Deployment project for a 64-bit operating system. ... The installer has encountered an unexpected error installing this package. ...
    (microsoft.public.vsnet.setup)
  • Re: Continual Error 1321 Trying to Install Office 2003
    ... As to evidence of which app installed wisptis, I suppose you'd have to set ... 2003 sure wants to install it and stalls when it can't because the progress ... Is there any way in the world to get into setup with some custom tool from ... *My Lack of MSFT Support Rant and View Hex Error Messages Do Nothing for the ...
    (microsoft.public.office.misc)