This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallAnywhere
- :
- InstallAnywhere Forum
- :
- Changing Shortcut icon dynamically
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 03, 2012
12:52 AM
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
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
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 03, 2012
05: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.
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
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
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 03, 2012
06: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.
Regards
Sudeep
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
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 06, 2012
12: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.
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.
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.