AppDataFolder and run as administrator - Advanced Installer Community
dplaut
Posts: 3
Joined: Tue May 22, 2018 1:18 pm

AppDataFolder and run as administrator

If I need to install a file to AppDataFolder
Assuming the user is prompted to run the installer as the admin
Then what context is AppDataFolder, the user or the admin? If the context is admin then how do I put a file into the user's AppDataFolder?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: AppDataFolder and run as administrator

Hi and welcome to our forums.

The "AppDataFolder" property will always be resolved to the logged on user folders, regardless the UAC prompt. There are, however, some folders (found under "C:\Users\Public"), that are redirected depending on the package type.

You can see more details in the "Paths of the folders in the "Files and Folders" Page" article.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”