Skip to content
⌘ NSIS Forum Archive

Version number in OutFile

5 posts

ssssss#

Version number in OutFile

Please! How append my exe-file version to installer output name dynamically? For example: mysoft-setup-2.5.200.exe. Using
!define $VERSION 2.5.200
OutFile mysoft-setup-${VERSION}.exe
is not appropriate method (static).
${GetFileVersion} ${EXE_FULLNAME} $R0
StrCpy $Version $R0
doesn't work too, because executes after OutFile.
ssssss#
Thanks to all!! You're right all. Link http://nsis.sourceforge.net/Invoking...n_compile-time is a great solution. How did I miss it?
!searchparse is useful, I think, if version number exists in source code (not my case).
And of course it should be
!define VERSION 2.5.200
It was typing error.
Thanks again!