Archive: Outfile with ^Name

Outfile with ^Name

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:

If I use $(^Name) later in the code it is correctly printing the name. Any ideas?

$(^Name) is a special language string therefore it is only evaluated at run time. You must use a define instead.


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
OutFile "${PRODUCT_NAME}_v1.0.exe"