|
|
#1 |
|
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? |
|
|
|
|
|
#2 |
|
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. |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|