Skip to content
⌘ NSIS Forum Archive

Removal of short cuts fails

2 posts

jakobius#

Removal of short cuts fails

Hi,

I am having trouble setting up a script which removes the start menu items that the installer creates. Here is my NSIS script. The messages I get during install is
"E:\Users\JBL\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\[my app name]\App.lnk". When I go to this directory (after the installer has finished), it is empty, though.

What can be the reason of this behavior? Even more weirdly, the shortcuts _are_ created, but in the directory
E:\ProgramData\Microsoft\Windows\Start Menu\Programs\[my app name].

Any suggestions about this?

Thanks!

Below is my script,

Jakob


Section "Program files" SecProgramme
SectionIn RO

SetShellVarContext current ;entspricht HKCU (current user)


CreateDirectory "$SMPROGRAMS\${APPNAME}"
CreateShortCut "$SMPROGRAMS\${APPNAME}\App.lnk" "$INSTDIR\App.exe"
MessageBox MB_OK "$SMPROGRAMS\${APPNAME}\App.lnk"
[...]
SectionEnd
Anders#
This is a MS compatibility "feature". http://bit.ly/1E6iGS8 should give you http://nsis.sourceforge.net/Shortcut..._Windows_Vista