Putting all together you can create an structure like this to access the information in the windows registry.ĭelphiVersionsNames: array of string = (ĭelphiRegPaths: array of string = (Īnd declaring a couple of helper functions to facilitate the workįunction RegKeyExists(const RegPath: string const RootKey :HKEY): Boolean įunction RegReadStr(const RegPath, RegValue:string var Str: string const RootKey :HKEY): Boolean Now you must check (and read) the existence of the “App” Value which store the location of the Delphi (or Rad Studio) IDE. ![]() \Software\Embarcadero\BDS\BdsVersion for example for RAD Studio XE2 must be \Software\Embarcadero\BDS\9.0 ![]() \Software\CodeGear\BDS\BdsVersion for example for RAD Studio 2009 must be \Software\CodeGear\BDS\6.0Īnd finally for Embarcadero RAD Studio (XE to XE5) \Software\Borland\BDS\BdsVersion for example for Borland Development Studio 2005 must be \Software\Borland\BDS\2.0 \Software\Borland\Delphi\DelphiVersion for example for Delphi 7 must be \Software\Borland\Delphi\7.0įor Borland Delphi 8 to Borland Development Studio 2006 Tondrej makes a good comment about to check the existence of the instalation in the HKEY_LOCAL_MACHINE root, so the code has been modified. ![]() The key to detect the Delphi (or Rad-Studio) installed versions in a system is check the existence of these registry keys under the HKEY_CURRENT_USER root.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |