Solved

Do not have permission to register DLL's

Posted on 2006-06-21
3
1,668 Views
Last Modified: 2006-11-18
We are using regsvr32.exe to register our own VB created DLL. It works if we are logged on as an administrator.

However we need to be able to register the DLL whilst logged on as a normal user.  How do we give the normal users permission to register DLL's?

At the moment, when we try we get the following error message.

DllRegisterServer in c:\OurDLL\Customer.dll failed.  Return code was: 0x80004005


0
Comment
Question by:MortimerCat
  • 2
3 Comments
 
LVL 32

Accepted Solution

by:
and235100 earned 400 total points
ID: 16949628
You will probably have to give them local admin rights (or have your tried power users?), then they would have to use the runas command:

e.g. runas /noprofile /user:<local admin user> cmd
Password:

Then in the cmd window that appears, they will be able to register the dll.

0
 
LVL 1

Author Comment

by:MortimerCat
ID: 16949706
Thanks for that. Unfortunately, I do not think it will help in our case.  

The plan is that we are automatically rolling out software updates, whilst the user is still logged in. The runas command seems to require a manual interventation by an administrator, ie typing in the password.


0
 
LVL 1

Author Comment

by:MortimerCat
ID: 16954324
I have located a bit of freeware called "sanur" which acts as a wrapper for the runas command, and allows a password to be sent as a parameter.

Problem solved!
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Ok I have been working on this for some time having learned and gained certification in XenDesktop 4 along came version 5 which was released last month. Since then I have been working to deploy XenDesktop 5 in a small environment with only 2 virt…
cPanel is a Unix based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site. cPanel utilizes a 3 tier structure that provides functionality for administrators, rese…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question