![]() |
#1 | |
Junior Member
Join Date: Feb 2013
Posts: 1
|
Using Funtions in Compile Time
I got the date functions from the NSIS site (http://nsis.sourceforge.net/Manage_dates_as_numbers) and would like to get the today serial value during compile time.
I envisioned running the script as follows: code: But I am getting an error on the call: Quote:
My question is: How can I call the function in compile time? Thanks David |
|
![]() |
![]() |
![]() |
#2 |
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
You cannot call a function at compile time. You can however call an executable at compile time, using !execute or !system. So you can let your script run a compiled NSIS exe which writes "!define Foo bar" to an nsh file, and then you !include that nsh file after you !execute the exe.
|
![]() |
![]() |
![]() |
|
Tags |
compile, function, macro |
Thread Tools | Search this Thread |
Display Modes | |
|
|