Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Security > Application Data Security in ProgramData folder

Reply
Thread Tools Display Modes

Application Data Security in ProgramData folder

 
 
Dweezil38
Guest
Posts: n/a

 
      08-14-2009

Hi ther

I've been searching high and low to find an answer to my problem, bu
no luck

I've got a Windows application that is using an Access Database t
track user data and an XML file to track where the database is located
I'm using VS 2008 on Vista Ultimate created using VB. My Deploymen
Project is creating a subform under C:\ProgramData and I can get m
files installed there no problem (DefaultLocation
[CommonFilesFolder]\[ProductName]). I've set the application UAC settin
to run "asInvoker", uiAccess=\"false\". The application appears t
read/write and update the Access Database tables no problem but if I tr
to Read or Write to my XML file, in the same folder, I get \"Acces
Denied\". I have also set my application security properties to \"Clic
once security settings\" and 'Full trusted application\". Still n
go!!?? I'm using a simple ReadXml and Write XML commands to update th
XML file. I am the Administrator on the computer

The application will be used by any user that logs onto the computer.
really don't want to change the UAC to \\"requireAdministrator\\\\"
I've seen referrences to \\\\"CoCreateInstanceAsAdmin\\\\" but m
managed code to update the XML file is all throughout the application s
I don't really want to create a separate COM for doing this updating
Also I'm not really sure how to use th
\\\\"ConvertStringDescriptorToSecurityDescriptor\\ \\" action in my code

Does anybody have a simple VB solution to this problem? Should I b
storing my Access Database and XML file in C:\USERS\PUBLIC? Sorry,
have tried this but I can't find a way to get my Deployment Project t
referrence this folder

Thanks Dweezi

--
Dweezil38
 
Reply With Quote
 
 
 
 
Dweezil38
Guest
Posts: n/a

 
      08-14-2009

Hi folks,

I found a problem in my code and can now read/write to my XML file. Bu
read/write from my Access Database is not working now

--
Dweezil38
 
Reply With Quote
 
Dweezil38
Guest
Posts: n/a

 
      08-14-2009

Hi again

I think I found the problem, AGAIN!!. My bad. If all testing goes wel
I believe this is a non-issue

Thank

--
Dweezil38
 
Reply With Quote
 
clawson
Guest
Posts: n/a

 
      09-08-2009

So what was the problem?

I'm having a similar issue, I'm not sure where I should be installing
the files for my program. I thought that ProgramData is the new all user
directory but when I run my program as a User I get an access denied
error when I try to write to this folder (obviously because the
permissions are set up that why).

So what is the best place to write files when my program is installed
that all users will be able to read/write to?


--
clawson
 
Reply With Quote
 
adamrob69
Guest
Posts: n/a

 
      05-03-2010

How did you do it? i have the same problem. My access database is fine
but i carnt write to text files in the application data directory

I have tried everything i can think off, and searched high and low

--
adamrob69
 
Reply With Quote
 
FromTheRafters
Guest
Posts: n/a

 
      05-03-2010

Many readers won't see the post that you are referring to, and won't
know what you are talking about. You should either include some quoted
material from the post when replying to a post, or better yet make an
entire new post with all of the relevant information included.

(I hate web-to-usenet gateways ... grumble... grumble)

"adamrob69" <> wrote in message
news:...
>
> How did you do it? i have the same problem. My access database is
> fine,
> but i carnt write to text files in the application data directory!
>
> I have tried everything i can think off, and searched high and low!
>
>
> --
> adamrob69



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fix my docs to an alternate location, permanently ToddAndMargo Windows Server 16 07-06-2009 02:44 AM
Server 2008 Script questions Michael R. Mastro II Windows Server 0 09-13-2008 04:31 PM
Roaming Profiles and redirected folders Scott Micale Windows Server 24 08-17-2007 06:30 PM
How could I do?? (updates) Corsair Windows 64 Bit 5 06-17-2007 03:57 PM
RE: Windows Server Functionality ptwilliams Windows Server 9 05-20-2005 01:51 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59