Re: Registry problems...

From: Rick Francken (rick_at_example.com)
Date: 03/17/05


Date: Thu, 17 Mar 2005 12:25:47 -0500

Try passing the keyname argument without the '\' in front of Software.

var
  reg: TRegistry;
begin
  reg:= TRegistry.Create;
  try
    reg.RootKey:= HKEY_CURRENT_USER;
    if reg.SaveKey('Software\Microsoft\Internet Account
Manager\Accounts\00000001',
       'TestRegFile.tst') then
    begin
      ShowMessage('Done');
    end;
  finally
    reg.Free;
  end;
end;

> Ups, Sorry - New code. But it's still not working. I'm getting an empty
> file in my application dir called 'TestFileReg.tst...Please help...

> if S.SaveKey('\Software\Microsoft\Internet Account
> Manager\Accounts\00000001','TestRegFile.tst') then
>



Relevant Pages

  • Re: How can I get the Office version
    ... > Reg: TRegistry; ... >> I use OWC(Office Web Component) and there is differences between the ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: How can I get the Office version
    ... Reg: TRegistry; ... > I use OWC(Office Web Component) and there is differences between the ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: REG_BINARY
    ... Reg: TRegistry; ...
    (comp.lang.pascal.delphi.misc)
  • Re: Set temp path by Policy
    ... I run on startup a batch with "reg import settemp.reg". ... but some of the reg settings were HKLM and caused the whole file to get ... > I don't remember if I tested much creating a new account that time but I ... >> I've created all the required reg settings for moving the IE and other ...
    (microsoft.public.windowsxp.embedded)
  • Re: Set temp path by Policy
    ... I don't have that system in front of me right now but reviewing your reg. ... I don't remember if I tested much creating a new account that time but I did ... > to Ram-Disk, ... > could you detail me excatly what you setup for moving all type of Temps+IE ...
    (microsoft.public.windowsxp.embedded)