![]() |
call !insertmacro twice in a same function
Hi,
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: code: When I call it on another macro, I do: code: 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 :) |
I found a way to get around this, with the help from this link:
http://forums.winamp.com/showthread....ight=Find+File Basically, I need to create a function inside a macro. So, in my case it is code: And when you want to use it, you can just simply do: code: I hope, in the future, anyone who is learning how to use macro can take advantage of this post. Cheers :) |
| All times are GMT. The time now is 04:30. |
Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.