Dweezil38 wrote:
> 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)"?
>
>
Data should never be saved in the C:\Programs Files area. That's very
poor practice. I'd suggest you fix the application. As it is, you
cannot even honestly claim that the application is WinXP-compatible,
much less Vista-compatible.
--
Bruce Chambers
Help us help you:
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/default.aspx/kb/555375
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. ~Benjamin Franklin
Many people would rather die than think; in fact, most do. ~Bertrand Russell
The philosopher has never killed any priests, whereas the priest has
killed a great many philosophers.
~ Denis Diderot