Dave Craggs 7 Posted June 12 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 2160 Posted June 12 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 June 15 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 June 15 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
Uwe Raabe 2160 Posted June 15 Same here and this is how the dialog looks here: Share this post Link to post
Dave Craggs 7 Posted June 15 That's odd. I am missing Delphi 10.2 Tokyo. Share this post Link to post
Dave Craggs 7 Posted June 15 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 2160 Posted June 15 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 June 16 BDS\19.0 was missing I added this But still no joy 😞 Share this post Link to post
Uwe Raabe 2160 Posted June 16 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 June 16 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 2160 Posted June 16 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 June 16 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 2160 Posted June 16 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 June 16 Fantastic. That has cracked it. Many many thanks Uwe. Dave Share this post Link to post