Old 4th February 2007, 17:01   #1
xirisone
Junior Member
 
Join Date: Feb 2007
Posts: 19
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 is offline   Reply With Quote
Old 4th February 2007, 17:45   #2
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
$SRC_DIR is a variable hence usable at runtime.
${SRC_DIR} could be a proper definition.

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 4th February 2007, 18:02   #3
xirisone
Junior Member
 
Join Date: Feb 2007
Posts: 19
${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.

)-:
xirisone is offline   Reply With Quote
Old 4th February 2007, 18:17   #4
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
Did you try the absolute path instead?
Perhaps the path is not properly defined in ${SRC_DIR}

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 4th February 2007, 18:47   #5
xirisone
Junior Member
 
Join Date: Feb 2007
Posts: 19
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 (-:
xirisone 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