Archive: Get .nsi script's basename from within the script?


Get .nsi script's basename from within the script?
I have a .nsi script which I use to build the installer. Is there a way I can get the base name of .nsi file from nsis code itself?

If my file name is "abc.nsi", how do I get to print "abc.nsi" using the very same script?


${__FILE__} will have "abc.nsi". If you want the base name:

!searchparse "${__FILE__}" "" "SCRIPT_BASENAME" ".nsi"
!warning "I did not enjoy ${SCRIPT_BASENAME} at all. Kind regards, the Compiler"