Archive: troubles with string variable


troubles with string variable
Hi NSIS users,

I am encountering troubles with the code below :

------- MY CODE BEGIN --------
Var CONFIGPATH

...

Section "turlututu" SEC02
SetDetailsView show
SetOverwrite ifnewer
SetOutPath "${INSTALL_COMMONDIR}"
File "${PRODUCT_PGESFC_DIR}\$CONFIGPATH\Bin\PfcBase.dll"
File SetAutoClose false
SectionEnd

...

Function .onInit
StrCpy $CONFIGPATH "Release"
FunctionEnd
------- MY CODE END --------

With this code, I obtain the error below :

File: "..\..\PgesFc\$CONFIGPATH\Bin\PfcBase.dll" -> aucun fichier trouvé.

I think you see the error... :(
How can I use my CONFIGPATH variable in the constant string ?


see the docs for correct usage of the file command.
same problem as everytime ...

$CONFIGDIR is a runtime var, but you must give the file command a compile-time dir.