Skip to content
⌘ NSIS Forum Archive

Problem deleting desktop shortcut

4 posts

IGx89#

Problem deleting desktop shortcut

I'm using NSIS20b3 and Modern UI. I'm creating a desktop shortcut like so:
  CreateShortCut "$DESKTOP\Freelancer Mod Manager.lnk" \
"$INSTDIR\FLModManager.exe" "" \
"$INSTDIR\FLModManager.exe" 0 'SW_SHOWNORMAL' \
'' "Freelancer Mod Manager"
and deleting it in my uninstaller like this:
Delete "$DESKTOP\Freelancer Mod Manager.lnk"
The problem is, the shortcut is still there after the uninstaller exits! Is this a bug, or am I not doing something right?
kichik#
Is your program a DOS program by any chance? I really dount it is, but if it is then the shortcut's name would be something.pif and not .lnk.
IGx89#
I got it figured out; I needed to add "SetShellVarContext all" to the uninstaller 😳.

Thanks anyway, though 🙂.