Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   InstallLib needs absolute path in localfile ? (http://forums.winamp.com/showthread.php?t=265062)

xirisone 4th February 2007 17:01

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.

Red Wine 4th February 2007 17:45

$SRC_DIR is a variable hence usable at runtime.
${SRC_DIR} could be a proper definition.

xirisone 4th February 2007 18:02

${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 4th February 2007 18:17

Did you try the absolute path instead?
Perhaps the path is not properly defined in ${SRC_DIR}

xirisone 4th February 2007 18:47

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 (-:


All times are GMT. The time now is 05:10.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.