Dave Craggs 7 Posted Thursday at 01:06 PM 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
Uwe Raabe 2156 Posted Thursday at 01:54 PM 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
Dave Craggs 7 Posted yesterday at 09:45 AM It's just the locate in Delphi button is greyed out. I worked a week or so ago. Share this post Link to post
Dave Craggs 7 Posted yesterday at 09:47 AM Looking at IDE integration the list only goes up to Delphi 10.1 Berlin. I though your tool integrates with Delphi 10.2. Share this post Link to post
Dave Craggs 7 Posted yesterday at 09:48 AM Using Modelmaker 11.11.0 build 5488 Share this post Link to post
Uwe Raabe 2156 Posted yesterday at 10:10 AM Same here and this is how the dialog looks here: Share this post Link to post
Dave Craggs 7 Posted yesterday at 11:35 AM That's odd. I am missing Delphi 10.2 Tokyo. Share this post Link to post
Dave Craggs 7 Posted yesterday at 11:49 AM Hmm - I did uninstall an old version of Delphi recently possibly 10.2. Would that have done it? Share this post Link to post
Uwe Raabe 2156 Posted yesterday at 12:39 PM That's possible. IIRC ModelMaker looks for the BDS\xx.x\Experts key in HKLM. Share this post Link to post
Dave Craggs 7 Posted 14 hours ago BDS\19.0 was missing I added this But still no joy 😞 Share this post Link to post
Uwe Raabe 2156 Posted 14 hours ago 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
Dave Craggs 7 Posted 11 hours ago 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
Uwe Raabe 2156 Posted 10 hours ago 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
Dave Craggs 7 Posted 8 hours ago This is very confusing. This is what is in HKEY_CURREJNT_USER 19.0 was missing but I added it HKLM is not have a BDS entry I added one But still no joy. Share this post Link to post
Uwe Raabe 2156 Posted 8 hours ago OK, on a 64-Bit Windows, the key seen by a 32-Bit application like ModelMaker is HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Embarcadero\BDS\19.0 Share this post Link to post
Dave Craggs 7 Posted 7 hours ago Fantastic. That has cracked it. Many many thanks Uwe. Dave Share this post Link to post