Link to home
Start Free TrialLog in
Avatar of Engwi
Engwi

asked on

User Profiles / Insuffiecient access to files

Greetings

I have a process that runs in the backround that will act on a particular event on the system. When it does, it reads and potentially wirtes some info to a file in the program directory.

This poses a problem when a user logs into his / her workstation with an account that does not have the appropriate rights. I get access denied errors on the files I need to read / write....

What to do ?? Our customers would generally not like it to give their users admin rights on their PC's !

Any comments / suggestions or pointers would be greatly appreciated.

Kind Regards
 Engwi
ASKER CERTIFIED SOLUTION
Avatar of delphized
delphized

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Engwi
Engwi

ASKER

delphized

Bummer....

The Process does not run as a service !

Any other suggestions ?

Regards
 Engwi


 

have a look at W32 help on delphi at the ImpersonateLoggedOnUser function.
I think you could change the privileges for your application in this way.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Engwi

ASKER

gmayo

The install package I created installs by default to Program Files. How do I, create a "special" folder with full read write capabilities for all users.

Thanks in advance.

 Engwi
What install package are you using? Most decent ones will allow you to install to other directories. I didn't mean "special" as in different to a normal folder, just another folder outside of Program Files.

Geoff M.
Avatar of Engwi

ASKER

Greetings

I resloved this by using some components that allows me to modify the ACL of the directory I install the software in.. Given that the person installing the software is logged in with admin rights.

Kind Regards
 Engwi