I need to programmatically set the name of the output file using pascal code. The following code is written in section [Setup] and the function MyFileName is placed in section [Code].
OutputBaseFilename={code:MyFileName}
But it creates a file of 0 kb named {code. Strangely, this kind of call works for AppVersion...
Does someone knows a workaroud ?
PS : See Scripted constants