Archive: Version number in OutFile


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.

http://nsis.sourceforge.net/Invoking...n_compile-time


!searchparse might also be able to help you out


And it should be
!define VERSION 2.5.200

not
!define $VERSION 2.5.200

.


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!