I defined a macro to check versions of a file. For simplicity, the file is always put into two different fixed directories says "C:\MyApp1" and "C:\MyApp2"
I need to search through the file and get the version, so I wrote a macro:
!macro CheckFileVersion DirToCheck IsRecursive VersionToCheck RET_Code
...
...
...
!macroend
When I call it on another macro, I do:
!macro CheckAllDependencies RET_ResultCode
!insertmacro CheckFileVersion "C:\MyApp1" "True" "1.0.0.1" $0
!insertmacro CheckFileVersion "C:\MyApp2" "True" "2.3038.1102.13" $1
...
...
...
!macroend
When I tried to compile, it says:
Error: label "GoToNextDir:" already declared in function
Both of this macros reside on the same file (which is a common function file, CheckAppFunction.nsh). And will be included on my installer.
Any idea how to tackle this problem? Thanks for any help in advance.
Cheers 🙂