Archive: Start menu IE icon not visible


Start menu IE icon not visible
Hi,

I have created a start menu, its contains a website link.
This works fine in IE 6 but when my application is installed on a system with IE 7 it does not show me the IE icon. Can someone pls help me with this. I am not able to understand where im going wrong.
Please advice...


it helps if you show the code that creates the link


Hi,
The code is from an example of create shortcut icon from NSIS itself. I have only added a url to it.

-------------------
# define name of installer
!define PRODUCT_WEB_SITE "http://sourceforge.net/projects/nsis/"
!define PRODUCT_NAME "New shortcut"
outFile "installer.exe"

# define installation directory
installDir $DESKTOP

# start default section
section

# set the installation directory as the destination for the following actions
setOutPath $INSTDIR

# create the uninstaller
writeUninstaller "$INSTDIR\uninstall.exe"

# create a shortcut named "new shortcut" in the start menu programs directory
# point the new shortcut at the program uninstaller
WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
createShortCut "$SMPROGRAMS\new shortcut.lnk" "$INSTDIR\uninstall.exe"
CreateShortCut "$SMPROGRAMS\new shortcut.lnk" "$INSTDIR\${PRODUCT_NAME}.url"
sectionEnd

# uninstaller section start
section "uninstall"

# first, delete the uninstaller
delete "$INSTDIR\uninstall.exe"

# second, remove the link from the start menu
delete "$SMPROGRAMS\new shortcut.lnk"

# uninstaller section end
sectionEnd

-------------------

This works fine on a IE6 but on IE7 i do not see the internet icon. I can see some garbage instead of internet icon on IE7. Is the issue due to IE7 or is there some other problem..
Kindly help me resolve this.


can some1 please help me with this...


Update the following line...

CreateShortCut "$SMPROGRAMS\new shortcut.lnk" "$INSTDIR\${PRODUCT_NAME}.url"

to...

CreateShortCut "$SMPROGRAMS\new shortcut.lnk" "$INSTDIR\${PRODUCT_NAME}.url" "" "shell32.dll" 13


well, you don't really need a shortcut, you could create the .url file directly in the start menu (And as a final note, you are not really supposed to put link's to URL's and the uninstaller in the start menu if you want to follow the MS guidelines)