Ver Mensaje Individual
  #2  
Antiguo 28-01-2015
octavioallec octavioallec is offline
Miembro
 
Registrado: oct 2007
Posts: 17
Reputación: 0
octavioallec Va por buen camino
Valores hexadecimales en el Registro de Windows

Hola a todos, haciendo la misma búsqueda me encontré que es suficiente con solicitar la lectura de valores enteros, enseguida dejo un ejemplo:

Código Delphi [-]
procedure ThreadFrame.NFWInstallCheck;
var RegCve:TRegistry;
begin
    RegCve:=TRegistry.Create;
    with RegCve do    //VERIFICANDO LA INSTALACIÓN DE NFW 3.5
        try
            RootKey:=HKEY_LOCAL_MACHINE; //SE ESTABLECE LA CLAVE ROOT DEL REGISTRO
            if OpenKeyReadOnly('SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5') then

                if READINTEGER('Install')=1 then Form1.Label3.Caption:='Net Framework 3.0 ya se encuentra instalado'
                else begin
                    Form1.Label3.Caption:='Instalando NetFrameWork 3.0 - El proceso tomará unos minutos, por favor espere...';
                end;
                CloseKey;
        finally
            Free;
        end;
end;

Espero que esto sirva para futuras consultas, saludos a todos.

Última edición por octavioallec fecha: 28-01-2015 a las 02:13:46. Razón: Error en el código delphi
Responder Con Cita