From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-02-2020 03:36 PM
I have a project that builds an EXE and then installs it on target computers along with the LabVIEW run-time.
I want to change the icon of the EXE. I have done this in the EXE's build specification and it has updated on the target PC's task bar and in the upper left corner of the program's windows when opened. However, on some PCs the shortcut icon on the desktop, and the EXE's icon in Program Files (x86) does not update. Sometimes updating Windows completely and restarting fixes the icon but sometimes not. I've noticed that if I change the file name of the EXE in Program Files (x86), the icon changes to the updated version but if I change the filename back, the icon changes back to the old version.
This appears quite similar to these LabWindows issues from several years ago.
How can I make the icons update consistently? Or at least a workaround so I can get the current targets to have the updated icon?
01-03-2020 01:36 AM
Hi Jonathan,
@JonathanMATech wrote:
I've noticed that if I change the file name of the EXE in Program Files (x86), the icon changes to the updated version but if I change the filename back, the icon changes back to the old version.
This sounds more like a Windows problem: when you change to a different filename the icon of your EXE is shown, but not for the old filename? Maybe some caching algorithm inside Windows?
01-03-2020 07:33 AM
Yes, this sounds like it might involve the Windows Icon Cache. With Windows 10, it has gotten more complicated to clear and rebuild the cache (if that, indeed, is the cause of your problem) -- do a Web search to look for a solution.
Bob Schor
01-10-2020 04:43 PM
I think completely updating Windows AND Microsoft Store Apps fixed the icon for me.