We have an installer created with the WiX toolset that needs to run escalated to do a per-machine install, but also needs to drop some things (e.g., installer logs, license info) in the current user's folder, because the application needs to access them later when run non-escalated.
Put another way, we start several functions using rundll32 from within the installer, and when the installer is run by a non-privileged user who has entered the Admin's credentials into the UAC prompt, when our code asks the system for the local AppData folder path we get the path to the folder for the Admin, not the installing user.
I guess this makes some sense, since the program is being run in the privileged context of the Admin. But we really need the installing user's info. And no, we cannot make it a pure per-user installation.
Is there a way to determine, when an application is being installed by a non-privileged user who's provided the administrator's credentials for escalation, the folder areas that correspond to the original, non-privileged user.
Thanks.