Archive: Force dialog at the top


Force dialog at the top
Hello,

I am displaying a message box as follows:

# Assures that current Windows Version is supported.
${IfNot} ${AtLeastWin2000}
messageBox MB_OK "Windows Version not supported. Update to XP or newer version."
Abort
${EndIf}

Another installer calls the executable that runs this code, as a result the message box ends up being hidden in the back of the original installer program. Is there a way to force the message box at the top of the rest of the windows? Kind of a modal window but not in the same process.


Random question: Can't you just check for win2k+ in the other installer, before you execute? >_>


That would be an approach; however, we are planning to get rid off the master installer in a couple of months, and we have several message boxes in the secondary installer. So in the mid time, I would rather keep all the right checks in the right installer.


Read the options available for MessageBox and see if MB_TOPMOST will work.