Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / COM / December 2003



Tip: Looking for answers? Try searching our database.

Acessing system registry

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
nader galal - 29 Dec 2003 08:02 GMT
Hi All
I have developed a program using visual basic that works only if the
user on
the system is an administrator.
I would appreciate some help on how to give the right permissions for
this
user to use the application only.
Also Visual basic doesn't run correctly from a regular user, specially
when
i try to access the Project References, so i might need some help into
that
too.
Thanks in advance
Jens Neuhalfen - 29 Dec 2003 15:44 GMT
Hi Nader,

I do not fully understand your posting, so I will rephrase what I
understood:

Q: You want your application only to be usable by the administrator?
A: Two things come to mind:
  * the easiest (and preffered) way would be to set the file-acl to
    disallow other users from reading/executing the exe-file
  * Check if the current user is in the admin-group at startup
    (Sub Main)

Q: Your VB-IDE does not work correctly when you are logged in as a
    non-administrator user
A: I think you already suspect the registry to be the problem. If it is
   access-permissions use the www.sysinternals.com tools (Regom/Filemon)
   to find out what goes wrong. Also try to add all VB-users to the
   powerusers group

Jens

> Hi All
> I have developed a program using visual basic that works only if the
[quoted text clipped - 12 lines]
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!
nader galal - 30 Dec 2003 09:34 GMT
Hi Jens
Thanks for your reply and sorry if my message wasn't clear.
What i meant was the second option, i need to run my application from a
non administrator user, i tried using the regmon software and the
regedt32 command but i still couldn't solve this problem, i am still
trying anyways
Thanks
Nader
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.