more elegant way to preserve original exe name

This commit is contained in:
Margers 2024-09-04 08:14:36 +00:00 committed by Michael Van Canneyt
parent 528ff51a8f
commit b3d44a9da2

View File

@ -988,7 +988,7 @@ begin
{ Retrieve created exefile }
If GetEXEPath<>'' then
EXEFile:=FixFileName(GetEXEPath+NameOf(MainFile)+GetTargetExeExt)
EXEFile:=FixFileName(GetEXEPath)+NameOf(MainFile)+GetTargetExeExt
else
EXEFile:=DirOf(MainFile)+NameOf(MainFile)+GetTargetExeExt;
DefaultReplacements(ExeFile);