Jump to content
Dave Craggs

Modelmaker integration

Recommended Posts

HI, I am using Modelmaker and Delphi 12.2

 

The Modelmaker integration expert has been working well, but just recently I can't use the locate in Delphi button, it is just greyed out. The Modelmaker integration option in Delphi work though.

 

Any ideas? Is there something obvious I have missed?

Share this post


Link to post

I couldn't reproduce, but I am on 12.3 here.

 

Can you give detailed steps to reproduce? Perhaps I tested something plain simple while the real problem is more complex.

Share this post


Link to post

Is this in HKEY_LOCAL_MACHINE?

 

If yes, there might be other criteria being checked for existence of a Delphi version. I'm willing to investigate, but my possibilities in regard to ModelMaker are a bit limited compared to MMX.

Share this post


Link to post

HKEY_CURRENT_USER

 

Interestingly Modelmaker on my new dev notebook has no Delphi IDE's listed.

 

I did try reinstalling MM.

 

Share this post


Link to post

The code for checking the presence of a Delphi IDE is like this:

function IsDelphiIDEInstalled(IDEVersion: TDelphiIDEVersion): Boolean;
var
  R: TRegistry;
begin
  R := TRegistry.Create;
  try
    R.RootKey := HKEY_LOCAL_MACHINE;
    Result := R.OpenKeyReadOnly(DelphiIDEKey(IDEVersion));
  finally
    R.Free;
  end;
end;

DelphiIDEKey evaluates to Software\Embarcadero\BDS\%d.0 for the newer versions. Note that ModelMaker is only aware of BDS versions up to 19.0 (Delphi 10.2 Tokyo). 

 

You might get away with just creating the base key for a non-installed version to trick ModelMaker into looking for the expert. So adding HKLM\Software\Embarcadero\BDS\19.0 to the registry should get you going.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×