Skip to content
⌘ NSIS Forum Archive

Shortcut doesn't work

4 posts

alecs26#

Shortcut doesn't work

Hello,

My NSIS script installs some shortcuts (desktop and start menu). It works well on several computers I tested.
 CreateShortCut "$SMPROGRAMS\AssystMouseBeta\AssystMouseBeta.lnk" "$INSTDIR\AssystMouseBetaV0R1.exe"
CreateShortCut "$DESKTOP\AssystMouseBeta.lnk" "$INSTDIR\AssystMouseBetaV0R1.exe"
However, on some computers, none of the shortcut is created. The thing they have in common is that I am not admin on these computers. When I run the installer, the administrator must give his user name and password.

Thank you very much,

Alex
alecs26#
Thanks for your answer.
I am a newbie with NSIS and I used HM NIS Edit to create the script.

There is no SetShellVarContext in the script and I don't know what it does !

Thanks,

Alex
Anders#
You could use Process Monitor to see where it tries to write and why it fails. Only Administrators can write to the shared startmenu folder in ProgramData.