donbrookes
Posts: 5
Joined: Fri Oct 18, 2024 4:04 pm

Custom Message Box hidden behind main installer window

Hi,
I have a Custom Message Box where I display a message to the user if I detect certain conditions when the installer is started. It works great, except sometimes users will click the main installer window behind the message box, which then hides the message box. Is there any way to either keep that message box on top or move the location of that message box so its visible to the user even if they click on the main installer welcome screen. See snaps.
Attachments
2025-01-24_15-11-06.png
2025-01-24_15-11-06.png (106.45 KiB) Viewed 7863 times
2025-01-24_15-10-13.png
2025-01-24_15-10-13.png (87.85 KiB) Viewed 7863 times
2025-01-24_15-08-37.png
2025-01-24_15-08-37.png (86.93 KiB) Viewed 7863 times
donbrookes
Posts: 5
Joined: Fri Oct 18, 2024 4:04 pm

Re: Custom Message Box hidden behind main installer window

I was able to get around this problem by using the ErrorMessage instead of the other Message box in Custom Actions. The ErrorMessage is very rudimentary and non-customizable, but it stays on top.
Catalin
Posts: 7504
Joined: Wed Jun 13, 2018 7:49 am

Re: Custom Message Box hidden behind main installer window

Hello Don,

I'm afraid that we can not really force the focus on the MessageBox, as that can be quite obnoxious for the customer.

I am glad, however, that you managed to find a workaround for this - thank you for sharing that with us!

The ErrorMessage box is meant to show the termination of the installation, that's why it's always on foxus, while the MessageBox is mostly meant for giving information to the user.

At least we are not facing the scenario where the messagebox appears in the background from the start (that sometimes happens, really rarely though) :) I remember we tried really hard to isolate that and find a fix, but we never managed to reproduce it on our end.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”