Page 1 of 1

MYDOCUMENTS on Windows 7 running as a standard user

Posted: Sun Jun 06, 2010 3:22 pm
by cancelor
Hello, I have my setup running on Windows 7 (UAC with AlwaysElevate setting) as a standard user (not as an administrator). It works fine, but when I run Get Folder Location MY->MYDOCUMENTS, the resulting path points to the administrator's document folder.

How can I access My Documents for the user that is running the setup?

Thanks in advance!
(IA 9R2)

Re: MYDOCUMENTS on Windows 7 running as a standard user

Posted: Sun Jun 06, 2010 4:22 pm
by MichaelNesmith
It is probably because of the elevation that you are getting the administrator folder.

Re: MYDOCUMENTS on Windows 7 running as a standard user

Posted: Mon Jun 07, 2010 12:55 am
by cancelor
I guess you too. Do you think there is no way to access the MYDOCUMENTS folder when running with elevated rights? Would really be a pity!

Thanks!

Re: MYDOCUMENTS on Windows 7 running as a standard user

Posted: Mon Jun 07, 2010 3:09 am
by MichaelNesmith
Probably not actually :(

Re: MYDOCUMENTS on Windows 7 running as a standard user

Posted: Mon Jun 07, 2010 3:10 am
by MichaelNesmith
You could actually do this -

Launch non-elevated setup stub; this just writes some variables to a file in $TEMP$...

Then launch the elevated actual setup from the stub!