Advertisement
TLama

Untitled

Nov 27th, 2014
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.35 KB | None | 0 0
  1. const
  2.   DeviceRegPath = 'SOFTWARE\Microsoft\Windows NT\CurrentVersion\GetDevice_%d';
  3.  
  4. function GetUninstFilePath(Value: string): string;
  5. var
  6.   S: string;
  7.   I: Integer;
  8. begin
  9.   Result := '';
  10.   for I := 1 to 3 do
  11.     if RegQueryStringValue(HKLM, Format(DeviceRegPath, [I]), 'Name', S) then
  12.     begin
  13.       Result := S;
  14.       Exit;
  15.     end;
  16. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement