!ifndef VERSIONHowever, when the product's .nsi script remains unchanged but one (or more) of the !include files in it change, I currently must edit the product's .nsi file manually, only to change VER_BUILD (or VER_REVISION). This is currently my poor man's solution to reflect the fact that a newly compiled setup.exe is different from the previous one.
!define VER_MAJOR "3"
!define VER_MINOR "0"
!define VER_REVISION "1"
!define VER_BUILD "15"
!define VERSION ${VER_MAJOR}.${VER_MINOR}.${VER_REVISION}.${VER_BUILD}
My problem now is that I have numerous such main scripts and it is simply too tedious to manually update every one of them whenever a dependency !include file changes...
Is there a way or solution to automatically increment VER_BUILD or VER_REVISION whenever one of the !include files in the script changes?