FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   inno setup problem and desktop icon under windows (https://fileforums.com/showthread.php?t=104701)

fabrieunko 03-10-2021 21:38

inno setup problem and desktop icon under windows
 
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

yasserdivar 10-10-2021 11:59

Quote:

Originally Posted by fabrieunko (Post 494244)
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

fabrieunko 10-10-2021 23:18

thank you i will test


All times are GMT -7. The time now is 16:43.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com