wix - How to use a same DllEntry multiple times in custom action? -
i have customaction written in c#. want phone call dllentry twice in wix installer code. how can accomplish this? doing in next manner. working me. there other fair way this?
c# code:
[cumtomaction] public static actionresult symboliclink(session session) { string s1=session.customactiondata["value1"]; string s2=session.customactiondata["value2"]; //mycode; } wixcode:
<customaction id="ca" property="dllca" value="value1='one';value2='two'" /> <customaction id="dllca" binarykey="installerlibrary" dllentry="symboliclink" execute="deferred"/> <customaction id="ca1" property="dllca1" value="value1='three';value2='four'" /> <customaction id="dllca1" binarykey="installerlibrary" dllentry="symboliclink" execute="deferred"/> <installexecutesequence> <custom action="ca" before="installfinalize"></custom> <custom action="dllca" after="ca"></custom> <custom action="ca1" before="installfinalize"></custom> <custom action="dllca1" after="ca1"></custom> </installexecutesequence>
defining 1 time should suffice, ensuring setting property correctly before create phone call symboliclink custom action:
<customaction id="ca" property="symboliclink" value="value1='one';value2='two'" /> <customaction id="ca1" property="symboliclink" value="value1='three';value2='four'" /> <customaction id="dllca" binarykey="installerlibrary" dllentry="symboliclink" execute="deferred"/> <installexecutesequence> <custom action="ca" before="installfinalize"></custom> <custom action="dllca" after="ca"></custom> <custom action="ca1" before="installfinalize"></custom> <custom action="dllca" after="ca1"></custom> </installexecutesequence> wix custom-action wix3
No comments:
Post a Comment