 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Colin B Maharaj Guest
|
Posted: Sun May 16, 2004 11:17 am Post subject: Running apps in XP with Admin access in a Non-Admin account |
|
|
Hi all, my application cannot seem to run (will explain) unless it is
running in an admin account in XP.
If I am a non-admin account, I get file errors and I cannot even open
files for reading and/or writing.
I do not want to use the 'run as other user' since I do not want the
current PC users to get admin access.
I will like to see the app run as an administrator - without prompting -
in the non-admin logged in account.
Thanks again.......
|
|
| Back to top |
|
 |
Tamas Demjen Guest
|
Posted: Sun May 16, 2004 4:07 pm Post subject: Re: Running apps in XP with Admin access in a Non-Admin acco |
|
|
Under W2000/XP, put your data files into "Documents and Settings", never
into "Program Files". Do a search for SHGetSpecialFolderLocation on
groups.google.com to see how to get the "Documents and Settings"
folder's path.
Tom
Colin B Maharaj wrote:
| Quote: | Hi all, my application cannot seem to run (will explain) unless it is
running in an admin account in XP.
If I am a non-admin account, I get file errors and I cannot even open
files for reading and/or writing.
I do not want to use the 'run as other user' since I do not want the
current PC users to get admin access.
I will like to see the app run as an administrator - without prompting -
in the non-admin logged in account.
Thanks again.......
|
|
|
| Back to top |
|
 |
Arthur Hoornweg Guest
|
Posted: Wed May 19, 2004 1:13 pm Post subject: Re: Running apps in XP with Admin access in a Non-Admin acco |
|
|
Colin B Maharaj wrote:
| Quote: | If I am a non-admin account, I get file errors and I cannot even open
files for reading and/or writing.
|
Use a decent setup program (I recommend InnoSetup) to create
the directories you want to write in, and to set the access
rights for "normal" users. This way your app will run fine
under a normal user account.
--
Arthur Hoornweg
(please remove the ".net" from my e-mail address)
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|