cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
MichaelHu
Level 5

RunAs Administrator - but i need current user profile

Dear all!

I'm running my setup.exe using "RunAs Administrator". During the installation process i need to copy some files to the actual user profile. As I'm running setup as the administrator, the "CurrentUserProfile" path seems to be the one of the administrator.

Do you know a way to get the path of the current user profile?

Thanks a lot!

Michael
Labels (1)
0 Kudos
(1) Reply
alphacz
Level 5

If you're running as user 'a' and you want things put into user 'b's profile, you may need to employ something like Advertised Shortcuts or Active Setup (not recommended if you can help it in my experience) to run a repair of the install to install the files to where you want.

Chris
0 Kudos