?
Solved

Do not have permission to register DLL's

Posted on 2006-06-21
3
Medium Priority
?
1,677 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 32

Accepted Solution

by:
and235100 earned 1600 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

If you build your web application in Visual Studio you'll get at least a few binaries, or .DLL, files in your bin folder. However, there is more compiling to be done. Normally this would happen when an ASP.NET resource within the web site is request…
We have adopted the strategy to use Computers in Student Labs as the bulletin boards. The same target can be achieved by using a Login Notice feature in Group policy but it’s not as attractive as graphical wallpapers with message which grabs the att…
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…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

764 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