Hi, im trying to copy file into dynamically generated folder before or after ISS compilation.
#define TargetFolder "C:\Target installer directory\"+ GetDateTimeString('dd-mm-yyyy', '-', '');
...
[_ISToolPostCompile]
#expr CopyFile('D:\Source\change log.txt', TargetFolder)
This doesnt work because the folder doesnt exist. Because there is no create folder expression, I've created a batch file wit MKDIR %1 in it, and run this on PreCompile:
#define TargetFolder "C:\Target installer directory\"+ GetDateTimeString('dd-mm-yyyy', '-', '');
...
[_ISToolPreCompile]
Name: C:\CreateFolder.bat; Parameters: {#TargetFolder}
However the ISTool doesnt let me pass the defined constant (TargetFolder) as a parameter to the batch file. It just creates "C:\{#TargetFolder}" path.
Is there any way to pass the variable, or maybe other way to create a folder defined by the #define section, before [_ISToolPostCompile] is run?
Thank you
This seems to be a duplicate to another Feature request about support for Pre/Post compilation variable https://sourceforge.net/tracker/?func=detail&aid=1836520&group_id=206943&atid=999625
Would be nice if we could do something like this though