Jump to content
Sign in to follow this  
dmitrybv

How to determine that dcc32 does not support command line compiling?

Recommended Posts

Some of my customers get the message

>dcc32.exe MyLib.dpk

>This version of the product does not support command line compiling when compiling via dcc32.exe.

I use dcc32.exe to compile and get the library binaries in my Installer.exe program

 

How to determine that dcc32.exe does not support command line compiling so that Installer can correctly detect the problem and stop installing the library?

dcc32.exe returns echo %ERRORLEVEL% = 0.

Share this post


Link to post

Only CE does not support command line compiling.

Share this post


Link to post
32 minutes ago, dmitrybv said:

How to determine that dcc32.exe does not support command line compiling so that Installer can correctly detect the problem and stop installing the library?

dcc32.exe returns echo %ERRORLEVEL% = 0.

Other than checking the Edition, i would do compile an empty unit and check for the artefact or the output, though i never installed or used CE, so might be wrong about this approach, but the fact it is not exiting with ExitCode=1 is disturbing non the less

 

D:\Program Files (x86)\Embarcadero\Studio\16.0\bin>dcc32 EmptyUnit.pas
Embarcadero Delphi for Win32 compiler version 29.0
Copyright (c) 1983,2015 Embarcadero Technologies, Inc.
EmptyUnit.pas(8)
9 lines, 0.02 seconds, 15 bytes code, 4 bytes data.
unit EmptyUnit;

interface

implementation

end.

 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×