Old 14th July 2006, 06:30   #1
y2kanily2k
Junior Member
 
Join Date: Jul 2006
Location: ADF
Posts: 6
Send a message via ICQ to y2kanily2k
Internet Shortcut Icon

Hi, How to show icon for the internet shortcut.
y2kanily2k is offline   Reply With Quote
Old 14th July 2006, 08:19   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
WriteINIStr "$SMPROGRAMS\MyApp\Shortcut.url" "InternetShortcut" "URL" "http://mywebsite.com"

-Stu
Afrow UK is offline   Reply With Quote
Old 14th July 2006, 08:53   #3
y2kanily2k
Junior Member
 
Join Date: Jul 2006
Location: ADF
Posts: 6
Send a message via ICQ to y2kanily2k
Hi I want to display a icon instead of internet explorer icon for the shortcut.
y2kanily2k is offline   Reply With Quote
Old 14th July 2006, 12:39   #4
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Not possible as far as I am aware.

-Stu
Afrow UK is offline   Reply With Quote
Old 14th July 2006, 14:44   #5
vitoco
Junior Member
 
Join Date: May 2006
Posts: 22
code:
WriteINIStr "$SMPROGRAMS\MyApp\Shortcut.url" "InternetShortcut" "URL" "http://mywebsite.com"
WriteINIStr "$SMPROGRAMS\MyApp\Shortcut.url" "InternetShortcut" "IconFile" "$INSTDIR\file.dll"
WriteINIStr "$SMPROGRAMS\MyApp\Shortcut.url" "InternetShortcut" "IconIndex" "0"


file could also be .exe or .ico

BTW, never tried by me using NSIS... Just guessing (again)

++Vitoco
vitoco is offline   Reply With Quote
Old 14th July 2006, 14:58   #6
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
You're right. Googled for InternetShortcut and IconFile and came up with some results.

-Stu
Afrow UK is offline   Reply With Quote
Old 14th July 2006, 15:15   #7
vitoco
Junior Member
 
Join Date: May 2006
Posts: 22
I've just googled for your keywords, and the first result is a NSIS macro

So, the answer was in the Wiki!
vitoco is offline   Reply With Quote
Old 23rd August 2006, 21:38   #8
zeromoney
Junior Member
 
Join Date: Aug 2006
Posts: 3
Hi, I'm using

WriteINIStr "$SMPROGRAMS\MyApp\Shortcut.url" "InternetShortcut" "URL" "http://mywebsite.com"

to add an internet shortcut to my website, right.
The problem is, IconFile and IconIndex keeps adding by itself!!!
It adds http://mywebsite.com/favicon.ico as the IconFile and 1 as the Icon Index, it looks like this:

IconFile=http://mywebsite.com/favicon.ico
IconIndex=1

Why does this keep adding itself? I didn't put that crap in there and I don't want it!
zeromoney is offline   Reply With Quote
Old 25th August 2006, 12:12   #9
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
It's probably a feature of Internet Explorer that sets the shortcut's icon to the icon the website defines. I'd guess the only workaround is defining your own icon.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 27th August 2006, 04:03   #10
zeromoney
Junior Member
 
Join Date: Aug 2006
Posts: 3
well NSIS's own installer doesn't add that crap.
zeromoney is offline   Reply With Quote
Old 27th August 2006, 05:31   #11
zeromoney
Junior Member
 
Join Date: Aug 2006
Posts: 3
An update: I cleared out my Internet Explorer cache, and now the problem is solved! Crap isn't added!
zeromoney is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump