Dmitry
Dmitry

Reputation: 11

How to clear IconCache in windows7 via NSIS

I have a problem with installing of my application via NSIS in windows 7. Application installs successfully, but instead of myApplicationsIcon windows shows generic icon. I know how to fix this problem manually(delete IconCache.db in AppData\Local), but how can I do this with NSIS-script?

Regards, Dmitry.

Upvotes: 1

Views: 1537

Answers (2)

AaronLS
AaronLS

Reputation: 38367

If your exe file is extremely large, Windows will sometimes not display the icon.

Upvotes: 0

Anders
Anders

Reputation: 101549

Did you try calling SHChangeNotify first?

If that is not enough, use the delete instruction and the $localappdata constant

Upvotes: 2

Related Questions