Archive: dll version in OutFile?


dll version in OutFile?
hi,
i have one question.
Can i put the Version Number of a dll-file in the OutFile-command?
for example:

...
Section "-Version"
GetDllVersion "MyApp.exe" $R0 $R1
IntOp $R2 $R0 / 0x00010000 ; $R2 now contains major version
IntOp $R3 $R0 & 0x0000FFFF ; $R3 now contains minor version
IntOp $R4 $R1 / 0x00010000 ; $R4 now contains release
IntOp $R5 $R1 & 0x0000FFFF ; $R5 now contains build
StrCpy $0 "$R2.$R3.$R4.$R5" ; $R0 now contains string like "1.2.0.192"
SectionEnd

...
OutFile "installer_$0.exe"
...
I already tried it with var /global and !define ...but everytime the output-file named
installer_$0.exe
installer_$var.exe
installer_${var}.exe and not installer_1.2.0.192.exe

Thank you for help,
shavo.


Here we are again... you can't use variables at compile time,
you may do what you want using the following,

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