orencs
31st August 2009 08:41 UTC
desktop shortcut to URL + Icon chage
Hi All,
I am using the CreateURL macro to create a desktop shortcut to a URL
it works great - BUT I AM LOOKING FOR A WAY TO CHANGE THE SHORTCUT ICON
can anyone please help!!!?
----The Macro---
!Macro "CreateURL" "URLFile" "URLSite" "URLDesc"
WriteINIStr "$EXEDIR\${URLFile}.URL" "InternetShortcut" "URL" "${URLSite}"
----The usage
!insertmacro "CreateURL" "williamhill ****** Flash" "http://www.google.com" "williamhill ****** Flash"
Anders
31st August 2009 14:39 UTC
WriteINIStr "$desktop\${URLFile}.URL" "InternetShortcut" IconIndex=0
WriteINIStr "$desktop\${URLFile}.URL" "InternetShortcut" "IconFile=$windir\explorer.exe"
NOTE: The MS guidelines tell you to not create anything on the desktop.
orencs
31st August 2009 19:11 UTC
not sure that this is what I need
Anders, thank you very much
I am not sure that this is what I seek for
1. I need internet shortcut - I have it
2. I want it to be with Icon that I provide and not the default browser icon (in my case internet explorer)
3.my setup do nothing but creating this shortcut.
4. the icon does not exist in any exe in any PC it is mine
Hope you can help with that
Thanks in advance
Oren
pengyou
31st August 2009 20:20 UTC
I am not sure that this is what I seek for
Try reading Anders reply again. What you need to do is
add some extra lines to your internet shortcut to specify the icon you want to use. Don't forget to install your icon file.
orencs
3rd September 2009 21:58 UTC
shortcut on netword desktop
Hi
I got it working.
Now I have tackled with new issue.
For users that have networked desktop it does not work.
in some the shortcut is created with no icon and in some the shortcut doesn't created at all.
Anyone have a clue
??
Thanks in advance
Oren