|
|
#1 |
|
Junior Member
Join Date: Aug 2008
Location: Baton Rouge, LA
Posts: 1
|
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? |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
|
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 IntOp $PostCount $PostCount + 1 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|