RunAs Administrator - but i need current user profile
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?
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.