View Single Post
  #2  
Old 10-10-2021, 11:59
yasserdivar's Avatar
yasserdivar yasserdivar is offline
Registered User
 
Join Date: Sep 2015
Location: Iran
Posts: 5
Thanks: 286
Thanked 2 Times in 1 Post
yasserdivar is on a distinguished road
Quote:
Originally Posted by fabrieunko View Post
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

Code:
[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
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
__________________
YasserDivar - Senior Assistant
Reply With Quote