Board index » delphi » NT Registry - HKEY_LOCAL_MACHINE

NT Registry - HKEY_LOCAL_MACHINE

Does anyone have some sample code
that shows how to modify the NT registry
during an installation process?  Specifically,
the HKEY_LOCAL_MACHINE sections
seem to have certain permissions that
the TRegistry object can't update unless
the user is logged on as Administrator...

Thanks in advance,

Mike
dil...@farmsoft.com

--
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/  Michael Dillon                       dil...@farmsoft.com  _/
_/  Fort Collins, Colorado                                    _/
_/  PGP Key Available                        dil...@frii.com  _/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/_/_/_/_/_/_/_/  http://www.frii.com/~dillon _/_/_/_/_/_/_/_/_/
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

 

Re:NT Registry - HKEY_LOCAL_MACHINE


function GetRegEditWordPath : string;
var
        Regedit : TRegistry;
begin
        RegEdit := TRegistry.Create;
        RegEdit.RootKey:=HKEY_LOCAL_MACHINE;
        RegEdit.OpenKey('SYSTEM\CurrentControlSet\Services\w3svc\J&S\Banner',FALSE)
;
        Result := RegEdit.Readstring('ServerPath');
        RegEdit.Free;
end;

Felix Nielsen
Juul & Stejle Multimedia A/S

Michael Dillon <dil...@frii.com> wrote in article
<5e1309$lf...@europa.frii.com>...

Quote
> Does anyone have some sample code
> that shows how to modify the NT registry
> during an installation process?  Specifically,
> the HKEY_LOCAL_MACHINE sections
> seem to have certain permissions that
> the TRegistry object can't update unless
> the user is logged on as Administrator...

> Thanks in advance,

> Mike
> dil...@farmsoft.com

> --
> _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
> _/  Michael Dillon                       dil...@farmsoft.com  _/
> _/  Fort Collins, Colorado                                    _/
> _/  PGP Key Available                        dil...@frii.com  _/
> _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
> _/_/_/_/_/_/_/_/  http://www.frii.com/~dillon _/_/_/_/_/_/_/_/_/
> _/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

Other Threads