dzBdsLauncher

 

dzBdsLauncher tries to solve the problem of accidentally opening a Delphi project with the wrong Delphi version.

While .DPROJ files can be opened with newer Delphi versions than the one that created them, it does not work the other way round. So if you open a Delphi 10 .DPROJ file with e.g. Delphi 2007 all you will get is an error message. If you open a Delphi 2007 .DPROJ file with Delphi 10 it will automatically convert it to the new format used by that version and it will become unreadable by Delphi 2007.

dzBdsLauncher tries to solve this with two different methods:

  1. File name suffixes
    • project.2007.dproj starts Delphi 2007
    • project.2010.dproj starts Delphi 2010
    • project.xe.dproj starts Delphi XE
    • project.xe2.dproj starts Delphi XE2
    • project.xe8.dproj starts Delphi XE8
    • project.10.dproj starts Delphi 10
    • project.10-1.dproj starts Delphi 10.1
    • project.10-3.dproj starts Delphi 10.3
  2. Reading the <ProductVersion> from the .DPROJ file
    Unfortunately these ProductVersions are not unique, so this won’t always work.

The idea is to register dzBdsLauncher as the handler for .DPROJ files in Windows so your chance for opening the right Delphi version when double clicking such a file will much higher hand normal.

The tool is released under the MPL on OSDN. The current version is 1.0.1 and the source code is also available.

 Posted by on 2019-10-14 at 17:17