Yathosho
30th October 2006 21:05 UTC
looking for a solution for my statusbar
i have a problem finding a good strategy for the dynamic use of the msibanner. my installer script is copying files from another directory and i'm using msibanner for the status.
so far the progressbar moved by the rounded value of 100 / # of files (using IntOp). then i figured i'm getting a problem once i got more than 100 files.
could anyone suggest a method so it works with any number of files?
kichik
30th October 2006 21:17 UTC
You can use the Math plug-in to for floating point math.
StrCpy $0 31 # number of files
Math::Script "R0 = 100.0/r0"
DetailPrint $R0 # file weight
StrCpy $0 23 # file number one
Math::Script "r0 = i(R0*r0)"
DetailPrint $0
Yathosho
30th October 2006 21:46 UTC
cheers, i hope msibanner supports floating point. but with that math plugin i should be able to workaround, if it doesn't.