开发者

NSIS - Desktop Shortcut For All Users

开发者 https://www.devze.com 2023-04-06 05:28 出处:网络
How can I create desktop sho开发者_开发技巧rtcuts for all user while installing a package?NSIS supports several of the common/shared special folders:

How can I create desktop sho开发者_开发技巧rtcuts 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

0

精彩评论

暂无评论...
验证码 换一张
取 消