Archive: RegDLL problem


RegDLL problem
I want to register DLL in my setup program. My NSIS script compiles well but when I run setup it hangs on runing RegDll. First I have tired to use UpdateDLL but the same happened (in fact it is invoking RegDLL). When I tried
ExecWait "$SYSDIR\regsvr32.exe /s my.dll"
setup program passed that line without hungup but I'm not sure if my.dll is registered.
I guess that something is wrong with my.dll or rather with my system (WinXP). I'm sure I have managed to register my.dll using regsvr32 in the past. Bu now on registering it from command line without /s option no message is displayed (no message on unregistering it also). I have tried to figure out if my DLL is already registered serching registry key
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SharedDLLs]
but I have not found it there. Do you have any clue how to approach to my problem?


If it's your DLL you should compile a debug build and attach the debugger to the NSIS installer which will try to register your DLL. Insert a break point at the beginning of DllRegisterServer and you're good to go.


I'm beginer in NSIS. Please explain it with more detailes. I have debug version of my.dll. I'm using NIS 2.0b4 and HM NIS Edit 2.0b5.


Hi jar23,

Which compiler you use to buid the dll?


Microsoft Visual C++ 6.0


Another approach would be to get the dll file to display a message box when it is registering. I found that way easier to see if the dll/plugin was being registered/called properly.

Vytautas :D