Logged-in user profile vs running-as user profile
Posted: Wed Dec 21, 2022 11:28 am
Hello,
I am using InstallAware 10 with requireAdministrator for UAC Elevation. This works great for other things that I need and don't want to change that. However, when installing shortcuts to personal folders, I'd prefer if I could do it for the logged in user even if the installation required elevation. For example:
A standard user, "Bob", runs the installer. Windows UAC prompt asks for elevation by an admin account and they choose "Admin". Now since the installer is running as "Admin", using Get Folder for personal directories or expanding the %userprofile% environment variable returns things under the "Admin" account. Is it possible to get the location of personal folders for the "Bob" account while running as a different user?
Thanks for anyone that can advise.
Ruth
I am using InstallAware 10 with requireAdministrator for UAC Elevation. This works great for other things that I need and don't want to change that. However, when installing shortcuts to personal folders, I'd prefer if I could do it for the logged in user even if the installation required elevation. For example:
A standard user, "Bob", runs the installer. Windows UAC prompt asks for elevation by an admin account and they choose "Admin". Now since the installer is running as "Admin", using Get Folder for personal directories or expanding the %userprofile% environment variable returns things under the "Admin" account. Is it possible to get the location of personal folders for the "Bob" account while running as a different user?
Thanks for anyone that can advise.
Ruth