MYDOCUMENTS on Windows 7 running as a standard user

Got a problem you cannot solve? Try here.
Post Reply
cancelor
Posts: 16
Joined: Mon Oct 22, 2007 4:22 pm

MYDOCUMENTS on Windows 7 running as a standard user

Post 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)
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Re: MYDOCUMENTS on Windows 7 running as a standard user

Post by MichaelNesmith »

It is probably because of the elevation that you are getting the administrator folder.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
cancelor
Posts: 16
Joined: Mon Oct 22, 2007 4:22 pm

Re: MYDOCUMENTS on Windows 7 running as a standard user

Post 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!
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Re: MYDOCUMENTS on Windows 7 running as a standard user

Post by MichaelNesmith »

Probably not actually :(
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Re: MYDOCUMENTS on Windows 7 running as a standard user

Post 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!
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Post Reply