Re: Program Files Read Only
- From: "DL" <notvalid@xxxxxxxxxxxxxxxxxx>
- Date: Mon, 13 Jul 2009 21:47:45 +0100
Not an answer, but its not a terribly good idea to hard code any data
location, or anything else, when writting an app, create a routine to locate
the data file, consign that to a variable, then use that variable for the
location
"Dweezil38" <guest@xxxxxxxxxxxxxxxxx> wrote in message
news:9e83b17afa4c3a5b4383a02dff067831@xxxxxxxxxxxxxxxxxxx
Hi There
I have a serious problem to fix. I've written a WIndows Application
using visual studio 2008 that uses an Access database to hold data. I've
placed the database in the same folder as the executible "C:\Program
Files\MyApp\MyData.mdb". The program installs and work fine under XP and
but when installed and run under Vista, I'm getting file permission
errors. All user installation and running of the application is done as
the ADMINISTATOR, the only user profile created.
My eariler version of the application, written with VS 2005 installs
(DOT NET Framework 2.0) and works fine under Vista.
I can't change the database location, as eariler versions of this same
program have been running and working fine under XP. It would mean
changing the data file location for over 200 customers. It would cause a
great deal of head aches to modify the application to use a different
folder for the database.
SO here's my questions. What permissions do I need to get read/write
access to my data file? What steps can be taken to remove the security
attributes on my data file? Can I change these permissions from within
my application? The application exe file does have its compatibilities
property set to "Run as an administrator". Do I have to run the
application under compatibility mode of "Windows XP (Service pack 2)"?
--
Dweezil38
.
- Prev by Date: Re: regarding windowsdefender problem
- Next by Date: Re: Program Files Read Only
- Previous by thread: Re: "Force shutdown from a remote system"
- Next by thread: Re: Program Files Read Only
- Index(es):
Relevant Pages
|