Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Register DLLs as a Non-Administrator and Writing to System32

Status
Not open for further replies.

jstiegelmeyer

Programmer
Dec 31, 2002
27
US
Does anyone know if there is a way to Register DLLs and OCXs using Visual Basic code and API calls if the user is logged in as a Non-Administrator?

Also, I am downloading files from our ftp site to the user's System32 folder, but I can't do that either unless the user is an administrator, or the administrator has given the user privileges to write to the System32 folder, which most administrators are unwilling to do.

I realize these are separate issues, but I think they may be linked. If there was a way to mock an Admin login using API calls, that would be very useful. Any ideas would be much appreciated.

Thanks in advance,
Jamie
 
I guess I'll answer my own post in case someone else has the same question.

First of all, a nonadministrator can download files to the System32 folder if they have been given write priveliges to that folder. This means the adminstrator must give them rights. Unfortunately, I haven't found another way to do this.

I found that once that is finished, the user is able to register DLLs and OCXs using the appropriate API calls, even if he is not an administrator.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top