Wrong desktop shortcut icon on Windows 7 (Inno Setup)

后端 未结 2 617
-上瘾入骨i
-上瘾入骨i 2020-12-13 15:16

I have created an installer with Inno Setup. The icon used for the desktop shortcut and start menu is embeded in the application executable.

When the installer was i

相关标签:
2条回答
  • 2020-12-13 15:53

    As in swirlywonder's answer, this batch script should automate the process:

    rebuild-icon-cache.bat

    @echo off
    taskkill /IM explorer.exe /F
    cd /d %userprofile%\AppData\Local
    del IconCache.db /a
    start explorer.exe
    
    0 讨论(0)
  • 2020-12-13 16:00

    It seems that this indeed was related to the IconCache.db file. I can only guess that something wasn't done in the right order (though I tried differing procedures more than once).

    Here's how I performed the reset manually:

    • Click Start button > Hold down Ctrl+Shift & Right Click on empty area in the Start Menu.
    • Select "Exit Explorer".
    • Hold Ctrl+Shift+Esc keys to open Task Manager.
    • Select "File" > "New Task".
    • Type: cmd (and press Enter). This will open the command prompt.
    • Type: cd /d %userprofile%\AppData\Local (and press Enter)
    • Type: attrib –h IconCache.db (and press Enter)
    • Type: del IconCache.db (and press Enter)
    • Type: start explorer (and press Enter)

    Now everything renders just as it should.

    0 讨论(0)
提交回复
热议问题