Archive: UAC Plugin Question


UAC Plugin Question
First off, thank you Anders for writing the plugin.

I'm new to NSIS, so please take it easy on me. I think I've read all the documentation I can find on the UAC plugin, but couldn't figure out if it's possible to do what I want:

Is there any way to return a value from a function that's executed with UAC.CallFunctionAsUser? I'm currently using that feature to install some files to the current user's (not admin's) $LOCALAPPDATA folder, after the UAC elevation occurs. I would prefer to do the installing from the Admin process so that the files show up in the Installation Details page. I could do that if there was a way to reference the current user's app data folder in the admin process. Is there any way of sharing information/variables between the two installer instances other than writing to the registry or a file?


nope, sorry

the correct way to do this is to store the files in $programfiles and the first time a user runs your app, copy the files to their $LOCALAPPDATA