windows - Wix: Passing a property back from a C# custom action -


Is it possible to return assets back with the YX custom verb? I am trying to find a solution for hours, I have seen many answers, but none of them works for me. Public Segment Custom Action [[Custom Action] Public Stable Action Reports Exam session (session session) {0} session ["FOO"] = "bar"; Return action Success; }}

WiX FooDlg.wxs

  & lt ;? XML version = "1.0" encoding = "UTF-8"? & Gt; & Lt; Wix xmlns = "http://schemas.microsoft.com/wix/2006/wi" & gt; & Lt; Piece & gt; & Lt; Asset ID = "FOO" /> & Lt; UI & gt; & Lt; Dialog ID = "Fuddalg" width = "370" height = "270" title = "foo" & gt; & Lt; Control id = "foo" type = "edit" property = "food" height = "17" width = "45" x = "50" y = "150" text = "[food]" indirect = "no" / & Gt; & Lt; Control ID = "Foo" type = "pushbutton" x = "150" y = "200" width = "56" height = "17" text = "test foo" & gt; & Lt; Publish Event = "DoAction" value = "test" & gt; 1 & lt; / Publish & gt; & Lt; / Control & gt; & Lt; / Dialog & gt; & Lt; / UI & gt; & Lt; Custom Action ID = 'Foo' of Binary = 'FuBinary' Deliente = 'Test Action' Execution = 'Instant' Return = 'Check' /> & Lt; Binary id = 'futuristic' sourcefile = 'food dlL' / & gt; & Lt; / Piece & gt; & Lt; / Wix & gt;  

Yes, you can return a property with custom action in the installer. Ensure that the property is public (only in the upper case letters in its name) and that your custom action has been fixed as instant and your correspondent's dialog is executed before load (during the execution of your installer Use Verbose Log to track prices, just search for property name).


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -