ssssss
1st March 2010 15:45 UTC
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.
Anders
1st March 2010 18:45 UTC
!searchparse might also be able to help you out
MSG
2nd March 2010 06:20 UTC
And it should be
!define VERSION 2.5.200
not
!define $VERSION 2.5.200
.
ssssss
4th March 2010 04:54 UTC
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!