Re: Auto-saving the registry



Douglas J. Horton wrote:
I am writing an application that will store things like Version Info, Username, etc in the Registry.

I don't want to do anything to damage the Registry but unfortunately it's always a possibility.

Before I install my software (custom installation process, not InstallShield or Wise) I want to automatically backup the Registry.

The whole thing? That could be hundreds of megabytes. All because you're not sure whether your code works correctly?


The registry isn't some delicate thing that could break if you look at it wrong. The API functions you use to manipulate the registry are just as robust as any other functions, such as the functions you use to manipulate the file system.

I think your fears are not warranted. Make your changes to the registry, check the return codes, and be concious of access permissions. If you do all that, I think you've met your responsibility.

Programs make hundreds of changes to the registry every day without making backups first. Why would your code be any different?

--
Rob
.



Relevant Pages

  • Re: UNINSTALL WMP 10 TOTALLY
    ... It may be for several install attempts. ... Setup version 10.00.00.3802.] ... Adding dependency type 'Definition' to registry. ... SUCCESS: Package 'Windows Media Player'. ...
    (microsoft.public.windowsmedia.player)
  • Re: Latest info
    ... How to Troubleshoot a Stop 0xC0000218 Error Message ... A Stop 0xc0000218 error message means that a necessary registry hive file ... restore the registry files from a backup. ... >> original OS install. ...
    (microsoft.public.win2000.general)
  • Re: ISA and IIS services getting confused
    ... the ServicePackNumber is set to 1 in the registry. ... you need to verify that you had applied SBS 2003 ... On the SBS server, click Start, click Run, type "regedit" (without ... To successfully install SBS 2003 SP1, ...
    (microsoft.public.windows.server.sbs)
  • Re: Uninstall Norton Anti-everything 2006 ?
    ... Even after hours of searching through the Windows Registry keys, I could not find the keys that were interfering with several of my apps, most of which, BTW, were not even AV/PFW-related. ... Although geared toward KPSS/KIS/KAV this is a proven method for the removal of NAV/NIS, at least to the point of being able to install another AV and/or PFW. ... Also note that if you use other Symantec products, you will have to either be really careful or reinstall after the removal of NIS/NAV. ... The inept Norton removal tools are not sophisticated enough to determine which version has been installed. ...
    (alt.comp.anti-virus)
  • Re: Spooler SubSystem App continuously crashing
    ... Since you did not install Lexmark printer, I modify the steps as following, ... If you use Registry Editor incorrectly, ... View the list of subkeys. ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)