Archive: BringToFront doesn't work


BringToFront doesn't work
First the problem:
This is my MUI_CUSTOMFUNCTION_FINISH_PRE function:

Function PreFinish
ExecShell open "$SMPROGRAMS\${MUI_PRODUCT}"
BringToFront
FunctionEnd

Theoretically, this should open the Start Menu program group and then bring the installer window to the front again.
However, in practice, the installer window continues to stay behind.
Any ideas why this is happening?
I am using 2.0b3 on Windows 2000.
---
Thanx
Iceman_K


Works fine for me. Maybe you should add a small Sleep between the lines, because BringToFront is faster than the window creation.


That did it.
Thanks.