| View previous topic :: View next topic |
| Author |
Message |
Billy Guest
|
Posted: Tue Apr 10, 2007 2:53 am Post subject: Database Access Porblem on Vista |
|
|
My application uses MS Access Database. Installs Ok on Vista but a
permissions error is generated when the application tries to open the
database. How would I fix this.
Thanks in advance |
|
| Back to top |
|
 |
Chris Morgan Guest
|
Posted: Thu Apr 12, 2007 12:22 am Post subject: Re: Database Access Porblem on Vista |
|
|
Billy wrote:
| Quote: | My application uses MS Access Database. Installs Ok on Vista but a
permissions error is generated when the application tries to open the
database. How would I fix this.
|
Vista is very strict about the locations of files which can be
read and written to.
I bet that your MDB file is somewhere in the Program Files folder.
The only location to which a standard user has write access is
the equivalent of C:\Documents and Settings\<username>.
(On Vista I think this is C:\Users\<username>).
You may have to use a combination of the following options:
1. Use your setup script to change the permissions on the
folder in which you install the MDB file to allow global
read/write access
2. Create a manifest with elevated admin rights for your app
3. Recode your app to store the MDB file in the permitted location
for Vista compatibility.
Btw you can test most of this on XP by running as a non-admin
user. If you have an NTFS hard disk you will find that you have
the same restrictions on writing to the C:\ drive.
cheers,
Chris |
|
| Back to top |
|
 |
Guest
|
Posted: Thu May 10, 2007 12:38 am Post subject: Re: Database Access Porblem on Vista |
|
|
In article <461d3572$1 (AT) newsgroups (DOT) borland.com>,
chris.nospam (AT) lynxinfo (DOT) co.uk says...
| Quote: | The only location to which a standard user has write access is
the equivalent of C:\Documents and Settings\<username>.
(On Vista I think this is C:\Users\<username>).
|
What a perfect way to identify the first place for hackers to start
looking - force users to store their credit card numbers and letters to
the bank in a known location. |
|
| Back to top |
|
 |
|