I'm using wix (3.11) to create a msi installation for a WPF application. The application icon is correctly working on program launch, in the program list (apps and features), and in my program menu and desktop shortcuts. The only issue is that when I search for the application after pressing the windows key, the older, stale icon that I used a few weeks ago appears. I'm almost certain that this is some windows caching issue as I have removed the stale icon from the application altogether, rebuilt the installer and reinstalled, and still the old icon appears during search. I'm curious if other members have encountered this issue and what they did to remedy it. Thanks!
Asked
Active
Viewed 605 times
1 Answers
1
Not sure if you need to rebuild the icon cache or fix indexing issues.
For Indexing:
- Type "indexing" in the start menu (or internationalized equivalent word), Click open.
- Click the Advanced button.
- In the Index Settings tab, click the Rebuild button under Troubleshooting. OK to confirm.
Index rebuilding should start. This Indexing applet is also available from the old-style control panel in "icons" view. Just search for "control panel" or equivalent internationalized words.
- One liner code (one effective line and boiler) to refresh icons: https://github.com/crazy-max/IconsRefresh

Stein Åsmul
- 39,960
- 25
- 91
- 164
-
1Here is a PowerShell one-liner to refresh icons (calls the same function, but runs out-of-the-box): https://stackoverflow.com/a/49818826/7571258 – zett42 Jan 19 '19 at 12:31
-
Nice. I keep meaning to look at PowerShell. Too high line-noise for my taste, and too "Perl-like" syntax (cryptic), but powerful for sure. – Stein Åsmul Jan 19 '19 at 12:33
-
I just got a little bit deeper into PowerShell. Yes, one can write cryptic Perl-like one-liners, but that's not forced on you by the language. One can also split a statement by using intermediate variables and make the code more readable by using the full form of commands, instead of the abbreviated ones. This is my preferred style for production scripts. The short, cryptic forms come in handy for quick testing and prototyping though. – zett42 Jan 22 '19 at 21:49
-
Time to dig out Kopczynski's PowerShell book that is sitting in my book shelf :-). Thanks for the summary. I find operators to be the strangest part of PowerShell. – Stein Åsmul Jan 22 '19 at 23:43