View Full Version : Changing Shortcut icon dynamically

01-03-2012, 01:52 AM
Hi there,

We have an installer requirement here whereby a user has privilage of changing shortcut icon image externally.

For this, user shall provide Image name and path in properties file placed adjacent to installer executable. My question is whether this is feasible with existing IA properties and actions?

We have been able to chage shortcut titles dynamically through properties file. We need to create this installer for 3 platforms: Windows, Mac and Linux.

Any suggestions regarding this would be of great help.


01-03-2012, 06:16 AM
As far as I know you can't assign a different icon file to the shortcut at run time as the path and file name of the icon gets resolved during the build of the project.

What you can do is to execute a script in post-install phase to change the icon file of the shortcut which was installed in Install phase. I am not sure if this kind of script exists or not. I found this link to create/modify properties of the shortcut.


If you are able to change the icon file by using script outside the installer (manually) then you can use the same in Execute Script/Batch file action by adding it in post-install phase reading inputs from properties file.

-- Mac

01-03-2012, 07:05 AM
Hi Mac,

Thanks for the suggestion. But i am afraid this solution would only cater to Windows platform.

Looking for some generic solution for this. Or some custom action.


01-06-2012, 01:46 AM
As I am aware, there is no generic action or function, but I checked that in Linux we can change the icon manually. Hence I believe there would be some command to change the icon.


Once you know the process to change the icon then I believe you can change it using custom action as well.