I created my own executable with an icon file embedded into it and I put a shortcut to the program in the start menu folder C:\Users\Username\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Shortcuts
. The program shows up in the search results when I search for it by the shortcut's filename, and it displays the icon I embedded into the .exe file. By search I mean pressing the Windows key and beginning to type the program name.
However, if I recompile the program and embed a different icon into it, although the new icon is used for the program when I view it in file explorer and on the start menu, it is NOT updated in the Windows search results; it still uses the old icon. Changing the shortcut filename doesn't fix it. I have to create a new .exe file with a different name and the new icon file for the search menu to display the new icon rather than the old.
The problem is I don't want to change the executable's filename. I'm sure there's some cache I need to refresh, but I don't know what the search menu relies on to pull the icons. Any ideas?
I'm on Windows 10 1607 (14393).