What I am trying to accomplish: In one of the dialogs of my installer, I call the custom action of type 6(VBScript file stored in a Binary table stream) when user clicks on the button:
<Control Id="License" Type="PushButton" > <Publish Event="DoAction" Value="LicenseProductVbs" /> </Control> Here is the custom action definition: <CustomAction Id="LicenseProductVbs" Execute="immediate" HideTarget="no" Impersonate="no" TerminalServerAware="no" VBScriptCall="LicenseProduct" BinaryKey="LICENSE_PRODUCT_SCRIPT" Return="asyncWait" /> <Binary Id="LICENSE_PRODUCT_SCRIPT" SourceFile="$(var.ScriptPath)\res\MSI_scripts_Licensing.vbs" /> In VBScript function I set the installer environment property to some value: Public Sub LicenseProduct On Error Resume Next Session.Property("Licensed") = "Yes" ' or "No" if the licensing failed. End Sub Once the custom action is finished, I want to pop-up the new dialog --- if the value of "Licensed" property is "Yes" only---, so I modified License button definition : <Control Id="License" Type="PushButton" > <Publish Event="DoAction" Value="LicenseProductVbs" /> <Publish Event="NewDialog" Value="ExitDlg"><![CDATA[Licensed="Yes"]]></Publish> </Control> I tested it and..the script is called and Licensed property is set and installer waits until VbScript returns..But ExitDlg is not pop-up even if Licensed="Yes" The questions are: What is wrong in the approach I described? Is it even possible to have several publish elements inside the Control element(so that they worked)?? -- View this message in context: http://n2.nabble.com/Publish-several-events-with-condition.-tp2808765p2808765.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users