'C++Builder App Default Icon Should Not Appear in Explorer

I am creating a small, self-contained app (no dynamic RTL or runtime packages) and have assigned an icon (.ico) file. The icon appears in the corner of the main form and on the taskbar. But the default C++Builder 11.1 icon appears in Explorer. How can I correct the icon seen in Explorer?



Solution 1:[1]

The icon displayed on the Form's window, and on the Taskbar, is controlled by the TForm::Icon property, which you can set at design-time using the Object Inspector.

The icon displayed in Windows Explorer is controlled by the icon specified in the Project > Options > Application > Icons configuration:

Specify an icon file (.ico) to be inserted into the output file. The application icon that is displayed on this dialog box is displayed in Windows Explorer, next to the output file name.

Solution 2:[2]

The problem was resolved by migrating (not a simple copy-and-paste) the project to a new directory. So, it appears that one of the original project files was causing the problem.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Remy Lebeau
Solution 2 Bob Penoyer