FileName as a variable while compile time
I add a file while compilation with the file command. The File has a Format like PatchXYZ-12345.exe ... is it possible to extract the 12345 string while compiling and use it as a variable inside the script?
6 posts
# ${AFile} = PatchXYZ-12345.exe
!searchparse ${AFile} PatchXYZ- Serial .exe Unused
# ${Serial} = 12345I'm not sure how you are adding the PatchXYZ-12345.exe file to the compile, but if you would create a defined value for it, you can use that define in the !searchparse command without extra work.!define AFile PatchXYZ-12345.exe
File ${Afile}
!searchparse ${AFile} PatchXYZ- Serial .exe Unused
DetailPrint "${Serial} was compiled"
File "AnotherRelatedFile${Serial}.txt"
... to the installer.File c:\files\*.exe