Archive: Can I know % complete?


Can I know % complete?
Is there a variable that contains the % completion of the installation?

The problem is that I am creating a silent installer, but would like to give some feedback through an alternate method. What I am thinking is something like this;

Section ""
File "This_file_is_100_bytes_long.txt"
Output::Progress $COMPLETION
File "This_file_is_50_bytes_long.txt"
SectionEnd

so when my plugin Output::Progress is called, it's passed the value 66 because the installation is 66% complete, 100 bytes have been installed out of 150 bytes total.

Or even better, a callback function that is called every time the text and/or progress bar would have been updated (except it's a silent installer).

Thanks,
Chris


why not just change the layout of the instfiles page and don't run it silent?


Very long story, most of which I can't divulge, but the bottom line is that the NSIS installer does have to run silent.