Old 28th June 2018, 20:15   #1
pwnesto
Junior Member
 
Join Date: Jun 2018
Posts: 2
$APPDATA Not Making Use of SetShellVarContext all

Hi,

I'm trying to install to the SendTo folder for each user. $SENDTO in the manual does not make use of 'SetShellVarContext all' so I'm trying the following:

SetShellVarContext all
CreateShortCut '$APPDATA\Roaming\Microsoft\Windows\SendTo\[AppName].lnk' '[AppPath]' '%SystemRoot%\system32\SHELL32.dll' 168

The result still installs the link to the admin's SendTo directory only. The same method does work for Start Menu icons. Could this be a bug in $APPDATA?

Thanks!
pwnesto is offline   Reply With Quote
Old 28th June 2018, 20:57   #2
pwnesto
Junior Member
 
Join Date: Jun 2018
Posts: 2
Maybe this is more of a Windows limitation. It looks like the C:\ProgramData\... directory holds the Start Menu links which get replicated to every user, but Windows doesn't have a mechanism to do the same thing for SendTo links?
pwnesto is offline   Reply With Quote
Old 29th June 2018, 00:57   #3
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,926
No, there is no common/"all users" SendTo folder, only the Start Menu and Desktop merges the user and common shell folders (Desktop is not merged on older versions of Windows IIRC).

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump