mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-20 11:26:11 +00:00
Put Start shortcuts in allusers profile instead of currentuser
The default shell context in NSIS is for the current user. This causes $SMPROGRAMS to put the link in the current user's profile. Other users on the system get no start menu link. This is causing me trouble because I'm trying to deploy Meshlab in a school and by default only the user that installs the application gets the Start Menu shortcuts. Docs for SetShellVarContext at https://nsis.sourceforge.io/Docs/Chapter4.html
This commit is contained in:
parent
17d380b1f9
commit
dbba61dab8
@ -58,6 +58,7 @@ Section "MainSection" SEC01
|
||||
File "${DISTRIB_FOLDER}\meshlab.exe"
|
||||
File "${DISTRIB_FOLDER}\meshlabserver.exe"
|
||||
|
||||
SetShellVarContext all
|
||||
CreateDirectory "$SMPROGRAMS\MeshLab"
|
||||
CreateShortCut "$SMPROGRAMS\MeshLab\MeshLab.lnk" "$INSTDIR\meshlab.exe"
|
||||
CreateShortCut "$DESKTOP\MeshLab.lnk" "$INSTDIR\meshlab.exe"
|
||||
@ -314,6 +315,7 @@ Section Uninstall
|
||||
Delete "$INSTDIR\textures\*.jpg"
|
||||
Delete "$INSTDIR\textures\*.tga"
|
||||
|
||||
SetShellVarContext all
|
||||
Delete "$SMPROGRAMS\MeshLab\Uninstall.lnk"
|
||||
Delete "$SMPROGRAMS\MeshLab\Website.lnk"
|
||||
Delete "$DESKTOP\MeshLab.lnk"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user