Appdata files going to admin's appdata instead of standard user
Posted: Mon Sep 24, 2018 2:17 pm
Hello,
I have built an installation with the UAC setting of "Always Elevate (require administrator). My installation puts data files in the $MYAPPDATA$ folder. When a standard user that is not a local administrator runs the installation they are prompted to enter an administrator username and password as expected to be able to proceed. Unfortunately the installation puts the files from $MYAPPDATA$ into the adminstrator's appdata folder and not the original standard user's appdata folder. Consequently when the standard user runs the program it fails because it is looking for these data files in their appdata folder and they are not there.
What must be done so that even when the standard user starts the installer and gets an administrator to enter their credentials, the data files can be placed in the standard user's appdata folder?
Thanks
Frank
I have built an installation with the UAC setting of "Always Elevate (require administrator). My installation puts data files in the $MYAPPDATA$ folder. When a standard user that is not a local administrator runs the installation they are prompted to enter an administrator username and password as expected to be able to proceed. Unfortunately the installation puts the files from $MYAPPDATA$ into the adminstrator's appdata folder and not the original standard user's appdata folder. Consequently when the standard user runs the program it fails because it is looking for these data files in their appdata folder and they are not there.
What must be done so that even when the standard user starts the installer and gets an administrator to enter their credentials, the data files can be placed in the standard user's appdata folder?
Thanks
Frank