現在、次のコードを使用してアプリケーションの古いバージョンのディレクトリを削除しました。以下のコードは、アプリ名でアプリケーションを見つけることで正常に動作します。UNIQUE APPID を使用しているアプリケーションを見つけたいのですが、この問題について誰か助けてください。
procedure DeleteExistingVersion(); begin
MsgBox('Deletion Starts',mbInformation, MB_OK);
if (DirExists (ExpandConstant('{pf}\APPLICATION NAME'))) then
begin
DelTree(ExpandConstant('{pf}\APPLICATION NAME'), True, True, True);
MsgBox('Deletion Ends', mbInformation, MB_OK);
end;
end;