I have an extra file to include with the setup.exe for a project that cannot be added to the build, but needs to be included for size information. Currently I must make an estimate of the size and set it as a constant (and remember to modify it whenever it changes). However, would it be possible to create a !define constant that is the size of a nominated file?
I guess there are other items in the compile time environment that would be useful to grab as constants.
Use
!system
to execute a FOR or DIR|FIND command and redirect the output to a .nsh file you can include.On 18/12/2021 18:22, Anders wrote:
Thank you for taking the time to reply.
Yes, I had thought of that, but it is such an ugly solution. I
appreciate that you want to keep everything small, but this must be
quite a common need...
Anyhow, many thanks for the great tool.
I don't know how common it is.
It is easy enough to do yourself so I'm not sure I see the need for native support.
Last edit: Anders 2021-12-20