I found that to get data from CustomActionData property I need to set
propetry which named same as a CA:


    <Property Id="CABoxUpdate_deffered" Value="aa,bb,cc"/>
    <CustomAction Id="CABoxUpdate_deffered" BinaryKey="AdditionsDLL"
DllEntry="BoxUpdate" Execute="deferred"/>

But I steel cannot modify it's value due installation:

    <Property Id="CABoxUpdate_deffered" Value="aa,bb,cc"/>
    <CustomAction Id="CABoxUpdate_immediate" BinaryKey="AdditionsDLL"
DllEntry="BoxUpdate" Execute="immediate"/>
    <CustomAction Id="CABoxUpdate_deffered" BinaryKey="AdditionsDLL"
DllEntry="BoxUpdate" Execute="deferred"/>

    <InstallExecuteSequence>
      <Custom Action="CABoxUpdate_immediate"
After="InstallFiles"></Custom>
      <Custom Action="CABoxUpdate_deffered"
After="InstallFiles"></Custom>
    </InstallExecuteSequence>


extern "C" UINT __stdcall BoxUpdate(MSIHANDLE hInstall)
{
    TCHAR szPath[500], szStr[1000], szBoxAddresses[1000], szBox[NI_MAXHOST];
    DWORD dwLen;

    if (MsiGetMode(hInstall, MSIRUNMODE_SCHEDULED) == FALSE)
    {
        MsiSetProperty(hInstall, L"CABoxUpdate_deffered", L"cc,bb,aa");
    } else
    {
        UINT iResult = MsiGetProperty(hInstall, L"CustomActionData", szPath,
&(dwLen = 500));
    }

szPath in deffered execution is "aa,bb,cc", but not "cc,bb,aa"
At log I see, that install set's new property value:

MSI (s) (EC:30) [16:59:43:312]: Executing op:
CustomActionSchedule(Action=CABoxUpdate_deffered,ActionType=1025,Source=BinaryData,Target=BoxUpdate,CustomActionData="aa,bb,cc")

--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Executing-CA-after-InstallFiles-tp6076921p6088549.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to