Question Where to added/install a database file in Windows 7

darbid

Registered User.
Local time
Tomorrow, 00:09
Joined
Jun 26, 2008
Messages
1,428
I have an A2007 file with a lot of helper files such as Office templates, and icons and other files used by Access to do its job e.g.. an ini file for settings and multi language things.

Due to my lack of knowledge at the time and because it was easy, in XP my installer program I made myself created a folder in the Program Files folder of the users computer and all these files were saved there. I then put a link on the users desktop to a small program that called the database.

Now we are going to big school now and I have to create a new installer for Windows 7.

So my question is where should I be saving my files.

I notice that if I now want to save files in Program Files the user is going to have to elevate my .exe or other program under UAC.

It seems that what I have to do now is save my files in two places. Static files that are only read can be in program files and then anything that is read and written to such as a users settings saved in an .ini file would have to be in there own user folder.
 
thanks for answering. So just so we are on the same page you mean for example

C:\Users\(user-name)\.....
 
That sounds interesting, so what happens if they choose the Programs Folder, then do you tell them not there or do you check to see if you have the UAC rights to copy the files to the selected folder?

Also do they use multi-user machines? If they put it in their own folder then it would not be visable to others. If they put it into a system or all users folder then all would see it.
 

Users who are viewing this thread

Back
Top Bottom