Hola delphiano necesito comprobar dentro de la Regestry si existe una direccion para identifcar si tiene el framewok 2.0 instalado para eso realice lo siguiente sin tener suerte
Código Delphi
[-]
unit Main;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, registry, Psock, NMHttp;
type
TForm1 = class(TForm)
Button1: TButton;
NMHTTP: TNMHTTP;
procedure Button1Click(Sender: TObject);
private
public
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
with TRegistry.Create do
try
RootKey:= HKEY_CURRENT_USER; if OpenKey('SOFTWARE\Microsoft\Windows\.NETFramework\v2.0',FALSE) then
begin
ShowMessage('existe');
CloseKey;
end;
finally
Free;
end;
end;
end.
¿QUE ES LO QUE HICE MAL?
