Line 40 Error with !insertmacro UpgradeDLL
Has anyone come across this? I'm using the UpgradeDLL.nsh straight from the \Include directory, and the compiler is complaining about line 40 and aborting!
Archive: Line 40 Error with !insertmacro UpgradeDLL
Line 40 Error with !insertmacro UpgradeDLL
Has anyone come across this? I'm using the UpgradeDLL.nsh straight from the \Include directory, and the compiler is complaining about line 40 and aborting!
Please attach your script.
Script attached.
BTW I have all the files in the same dir as the script.
Thanks.
OK, I solved my problem.
First, I misunderstood the error and thought the line number referred to the macro.
Then I was racking my brains about what was wrong with my !insertmacro command.
Turns out, the only thing wrong with it was its position. Evidently, it has to be in a section, whereas I was just assuming it could be with the other !insertmacro statements.
So now it's in the "MainSection", and working fine.