/build/static/layout/Breadcrumb_cap_w.png

Registering a Dll

Hi,

I have created a wise scritp wrapper for a vendor msi. when I install and launch the application on Windows 7, its throwing an error saying a dll was not registered. When I am trying to register it with regsvr32.exe, it saying dll was loaded, but the call to DllRegisterServer failed with error code 0x80020009. When I run cmdline in Administrator mode and register the dll, it went fine. so how can I manage it in the wise script.

Thanks.

0 Comments   [ + ] Show comments

Answers (7)

Posted by: mayur_mak 13 years ago
Senior Purple Belt
0
HELLO ravi,

u can use vbscript also as:

Set wshell = CreateObject("WScript.Shell")
ashell.Run("regsvr32.exe /s " & "<Path of dll file>")

Tried to use runas command in wse

regards
MM
Posted by: ravi223966 13 years ago
Senior Yellow Belt
0
Hi Mayur,

Thanks for the reply. I tried with the VB script, still not working. You mentioned to try runas command in wse. How can we do that?

Thanks.
Posted by: sreedharko 13 years ago
Orange Belt
0
Ravi,


Please check if your application (msi) have any self reg entries in selfreg table. If u have any, then try to make the self reg table emply by seft-registing the specific components.

You can also register .dll files with msiexec /y - register
/z - unregister thru custom actions.

Sreedhar.
Posted by: anonymous_9363 13 years ago
Red Belt
0
My guess would be that the account you're installing with has insufficient rights to write to either HKLM\Software\Classes or the specific key(s) where the registration information would be written. A few seconds using ProcMon will determine that.

Quite why anyone in your position would imagine that a non-admin account could be used to install software - especially on Windows 7 - escapes me.
Posted by: ravi223966 13 years ago
Senior Yellow Belt
0
Thanks for the replies.

I created a Transform to vendor msi by adding the dll to selfreg table and it solved the problem.

Thanks.
Posted by: anonymous_9363 13 years ago
Red Belt
0
SelfReg is The Work of Satan. If the DLL has any dependencies which are missing on your target machines, registration by this method will fail. You should use the advertising tables.
Posted by: rock_star 13 years ago
4th Degree Black Belt
0
is it 64 bit OS?
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ