RRUZ / wmi-delphi-code-creator

Generate Object Pascal (Delphi, FPC), Oxygene, C++ and C# code to access the WMI
https://theroadtodelphi.wordpress.com/
182 stars 45 forks source link

WDCC does not find Lazarus IDE and Compiler #26

Open MaartenJB opened 7 years ago

MaartenJB commented 7 years ago

Hi,

Is it possible to tell WDCC where to find de Lazarus IDE and FPC compiler, because it does not find it. I've manually compiled both, so no default installation.

Thanks in advance,

Maarten

farukdemirel commented 6 years ago

Hi I have the same issur for Delphi 10.1 WDCC does not see this as an existing delphi. Any workaround?

Regards.

MaartenJB commented 5 years ago

Okey, figured it out.

It expects the installation folder to be: "%LOCALAPPDATA%\lazarus"

Don't know why, because this is not even the default installation location. I've made a symbolic link to the real location and now it works:

mklink /D "%LOCALAPPDATA%\lazarus" "c:\freepascal\lazarus_32"

You must run the mklink commando as the same user as you are using to start WDCC and you must have started Lazarus as this user as well.

(For delphi it's looking for registry entries if I'm not mistaken. you may want to take a look in folder "wmi-delphi-code-creator-master\Units\uDelphiVersions.pas")