I've posted before about problems I've had running applications on my school server that use INI files to save information. The application is stored and run from a drive (Ton the server. When run, the application uses an INI file to store the names of student teams. If left to it's own devices, the INI file will be stored in the C:\windows directory. The desktops in our school run the application over the server with no problems. But the laptops will either crash the application or just not be able to save the team names and leave those places in the screens blank. The problem can be solved if students are given permissions to access the INI file names in the C:\windodws directory, but that does not make your tech department happy.
I'll describe my "solution", which was based on a number of responses to my previous posts, and then I have a few questions. Thanks to all who contributed to those replies.
First I created a directory called "categories" using the file object and the Application Data Directory option. Then at the start of any frame that contains the INI objects, I set the current INI file name to the Application Data Directory + INI file name.
I've tested this on one laptop at school and it does not work with the old version that saved to C:\windows but does work with the new version as described. They are running Windows XP Pro.
Now the questions. I do have this application for sale and have had a buyer run into this problem, so I am, of course interested in making sure that it is totally solved.
1) Is there another file location other than the Application Data Directory that would be better to use? Like Users Directory, All Users Directory, etc.
2) Will this set up work with Windows Vista? I just don't have a Vista server to test it on, so anybody's experience or opinion would be helpful.
3) The application is installed using Install Creator Pro. Is there any special settings when I create the install to make this work properly, especially in Windows Vista.
So, hopefully this will help others who may be facing this problem and any feedback would be appreciated.