Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting up an icon for start menu folder group in InnoSetup

To my surprise I did not find the solution how to set up an icon for the start menu application group folder laying ahead. I am looking for the automatic solution in InnoSetup script.

Thank you in advance.

like image 328
algorytmus Avatar asked Feb 10 '12 12:02

algorytmus


1 Answers

Create the desktop.ini file with the content like this if you want to use the *.ico as a resource (where c:\somepath\icon.ico is path to your icon):

[.ShellClassInfo]
IconResource=c:\somepath\icon.ico,0

Or create the desktop.ini file with the content like this if you want to use the icon from the executable as a resource (where c:\somepath\program.exe is path to your executable):

[.ShellClassInfo]
IconResource=c:\somepath\program.exe,0

Save this desktop.ini file into the directory where you want to apply the icon. One very important note, you have to set to this newly created file attributes Hidden and System, otherwise it won't work!

So please check very carefully if the InnoSetup won't clear these attributes if you'll have the file included in your setup package while installing.

like image 181
TLama Avatar answered Sep 25 '22 06:09

TLama