Old 28th February 2010, 04:08   #1
SteveRussell
Senior Member
 
Join Date: Mar 2006
Location: United States
Posts: 109
I see now that we are describing two different situations. Yes, your code opens a window immediately. But I am talking about the application desktop item.

Still the shortcut wants a program to be specified before opening. And again, if I open the shortcut, edit it in any manner and close it, it works fine.

Section "MainSection" SEC01
MessageBox MB_YESNO "Would you like to have a shortcut on your desktop?" IDNO +2
Call DesktopShortcut

Function DesktopShortcut
SetOutPath $appdata ;"random" outdir
CreateShortCut "$DESKTOP\${DESKTOP_NAME}.lnk" "$INSTDIR\${PRODUCT_NAME}" "" "${MUI_ICON}"
FunctionEnd

Last edited by SteveRussell; 28th February 2010 at 04:33.
SteveRussell 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