Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 23rd July 2009, 02:32   #1
mtconleyuk
Junior Member
 
Join Date: Nov 2005
Posts: 38
Getting path to remote My Documents via UAC?

I'm testing my installer on a Standard User account for which the My Documents folder has been set to be on another computer (so the path to it is //myserver/myaccount/pathtomydocuments/).

The installer calls UAC::GetShellFolderPath() with ${CSIDL_PERSONAL} to get the path to the user's My Documents folder. This works fine when the installer is running with user privileges.

Once I call UAC::RunElevated(), however, the call to GetShellFolderPath() fails; the path returned is the empty string.

This only occurs if the My Documents folder has been mapped to another system; as soon as I restore it to its default location, things work fine.

Any idea what might cause this?
mtconleyuk is offline   Reply With Quote
Old 23rd July 2009, 08:12   #2
mtconleyuk
Junior Member
 
Join Date: Nov 2005
Posts: 38
Hm. Well, one thing that causes it is when I don't have the permissions set correctly on the remote share. That seems to have cleared it up.

I do seem to keep answering my own questions. Probably the process of formulating them for others that makes me think a little more clearly. Sorry for any annoyance factor.
mtconleyuk is offline   Reply With Quote
Reply
Go Back   Winamp 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