BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Database Access Porblem on Vista

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Deployment
View previous topic :: View next topic  
Author Message
Billy
Guest





PostPosted: Tue Apr 10, 2007 2:53 am    Post subject: Database Access Porblem on Vista Reply with 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.

Thanks in advance
Back to top
Chris Morgan
Guest





PostPosted: Thu Apr 12, 2007 12:22 am    Post subject: Re: Database Access Porblem on Vista Reply with quote



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






PostPosted: Thu May 10, 2007 12:38 am    Post subject: Re: Database Access Porblem on Vista Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Deployment All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.