In a MFC windows application, the right icon is shown in the taskbar if I run the .exe file created through a release/debug build. However it doesn't show and only loads windows default icon if the application gets installed on the machine.
What is the reason behind this latter behaviour?