Old 24th October 2006, 15:05   #1
Vic_Gent
Junior Member
 
Join Date: Oct 2006
Posts: 2
Question Using WordReplace at compile time ?

I'm calling makensis.exe from the command line as part of an overnight build script and am using the /X! switch to pass in some !defined variables. These are used to set VersionKey information etc. All good there, but I'd also like to change the name of the compiled nsi executable based upon a label that I've passed in at the command line. It's got '.' in it (e.g. XXX.6.0_061024) so was trying to use the WordReplace function to strip them out, set a variable and then use it in the OutFile command. However it looks like WordReplace only executes at the Installer run time and not compile time. I could just hack the string in my build script and pass it in as another /X!, but I'd prefer to avoid it if possible. Any ideas?
Vic_Gent is offline   Reply With Quote
Old 24th October 2006, 15:52   #2
goldy1064
Senior Member
 
Join Date: Jun 2005
Posts: 211
You would have to write a standalone executable or batch script to do that parsing as WordReplace only works during run-time.
goldy1064 is offline   Reply With Quote
Old 24th October 2006, 15:55   #3
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
http://nsis.sourceforge.net/Invoking...n_compile-time

-Stu
Afrow UK is offline   Reply With Quote
Old 24th October 2006, 16:13   #4
Vic_Gent
Junior Member
 
Join Date: Oct 2006
Posts: 2
Great. Will do. Thanks
Vic_Gent is offline   Reply With Quote
Reply
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