I have an executable that, when installed in Windows, resides in C:\Program Files (x86)\ProgramName\. I've got data files in the install folder which are opened and read at run time. I open the files using a FTN95 'open' statement with the file designated by a text string beginning with 'C:\Program Files (x86)\ProgramName\'.
What some of our customers have found is that sometimes Windows makes copies of the data files and stashes them in C:\Users\[USER NAME]\AppData\Local\VirtualStore\Program Files (x86)\ProgramName\. What's worse is that when users install updated versions of our program, Windows doesn't update the Virtual Store copies of the data files with the consequence that my executable is opening and using out of date data files. This even though the updated data file is sitting right next to the executable in the install folder and I'm using a file address string pointing at the right file.
What's going on? Is there some syntax I can use for the 'open' statement or some other trick to let Windows know that I want to open the file I asked for not a copy of the file stashed in VirtualStore?
Thanks in advance for any comments or advice. Clay