How to copy/download file into Program Files without admin rights?

  admin, admin-rights, mfc, program-files, windows

I am working on a legacy MFC app that reads files from a set directory in Program Files but the .exe itself has to work from mostly anywhere else (including outside Program Files).

Is there any way to copy/download a file directly into Program Files without asking admin rights from the user? I am required that I do not ask for admin rights.

The MFC functions UrlDownloadToFile and CopyFile fail to save/copy a file directly into a Program Files folder when the application is ran without admin rights, although they run just fine if the app is run as admin.

One option could probably be specifying the path that the app should launch in, different from the actual .exe path, but I am not sure if that would help or how to do that.

Source: Windows Questions