PDA

View Full Version : why i can't creat shortcut on star menu ?


dong
23rd July 2007, 02:30
Hello everybody ?

I want creat shortcut in star menu but it can't. i compile file *.nsi no error, you see below:
CreateShortCut "$StartMenu\Loto\Lotto.lnk" "$InstDir\Lotto.exe"

i using winxp sp1. i creat shortcut on destop and star progame is normal. can you help me ? why ? you see below:
CreateShortCut "$SMPROGRAMS\Lotto\Lotto.lnk" "$INSTDIR\Lotto.exe"
CreateShortCut "$DESKTOP\Lotto.lnk" "$INSTDIR\Lotto.exe"

Red Wine
23rd July 2007, 04:13
There is not such constant $StartMenu, the correct is $SMPROGRAMS.

http://nsis.sourceforge.net/Docs/Chapter4.html#4.2.3

http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.3.4