Skip to content
⌘ NSIS Forum Archive

InstallLib needs absolute path in localfile ?

5 posts

xirisone#

InstallLib needs absolute path in localfile ?

Hi,

on my 1st steps with NSIS the compiler gave me the following error:

!error: InstallLib: The library $SRC_DIR\MaSvr.dll could not be found.

my line of code is:

!insertmacro InstallLib REGDLL NOTSHARED NOREBOOT_NOTPROTECTED $SRC_DIR\MaSvr.dll $TDI_DIR\MaSvr.dll "$SYSDIR"


$SRC_DIR is well defined, it is "d:\tditmp\sintdmto" and the file is in this directory.

Any ideas?

TIA,
xiris

BTW: I don't have/want any files in my setup. All the files to be installed will be readyand waiting in $SRC_DIR on the target system. On my system the files are also available in $SRC_DIR.
xirisone#
${SRC_DIR} doesn't work either, I get the same error from the compiler:

!error: InstallLib: The library ${SRC_DIR}\MaSvr.dll could not be found.

Error in macro InstallLib on macroline 89.

)-:
Red Wine#
Did you try the absolute path instead?
Perhaps the path is not properly defined in ${SRC_DIR}
xirisone#
absolute path works.
Finally found the answer to my problem in thread 208430.
Bottom line: can't use a varname, i must be the absolute path.

Thread closed (-: