PDA

View Full Version : dll registry error



Prashant
09-15-2012, 12:59 AM
%WINDIR%\Microsoft.NET\Framework\v2.0.50727\regasm .exe "C:\***\*** ********* ****\bin\**********.dll" /codebase /verbose

This is the command line I am using to register a dll.
When I run this command using a batch file, it successfully registers the dll.

While same command line is not working through setup. In SB6 we used "Run Command Line" to run above command. But it failed to register the dll.

This works on WinXP 32bit, but same failed on Win7 64Bit. We are invoking this setup as Administrator on both the machine.

linder
09-15-2012, 02:57 AM
Hello,

And your question is <g>

IMO, regasm.exe is not even executed here and so your dll can't be registered. You forgot the double-quotes. I would suggest to put double quotes around "%WINDIR%\Microsoft.NET\Framework\v2.0.50727\regasm .exe". Windows needs this for long file/path names.

BTW, why don't you use the SB built-in function to register the DLL?

Friedrich

Prashant
09-15-2012, 05:16 AM
Thanks for reply...

I have tried with SB Built-In function "Register File Operation". Selected Operation as "Register OCXs/DLLs/EXEs/TLBs file immediately" & selected appropriate Dll, but it didn't work.

The other solution you mentioned of adding quotes to %WINDIR% path succeeded.

Will this dll will get registered using SB6 built-in function?

linder
09-15-2012, 05:30 AM
Hello,

No, this is not the correct "Register File Operation" option. You have to use one of the COM Interop options (see attached screenshot).

Friedrich