Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delphi 2007 VCL Project Name Different from Compiled Exe Name?

Is there a way to have a Project named "SomeProject" that creates an EXE named "SomethingDifferent.exe"? In .net it is simple to have your project name be independent of your generated Assembly name, but I don't see how to do the equivalent in Delphi 2007.

like image 686
j0tt Avatar asked Feb 24 '23 17:02

j0tt


1 Answers

You can use MSbuild with the Post-build event

enter image description here

for example you can create a copy of your exe with the name which you want using a command like this

DEL  "$(OUTPUTDIR)SomethingDifferent.Exe"
COPY "$(OUTPUTDIR)$(OUTPUTFILENAME)" "$(OUTPUTDIR)SomethingDifferent.Exe"
like image 173
RRUZ Avatar answered May 06 '23 12:05

RRUZ