Hello Hieu,
First of all, thank you for the provided files. I was able to build the project and successfully replicate the behavior.
Unfortunately, I can not say for sure why this happens. It seems that somehow the message box does not obtain the handle from the parent window, resulting in it being displayed in the background.
I have forwarded this to the development team and we will further investigate to try and find the root cause of this.
In the meantime, you can use another custom action to spawn the message box. For instance, I have tested this with an inline VBScript and everything worked as expected - the messagebox is spawned in the foreground. Please follow these steps in order to achieve it:
- go to
"Custom Actions" page and add an
"Execute inline script code" custom action
without sequence
- the custom action content could look like this:
Code: Select all
MsgBox (Session.Property(REBOOT_MESSAGE))
- go to
"Dialogs" page and remove the default messagebox custom action. Instead, please add another event on the "Next" button which will execute the inline VBScript.
Hope this helps.
Also, when we will have a resolution on this, I will update this thread.
Best regards,
Catalin