TeeWeTee
26th February 2013 13:55 UTC
Outfile with ^Name
Hi,
just tried to define the outfile like that:
Name MyInstaller
!define VERSION 1.0.0
OutFile $(^Name)_${VERSION}.exe
However the name of the outfile is:
$(^Name)_1.0.0.exe
If I use $(^Name) later in the code it is correctly printing the name. Any ideas?
Afrow UK
26th February 2013 14:48 UTC
$(^Name) is a special language string therefore it is only evaluated at run time. You must use a define instead.
Stu
kichik
3rd March 2013 07:17 UTC
And if you think about it, it doesn't really make sense. How can one resulting executable have a different filename for all the different languages you support?
You're probably looking for a define.
!define PRODUCT_NAME MyCoolProduct
Name "${PRODUCT_NAME}"
OutFile "${PRODUCT_NAME}_v1.0.exe"