I would really appreciate your help over this issue I have.
I have a macro with 2 parameters like below:
!macro TestMacro _PARAM1 _PARAM2
Push $1
StrCpy $1 $OUTDIR
// ... do some stuff here with the ${_PARAM1} and ${_PARAM2}
SetOutPath $1
Pop $1
!macroend The problem is that when I call it like this:${TestMacro} $1 $2 inside the macro the ${_PARAM1} gets set to the $OUTDIR.Is there a way to avoid this kind bad macro usage, beside:
!macro TestMacro _PARAM1 _PARAM2
!define LastKnownOutDir $OUTDIR
// ... do some stuff here with the _PARAM1 and _PARAM2
SetOutPath ${LastKnownOutDir }
!undef LastKnownOutDir
!macroend Many thanks in advance,Isawen