NSIS has a Name variable that you define in the script:
Name \"MyApp\"
It defines the name of the installer, that gets displayed as the win
Since NSIS v3.0a0 you can do it directly in the script, no external tools needed: !getdllversion
Sample code (from the documentation):
!getdllversion "$%WINDIR%\Explorer.exe" Expv_ !echo "Explorer.exe version is ${Expv_1}.${Expv_2}.${Expv_3}.${Expv_4}"