Archive: InstallDLL Problems


InstallDLL Problems
Hi guys,

i'm totally new to NSIS, and i'm still experimenting with the examples and tutorials found in the NSIS installation directory.

i was surprised to see that the Library.nsi example doesn't work. returns with a "Error opening file for writing: c:\...bla bla\Library Test\test.dll "

again the code is in C:\program files\nsis\Examples\ and the file called Library.nsi

!define TestDLL '"${NSISDIR}\Plugins\LangDLL.dll"'

!insertmacro InstallLib DLL NOTSHARED REBOOT_PROTECTED ${TestDLL} $INSTDIR\test.dll $INSTDIR

thanx guys for you help.


Obviously the renamed LangDll.dll has not reg. entry points :-)


Originally posted by Red Wine
Obviously the renamed LangDll.dll has not reg. entry points :-)
Hi Red Wine,
Thanx for the reply, but i didn't quite get wat ur trying to say???? this code came with the nsis installation in the example directory and shouldn't be buggy... ???
again the code in questions is in C:\program files\nsis\Examples\Library.nsi
my problem is that i wish to install dll files from a certain application and the only example i have to help me, doesn't work...

cheers,
Simon

The specific script example has some comments on the top:
# This example tests the compile time aspect of the Library macros
# more than the runtime aspect. It is more of a syntax example,
# rather than a usage example.


Originally posted by Red Wine
The specific script example has some comments on the top:
# This example tests the compile time aspect of the Library macros
# more than the runtime aspect. It is more of a syntax example,
# rather than a usage example.
excellent ... i'm following you so far...
it was concentrating more on the syntax part of it... so now, i have a bunch of dll files that need to be installed on a system. previously, without an installer, i simply used to just copy the dlls into the $INSTDIR... but now that i know about NSIS (tryin to get to know about it atleast) how would i go on installing them? i can see that there are many types (dll, regdll, tlb, and regdlltlb) also if shared and install method ( reboot_protected... bla bla)

the question is how do i know which to use with my dlls??

Thank you guys for your patience... i really have spent 2 days googling about it.. and the NSIS User Manual says nearly nothin about it...

For a dll or a bunch of them who they're not shared nor OCX, TLB etc all you need to do to install/update them, is to use the file or copyfile instruction according to your prefs.


Thanx Red Wine,

i came to that conclusion yesterday, logically since previously i was copying and pasting the files with new installations, it makes perfect sense to use the File instruction. what a waste of 2 days!!!...
The manual was really vague about it, and i thought might as well do it the proper way...

Thank you again for your help... i will be using the file instruction :)