Archive: Problem deleting desktop shortcut


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?

Does the error flag get set when doing the Delete operation?


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.


I got it figured out; I needed to add "SetShellVarContext all" to the uninstaller :o.

Thanks anyway, though :).