Skip to content
⌘ NSIS Forum Archive

Small problem

3 posts

Afrow UK#

Small problem

I found a small problem (think it's an error by design) but ${__LINE__} is reset when used in an !include file.

It's a problem when used in labels because we get ${__LINE__} being the same twice in the same script (could be line 11 in main script, and then 11 again in the included script).

Perhaps a solution would be to get ${__LINE__} to be added on from where it left off (at the !include call)?

-Stu
kichik#
${__LINE__} was not designed for that purpose. If you want a globally unique verifier you can throw in ${__FILE__} and even ${__TIMESTAMP__}.