Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   looking for a solution for my statusbar (http://forums.winamp.com/showthread.php?t=258621)

Yathosho 30th October 2006 20:05

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 20:17

You can use the Math plug-in to for floating point math.
code:
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 20:46

cheers, i hope msibanner supports floating point. but with that math plugin i should be able to workaround, if it doesn't.


All times are GMT. The time now is 04:17.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.