반응형
procedure GetInstalledProg;
var
MyList: TStringList;
MyRegistry: TRegistry;
i: Integer;
Str: string;
pView : TListItem;
begin
MyRegistry:=TRegistry.Create;
MyList:=TStringList.Create;
with MyRegistry do
begin
RootKey:=HKEY_LOCAL_MACHINE;
if OpenKey('Software\Microsoft\Windows\CurrentVersion\Uninstall', False)=True then
GetKeyNames(MyList);
CloseKey;
for i:=0 to MyList.Count-1 do
begin
RootKey:=HKEY_LOCAL_MACHINE;
OpenKey('Software\Microsoft\Windows\CurrentVersion\Uninstall\'+MyList[i], False);
Str:=ReadString('DisplayName');
if Str <> '' then
begin
pView := Form1.ListView2.Items.Add;
pView.Caption := ReadString('DisplayName');
end;
CloseKey;
end;
end;
end;
이전에 어디서 참고한건데 출처를 모르겠네요.. ㅠㅠ
문제가 된다면 삭제하도록 하겠습니다.
반응형
'Programming > Delphi' 카테고리의 다른 글
| 런타임 중에 컨트롤 사이즈 조절하기 (439) | 2010.07.20 |
|---|---|
| 특정 폴더 오픈하기 (0) | 2010.07.02 |
| 웹에서 HTML 소스 가져오기 (0) | 2010.06.30 |
| Pointer 형도 as 연산자로 비교할 수 있다. (0) | 2010.06.30 |
| 풍선 도움말 (0) | 2010.06.30 |