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)
MYDOCUMENTS on Windows 7 running as a standard user
-
MichaelNesmith
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
Re: MYDOCUMENTS on Windows 7 running as a standard user
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/
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
Re: MYDOCUMENTS on Windows 7 running as a standard user
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!
Thanks!
-
MichaelNesmith
- Posts: 3452
- Joined: Thu Dec 22, 2005 7:17 pm
- Contact:
Re: MYDOCUMENTS on Windows 7 running as a standard user
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/
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
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!
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/
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/

