Skip to content

Commit

Permalink
TSettings.DetectTools() now detects all Delphi version from XE3 to 10.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Joachim Marder committed Sep 21, 2017
1 parent 25a4743 commit 85d48ed
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Designer/Classes/Settings.pas
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,9 @@ procedure TSettings.DetectTools();
end;

Reg.RootKey := HKEY_CURRENT_USER;
for BdsVersion := 10 downto 7 do
for BdsVersion := 20 downto 10 do
begin
if (BdsVersion = 7) then
BdsKey := 'Software\CodeGear\BDS\7.0'
else
BdsKey := 'Software\Embarcadero\BDS\' + IntToStr(BdsVersion) + '.0';
BdsKey := 'Software\Embarcadero\BDS\' + IntToStr(BdsVersion) + '.0';
if (Reg.OpenKeyReadOnly(BdsKey)) then
begin
BdsPath := Reg.ReadString('RootDir');
Expand Down

0 comments on commit 85d48ed

Please sign in to comment.