Old 27th September 2006, 15:08   #1
SSanders55
Junior Member
 
Join Date: Sep 2006
Location: Texas
Posts: 3
Question InstallLib

At the risk of sounding totally clueless (which may not be far from the truth):

When using the InstallLib macro, how do I tell which libtype option is needed?
SSanders55 is offline   Reply With Quote
Old 29th September 2006, 11:15   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
DLLs requiring registration are exporting the DllRegisterServer function. You can check which functions DLLs export using Dependency Walker. You could also try both and see if you get an error saying DllRegisterServer can't be found.

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 29th September 2006, 14:20   #3
SSanders55
Junior Member
 
Join Date: Sep 2006
Location: Texas
Posts: 3
kichik - thanks very much for the help! The dependencywalker.com website was down, but I have a copy installed with MS Visual Studio so I was able to get what I needed.

I noticed that oleaut32.dll has a function "RegisterTypeLib" but the notes for installing the Visual Basic runtime files in the NSIS help file don't use the TLB option for the InstallLib macro. Do you know if the TLB libtype option is used only for .TLB files?
SSanders55 is offline   Reply With Quote
Old 29th September 2006, 14:27   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
TLB option is only used for type libraries. Those don't have an exported function, but instead, that exported function you found is used to register them.

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 29th September 2006, 14:33   #5
SSanders55
Junior Member
 
Join Date: Sep 2006
Location: Texas
Posts: 3
Once again, thank you _very much_ for the help!
SSanders55 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