Bob Uva-2 wrote > > I'm using WixUI_FeatureTree with a few custom dialogs. I want to get a > string entered by the user on one dialog and use it in a call to a managed > custom action implemented in a C# DLL assembly. What is the best, and > hopefully easiest, way to do this? >
The process will differ based upon the type of custom action you are calling. If it is an immediate custom action you will be able to access the property value directly from the custom action. If it is a deferred custom action you need to do the following: 1. Schedule an immediate CA right before your deferred CA. This custom action needs to set a property to the value you wish to pass to your deferred CA. The name of the property you set should be exactly the same as the name of your deferred CA. 2. In your deferred CA, access the data by getting the value of the CustomActionData property. See this MSDN article: http://msdn.microsoft.com/en-us/library/windows/desktop/aa370543(v=vs.85).aspx http://msdn.microsoft.com/en-us/library/windows/desktop/aa370543(v=vs.85).aspx Disclaimer: I highly recommend that anyone writing CAs reads about "data driven custom actions": http://robmensching.com/blog/posts/2007/9/13/Zataoca-Custom-actions-should-be-data-driven http://robmensching.com/blog/posts/2007/9/13/Zataoca-Custom-actions-should-be-data-driven http://jpassing.com/2009/08/26/writing-data-driven-custom-actions/ http://jpassing.com/2009/08/26/writing-data-driven-custom-actions/ http://blog.deploymentengineering.com/2008/05/data-driven-cas-made-easy-with-dtf.html http://blog.deploymentengineering.com/2008/05/data-driven-cas-made-easy-with-dtf.html -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/pass-a-string-value-from-one-dialog-to-a-managed-custom-action-tp7578996p7579009.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users