I have two users defined on my Win7 machine, one is an administrator login, the other is a standard user. When running an NSIS install as the standard user, UAC privilege elevation works as expected and all other installer actions work as expected (Program Files, shortcuts, registry keys, etc.). However the expansion of $LOCALAPPDATA contains the name of the administrative user instead of the user that I'm logged in as.
I'm using NSIS 2.45, advanced logging build, on Win7 build 7100.
I can be reached at jeremy@perceptivepixel.com.
This is how it's supposed to work, if you require elevation, you are doing a all users install and should not touch appdata/localappadata/HKEY_CURRENT_USER