Archive: InstallLib macro does not expand variables for DLL names?


InstallLib macro does not expand variables for DLL names?
Hello all,
Very likely I am missing something, but...
The following line

!insertmacro InstallLib REGDLL SHARED REBOOT_NOTPROTECTED "my_directory\$MyLib" "$INSTDIR\$MyLib" "$INSTDIR"

, where $MyLib contains the name of the DLL, inserted at runtime. When I substitute $MyLib with a real name, evreything works as it should, however, not otherwise.
I did verify that $MyLib in fact contains the correct name of the DLL, so don't think expansion is a problem here.

Is there something I am not doing right or this is a limitation of the InstallLib macro?

Thanks,
Vic


Just to tidy up my previous post... Yes, I did verify that the variable in fact contains the correct DLL name, so expansion itself is not a problem.


Since I can no longer edit messages, I just wanted to add that the behavior I am seeing is with NSIS 2.45.