cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
sudeep
Level 3

Changing Shortcut icon dynamically

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.

Regards
Sudeep
Labels (1)
0 Kudos
(3) Replies
Macintosh
Level 5

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.

http://ss64.com/nt/shortcut.html

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
0 Kudos
sudeep
Level 3

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.

Regards
Sudeep
0 Kudos
Macintosh
Level 5

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.

http://goinglinux.com/articles/DesktopLaunchers.html

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