PDA

View Full Version : inno setup problem and desktop icon under windows


fabrieunko
03-10-2021, 21:38
Hello, I don't know if I am in the right section, please excuse me if this post is not in the right place, and if a moderator comes and can move it.

I am doing a small installer with inno setup. but I cannot display the game icon on the windows 10 desktop. I have a white incone.

here is my section of code where I treat the icon


[Icons]
Name: "{group}\My Program"; Filename: "{app}\program.exe"; WorkingDir: "{app}"; IconFilename: "{app}\program.exe";
Name: "{commondesktop}\My Program"; Filename: "{app}\program.exe"; WorkingDir: "{app}"; IconFilename: "{app}\program.exe";
Name: "{group}\Uninstall My Program"; Filename: "{app}\unins000.exe"; WorkingDir: "{app}"; Check: CheckISDoneError;

if anyone can help me? thank you so much

yasserdivar
10-10-2021, 11:59
Hello, I don't know if I am in the right section, please excuse me if this post is not in the right place, and if a moderator comes and can move it.

I am doing a small installer with inno setup. but I cannot display the game icon on the windows 10 desktop. I have a white incone.

here is my section of code where I treat the icon


[Icons]
Name: "{group}\My Program"; Filename: "{app}\program.exe"; WorkingDir: "{app}"; IconFilename: "{app}\program.exe";
Name: "{commondesktop}\My Program"; Filename: "{app}\program.exe"; WorkingDir: "{app}"; IconFilename: "{app}\program.exe";
Name: "{group}\Uninstall My Program"; Filename: "{app}\unins000.exe"; WorkingDir: "{app}"; Check: CheckISDoneError;

if anyone can help me? thank you so much

hi dear
use this code

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

[Icons]

Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon



no need IconFilename if Icon=exe File

==============
Use disc cleanup and select Thumbnails

fabrieunko
10-10-2021, 23:18
thank you i will test