Skip to content
⌘ NSIS Forum Archive

desktop shorcut problem

3 posts

aiko#

desktop shorcut problem

I'm sorry to post this. I have searching in forum but not find a solution.

All working good except one thing. All is installed, desktop shorcut is created with icon but it run apps in C:\WINDOWS\system32 not in INSTALLDIR 🙁
have use this:

!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
CreateDirectory "$SMPROGRAMS\$ICONS_GROUP"
CreateShortCut "$SMPROGRAMS\$ICONS_GROUP\miaou.lnk" "$INSTDIR\miaou.exe"
CreateShortCut "$DESKTOP\miaou.lnk" "$INSTDIR\miaou.exe"
!insertmacro MUI_STARTMENU_WRITE_END

If someone have a idea.

Thanks
Comperio#
Sounds like you may just need to SetOutPath to the proper directory before you create the shortcut

Take a look at this post:
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.
aiko#
thanks 🙂
already have SetOutPath "$INSTDIR"
need to add also before create shorcuts 🙂
work good now, big thanks