BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Running apps in XP with Admin access in a Non-Admin account

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Non-Technical)
View previous topic :: View next topic  
Author Message
Colin B Maharaj
Guest





PostPosted: Sun May 16, 2004 11:17 am    Post subject: Running apps in XP with Admin access in a Non-Admin account Reply with 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
Tamas Demjen
Guest





PostPosted: Sun May 16, 2004 4:07 pm    Post subject: Re: Running apps in XP with Admin access in a Non-Admin acco Reply with quote



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





PostPosted: Wed May 19, 2004 1:13 pm    Post subject: Re: Running apps in XP with Admin access in a Non-Admin acco Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Non-Technical) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.