Old 26th February 2013, 13:55   #1
Junior Member
Join Date: Feb 2013
Posts: 14
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?
TeeWeTee is offline   Reply With Quote
Old 26th February 2013, 14:48   #2
Afrow UK
Afrow UK's Avatar
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
$(^Name) is a special language string therefore it is only evaluated at run time. You must use a define instead.

Afrow UK is offline   Reply With Quote
Old 3rd March 2013, 07:17   #3
[NSIS Dev, Mod]
kichik's Avatar
Join Date: Oct 2001
Location: Israel
Posts: 11,343
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"

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump