Old 5th November 2002, 20:19   #1
GrubUser
Junior Member
 
Join Date: Nov 2002
Location: USA
Posts: 5
Question Registering DLLs

I'm having problems registering DLLs. I use RegDLL "Path\dllname.dll"
and I get "Could not find symbol: DllRegisterServer". Is this a bug on NSIS software or not. Thanks.
GrubUser is offline   Reply With Quote
Old 5th November 2002, 20:32   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
This error means NSIS can't find a function called DllRegisterServer in the DLL. This function is the function in the DLL that handles its registering process. Are you sure your DLL has this function?

To make sure it does use Dependency Walker 2.1.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 5th November 2002, 21:40   #3
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
Not all DLL's require registration.
Joost Verburg is offline   Reply With Quote
Old 5th November 2002, 23:18   #4
fabriziobertocc
Junior Member
 
Join Date: Nov 2002
Posts: 1
Send a message via AIM to fabriziobertocc Send a message via Yahoo to fabriziobertocc
Ok, I've found a similar problem.
I found out that on Windows 98 (perhaps 95 too), the utility used to registers DLLs (regsvr32) is NOT located under %SYSTEMROOT%\system32 but under %SYSTEMROOT%\system
If the system is 'vanilla' (at least on a system like mine), the default search path doesn't include %SYSTEMROOT%\system.
As consequence, when NSI executes the RegDll command, it fails because it cannot find that program.

Workaround? I don't know an elegant solution... my problems was "solved" because my application was targeting only Windows NT, 2000 and XP machines... and I didn't have any problems with those.

Hope this help.
Fabrizio
fabriziobertocc is offline   Reply With Quote
Old 6th November 2002, 13:20   #5
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Just use NSIS's RegDll function... It does the same thing as regsvr32.exe.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump