Announcement

Collapse
No announcement yet.

Shortcut doesn't work

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Shortcut doesn't work

    Hello,

    My NSIS script installs some shortcuts (desktop and start menu). It works well on several computers I tested.
    code:
    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

  • #2
    Are you using SetShellVarContext in your script?
    IntOp $PostCount $PostCount + 1

    Comment


    • #3
      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

      Comment


      • #4
        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.
        IntOp $PostCount $PostCount + 1

        Comment

        Working...
        X
        😀
        🥰
        🤢
        😎
        😡
        👍
        👎