Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting EXE icon in Delphi 7

I'm trying to customize the icon that shows in Windows Explorer and in Desktop shortcuts for my Delphi application.

In the Delphi 7 IDE, I have loaded the desired icon in the Application tab of the Project Options dialog. It shows my desired icon as a graphic.

I didn't think it was necessary, but I also set my icon as the TMainForm Icon property.

However, the resulting EXE still shows the default D7 icon. What am I missing?

like image 959
tim11g Avatar asked May 30 '09 20:05

tim11g


1 Answers

I found it after more hunting. I created a new project by copying an existing project from another folder. I forgot to change the program name at the top of the DPR file to match the name of the new project. Somehow, if a wrong name is used there, it prevents the icon from being changed in the generated EXE file...

like image 171
tim11g Avatar answered Sep 20 '22 12:09

tim11g