kumarkiranc
Posts: 85
Joined: Tue Sep 18, 2007 6:49 am

Problem in uninstall

Thu Dec 20, 2007 2:33 pm

Hi,

During Uninstal, I am displaying a Message box through VB Script in Custom Actions. The message box Pops up , but it is displaying on the task bar, which is not noticeable bye the user . How can I get it displayed as a top level window.

VB Script code:
Dim MyVar

MyVar = MsgBox ("MyQuestion?", 4, "Question")


Thanks
Kiran

Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact:  Website

Thu Dec 20, 2007 3:07 pm

Hi,

This happens because the message box is shown behind the current dialog and I'm afraid that what you need cannot be done in VBScript.

If you need this you can try to create a DLL custom action which will use the GetForegroundWindow Function to bring the message box into front:
http://msdn2.microsoft.com/en-us/library/ms633505.aspx

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

kumarkiranc
Posts: 85
Joined: Tue Sep 18, 2007 6:49 am

Mon Jan 28, 2008 10:09 am

Hi,

i found a solution for the msgbox

4 = Yes and No buttons
4096 = System modal (all applications wont work until the user responds to the message box)



Dim MyVar

MyVar = MsgBox ("MyQuestion?", 4100, "Question")


Thanks
Kiran

Return to “Common Problems”