How can I create desktop shortcuts for all user while installing a package?
NSIS supports several of the common/shared special folders:
SetShellVarContext all
CreateShortcut "$desktop\myapp.lnk" "$instdir\myapp.exe"
This code assumes you are elevated...
With !include NTProfiles.nsh
[1] you can create a shortcut in the folder "${ProfilePathAllUsers}\Desktop"
.
[1] - http://nsis.sourceforge.net/NT_Profile_Paths
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With