I find it more elegant to have the custom action only set a property and return. Then on the remaining control events use the property in a condition to perform a SpawnDialog on a custom dialog that displayes the error message. This way MSI continues to handle the UI.
---------------------------------------- From: "T. Kuro Kurosaka" <k...@basistech.com> Sent: Tuesday, January 17, 2012 7:20 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] How to bring a VBScript window in front of the wizard window? I have this wix code that calls a VBScript code to show a window: <CustomAction Id="AskLicense" Script="vbscript"> <![CDATA[ MsgBox "The License File Path will be asked here by a file dialog eventually.", 1, "License File Needed" Session.Property("SELECTEDRLPLICENSEFILE") = "C:/dummy/location/foo.txt" ]]> </CustomAction> <InstallExecuteSequence> <Custom Action="AskLicense" After="InstallValidate">Not Installed</Custom> </InstallExecuteSequence> The window is shown but it's hidden under the wizard window. How can I bring it to the front, or else side of the wizard window? Kuro ---------------------------------------------------------------------------- -- Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Keep Your Developer Skills Current with LearnDevNow! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-d2d _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users