Archive: Outfile with ^Name


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?

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

Stu


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"