Skip to content
⌘ NSIS Forum Archive

CreateShortCut Problem

5 posts

cablenut#

CreateShortCut Problem

I'm creating a set of start menu shortcuts, and they all create fine except for the shortcut that points to a folder. Even though it points to the correct path it will bring up a "Open with..." dialog box.

Here is the code:


CreateDirectory "$SMPROGRAMS\CableNut"

CreateShortCut "$SMPROGRAMS\CableNut\CableNut Adjuster.lnk" "$INSTDIR\adjuster.exe" "" "$INSTDIR\adjuster.exe" 0
CreateShortCut "$SMPROGRAMS\CableNut\Readme.lnk" "$INSTDIR\Readme.url" "" "$INSTDIR\Readme.url" 0
CreateShortCut "$SMPROGRAMS\CableNut\CableNut Forums.lnk" "$INSTDIR\CableNut Forums.url" "" "$INSTDIR\CableNut Forums.url" 0
CreateShortCut "$SMPROGRAMS\CableNut\Donate.lnk" "$INSTDIR\Donate.url" "" "$INSTDIR\Donate.url" 0
CreateShortCut '$SMPROGRAMS\CableNut\CCS.lnk' '$INSTDIR\ccs\'
CreateShortCut "$SMPROGRAMS\CableNut\Uninstall CableNut.lnk" "$INSTDIR\uninst-cablenut.exe" "" "$INSTDIR\uninst-cablenut.exe" 0
Also I'm probably on some good drugs, but as I see in the v1.60 NSIS install file you can have text on the background part of the Installer, and mine does not show.

Thank You!
DuaneJeffers#
Try This:


CreateShortcut "$SMPROGRAMS\CableNut\CCS.lnk" \
"$INSTDIR\CCS"
If that doesn't work, then reply.

-Duane
NSIS Project House
Schultz#
hum that shortcut should work. this pulled straight from makensis.nsi

CreateShortCut "$SMPROGRAMS\NSIS\NSIS Program Directory.lnk" \
"$INSTDIR"
Also to have the text show up just have a third option to BGGradient which is the text number.. it will use the text you put as caption i belive.
BGGradient 000000 308030 FFFFFF