Old 28th August 2008, 14:42   #1
KyleG
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?
KyleG is offline   Reply With Quote
Old 28th August 2008, 15:40   #2
Anders
Moderator
 
Anders's Avatar
 
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
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