SetShellVarContext currentThen change it later on (in same section) to
SetShellVarContext allThen change it again to
SetShellVarContext current?
The goal is to place some shortcuts on the Start Menu of the Administrator only, then place some items on the Start Menu of All Users, then restore ShellVarContext back to current.
I just tried that and it didn't work for me. So either there is an inherent limitation of which I didn't know or I am doing something wrong.
If the latter, any idea what could possibly go wrong in simple code like this?
SetShellVarContext all
CreateShortCut "${D_STARTMENU}\\MyApp.lnk" "myapp.exe"
SetShellVarContext current