Re: Application permissions in Delphi
Posted by webmaster Guido on December 31, 2003 at 17:21:07:
In Reply to: Re: Application permissions posted by Gary Wakerley on December 30, 2003 at 16:38:04:
: : : I have developed an application that works fine when I use it with administration privileges. When I deploy it to user it does not work. When I use runas with administrator rights it is ok.
: : This indicates that the program wants to access something that the "user" is not allowed to, such as accessing a part of the network, a folder, reading or writing a file,...
: : The best approach is working step by step: what is the user not allowed to do that might block the program?
: Thanks for your help. I am using a dll for storing external functions which are reuseable. I think this is the problem area. Can you think why this will not work?
One would expect that users have "read" access privileges to the necessary DLLs. That's why most DLLs are located in the "system" folder.
Where is your DLL located?
1. If the DLL is in the Windows' \SYSTEM folder (or \SYSTEM32, depends from the Windows version), it should work. Otherwise, the user would not be able to use any other program that depends on DLLs.
2. If the DLL is in the same folder as the application's exe file, everything should also work -- because without "read" rights, the user wouldn't even be able to launch your application.
3. If the DLL is in another folder, try one of these options:
Can you please let us know if this helped? If not, don't hesitate to give some more details and I'll continue to look for solutions.
[ DelphiLand: free Delphi source code, tips, tutorials ]