cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
lkhoney2003
Level 6

register COM dll

How can we register COM dll by InstallAnyWhere.
Labels (1)
0 Kudos
(6) Replies
pv7721
Level 20

http://en.wikipedia.org/wiki/Regsvr32

You've got the Execute Command and you need to execute something like this:

CMD /C "regsvr32 nameofyour.dll"
0 Kudos
lkhoney2003
Level 6

How to handle error in case some DLL fails to register.
Also how can I register .Net DLL, as for .NET DLL we need RegAsm.exe to register. Path of RegAsm.exe may be different on different Achitecture (i.e. 32Bit & 64Bit).
0 Kudos
pv7721
Level 20

You can test for the architecture you're installing and launch the regasm accordingly. Also if regasm returns an error code in case of failure, you can test for that and display an error message accordingly!
0 Kudos
lkhoney2003
Level 6

how can I get the return value of RegAsm.exe?
I want to abort the install if RegAsm.exe fails to register any DLL. so can I abort the install in case of RegAsm.exe fails?
Also i want to unregister other DLL's which was register by my installer is it possible to handle this my IAW?
TIA!
0 Kudos
pv7721
Level 20

I've got a question: have you even tried IA and it's manual before asking these questions here?!? I'm asking this because if you tried it, you would have seen that, for instance, for Execute Command you've got some standard variables to store process's stdout, stderr & exit code.
Yes, you can abort the install if registering fails.
It seems that unregistering is also possible: http://weblogs.asp.net/psteele/archive/2004/06/16/157767.aspx
0 Kudos
lkhoney2003
Level 6

As I told earlier that I am new to IA and evaluating it. So m having some basic questions. I am trying to resolve all my query asap as I my eval version is about to complete.
0 Kudos