Archive: Create shotcut to IE and specify the URL


Create shotcut to IE and specify the URL
Hi, I am trying to create a shortcut to IE in Start\Programs. I am successfully creating shortcuts to other files and solders. But how would I create this shortcut to IE browser with a specified URL. I know that this can be done in NSIS installer as I have seen it in Tomcat.exe.

Thanks


While I appologize I don't know the answer to your question, I can state that unless you specifically need IE, you really should load up the default browser instead of IE.

I saw this because there are people out there who will refuse to use any program which forces them to use IE. I myself am one of them.


I have used IE in the text but in fact it would idealy be any default browser. But as 99% of users of the application that my installer will install use IE. And that is why I have asked about IE.


WriteINIStr "$SMPROGRAMS\${APP_NAME}\Online Help.url" "InternetShortcut" "URL" "${URL_HELP}"


Thanks for reply, but where to use it and will this command create a link in the Start\Programs\My App folder. Could you explain a bit what I'm doing in here.

Thanks


Use it in section where you create links. This command creates url-link in the Start\Programs\${APP_NAME} folder. User will see "Online Help" item with browser's icon there. Defines are following:

!define APP_NAME "Image Player"
!define URL_HELP "http://nanaimo.extendeddigital.com/help.php"


I have used the command but it is not creating the link in the Start\Programs. Here is the code that i used in my installer, this way you might tell me what am I doing wrong that it is not wotking.

!insertmacro MUI_STARTMENU_WRITE_BEGIN Application

;Create shortcuts
CreateDirectory "$SMPROGRAMS\$STARTMENU_FOLDER"
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Uninstall.lnk" "$INSTDIR\Uninstall.exe"
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Tomcat5.lnk" "$INSTDIR\Tomcat5"
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\jdk1.5.0.lnk" "$INSTDIR\jdk1.5.0"
CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\License.lnk" "$INSTDIR\License.txt"
WriteINIStr "$SMPROGRAMS\${APP_NAME}\Start LocalAlert.url" "InternetShortcut" "URL" "${URL_HELP}"

!insertmacro MUI_STARTMENU_WRITE_END


WriteINIStr "$SMPROGRAMS\$STARTMENU_FOLDER\Start LocalAlert.url" "InternetShortcut" "URL" "http://nsis.sourceforge.net"


Thanks that works.