'Inno installer: How to use hi-res desktop icon?

I have a couple of questions about Inno.
One is that I have a hi-res good-looking desktop icon that I made 256x256. But when Inno installs it, a low-res one appears on the desktop. (The one appearing in the start menu looks Ok and hi-res).

Edit: this became a question to do with the exported format of the .ICO file (an icon file exported from Photoshop was not exporting correctly - see answers below), as well as a caching problem which was alleviated with a reboot.

(Sometimes, when I make an icon change in Inno, its not reflected on the computer I just tested the install on. Its only when I go to another computer and install it, do I see the new changes. Is there a cache or something that I have to clear to see new changes?)

#define MyAppExeName "navdraw.exe"
#define MyAppIcoName "C:\kivymd\Inno\IGPDesktopIcon.ico"

[Setup]
SetupIconFile="C:\kivymd\Inno\IGPInstallerIcon.ico"

[Files]
Source: "C:\kivymd\exe\dist\navdraw\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "C:\kivymd\Inno\IGPDesktopIcon.ico"; DestDir: "{app}"; Flags: ignoreversion

[Icons]
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; IconFilename: "C:\kivymd\Inno\IGPDesktopIcon.ico"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; IconFilename: "C:\kivymd\Inno\IGPDesktopIcon.ico"; Tasks: desktopicon


Solution 1:[1]

I do not know why even the low res icon appears, as your script is wrong.

The IconFilename parameter must point to a file on the target machine. So like this:

IconFilename: {app}\IGPDesktopIcon.ico

That also explains your "caching problem".

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Martin Prikryl