That will only work for a deferred custom action because MSI maps the property 
with the name of the CA to a property called CustomActionData which is what 
that 
implementations constructor uses to populate the dictionary.  You need to look 
at the CustomActionData constructors and methods ( sorry, don't remember which 
right now ) that allows you to constructor it using a different property name.

Make sense?
 
---
Christopher Painter, Author of Deployment Engineering Blog
Have a hot tip, know a secret or read a really good thread that deserves 
attention? E-Mail Me



----- Original Message ----
From: kim <contactme...@gmail.com>
To: wix-users@lists.sourceforge.net
Sent: Tue, March 29, 2011 9:41:03 AM
Subject: Re: [WiX-users] Passing values to CA not working

Yes I do. Following is the function call to get the data from session.

public static string[] GetCustomActionDataArguments(Session session)
        {
            string[] keys = new string[session.CustomActionData.Keys.Count];
            session.CustomActionData.Keys.CopyTo(keys, 0);
            return keys[0].Split(',');
        }

And below is how I am calling this method:

string[] aruguments = GetCustomActionDataArguments(session);
string svrname = aruguments[0];
string instanceName = aruguments[1];

--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Passing-values-to-CA-not-working-tp6216967p6219446.html

Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to