I built a WPF desktop app (let's call this my_app.exe) and deployed using NSIS script to create an installer. When the users installed the app, the my_app.exe is located in C:\Program Files (x86)\app_folder. So, whenever I want to update the app with newer version, I create a new installer. When users reinstall, old my_app.exe is replaced with new exe file. The issue I'm encountering is, even though I changed the icon of the app, the exe icon doesn't change (even though I can see the content of the app changed). Is there a way to make the icon updated?
WPF app's icon not updated when the exe file is updated
33 views Asked by May Nguyen At
1
Explorer and the shell caches the icons. You can try to force a refresh or just wait until Windows figures it out on its own.
You can use a tool like Resource Hacker to actually verify that the .exe contains the icon you think it does.