View Single Post
Old 9th February 2015, 13:32   #5
ted.reinhard
Junior Member
 
Join Date: Feb 2015
Posts: 2
Hi, I think the problem arises when "LogSet on" is used several times (e.g. to turn on logging in several functions). I solved it with this macro that I use ("!insertmacro LogSetOn") instead of "LogSet on" :

!macro LogSetOn

${If} ${FileExists} $INSTDIR\mylogs
LogSet on
${Else}
Push $INSTDIR
StrCpy $INSTDIR $INSTDIR\mylogs
SetOutPath $INSTDIR
LogSet on
Pop $INSTDIR
SetOutPath $INSTDIR
${EndIf}

!macroend
ted.reinhard is offline   Reply With Quote