Registering a dll returns 0x80020009 error

2019-02-11 11:40发布

问题:

I am trying to register with regsvr32.exe the prnadmin.dll (on a Win7 target machine) but i get this error 0x80020009

Any suggestions please?

回答1:

regsvr32.exe needs to be run as an administrator. Maybe this was the cause?



回答2:

For Windows Vista/Windows 7 users: Click Start>All Programs>Accessories, then right-click on “Command Prompt” and select “Run as Administrator” Type in the following command exactly as you see it and press ENTER. secedit /configure /cfg %windir%\inf\defltbase.inf /db defltbase.sdb /verbose Wait for the command to complete, it can take some time so please be patient. Once the command has completed, try to register a dll file again.



回答3:

For Windows Vista/Windows 7 users: Click Start > All Programs > Accessories, then right-click on Command Prompt and select Run as Administrator.



回答4:

Best method I have found is to open the PowerShell ise with administration rights then cd to c:\ and insert your command, for example

regsvr32 "c:\Program Files\Windows Media Player\wmpband.dll"


回答5:

For Windows Vista/Windows 7 users: Click Start > All Programs > Accessories, then right-click on Command Prompt and select Run as Administrator. Then type: regsvr32 filelocation\fileName Then you see that file which generate error is loadded successfully.



回答6:

http://support.microsoft.com/kb/2466246

You'll need to use the 32bit version of regsvr32 as mentioned in the article.



标签: dll windows-7