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