Archive: About Random Number on Compile


About Random Number on Compile
I Want to:

On Compile,This Setting can Random change.

For example:

I use
!define MUI_WELCOMEFINISHPAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Wizard\1.bmp"

Look: this's 1.bmp
I want this 1.bmp can random change.
change 2.bmp /3.bmp or x.bmp!

I want to use
!define MUI_WELCOMEFINISHPAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Wizard\${__DATE__}.bmp"
to define 2007-5-31.bmp/2007-6-1.bmp..

this way is very terrible.
I must use .bmp filename all the Date!

Can help Me?

use a ${__DATE__},
It can let me to use Random Number?
For example:
${__NUMBER__}

I can use
!define MUI_WELCOMEFINISHPAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Wizard\${__NUMBER__}.bmp"

Thanks!
My English is very Terrible!


You could use:
!define /date RANDOM "%S"
This would be the second of the minute.

Otherwise, you would have to use:
http://nsis.sourceforge.net/Invoking...n_compile-time
And use one of the random number functions from the Wiki in it.

Stu