i have the following requirement 1)install an xml file. 2)to modify the installed xml file 3) to pass the modified xml file as an argument to a executable in command line mode. (this has been accomplished by using CA of type 1025)
Afetr browing the forum what i have understood is that i need 2 custom action to modify the task mentioned in second requirement. 1) an immediate custom action to collect the collect CustomActionData 2) a deferred custom action to actually modify the xml file as per the users input. Now this deferred custom action cannot access session objects as it is deferred. So i need to access the properties using session.CustomActionData which would be populated by my first CustomAction. Here is my Declaration of my both the custom actions <CustomAction Id=" SetCustomActionData" BinaryKey="CustomActions" DllEntry=" SetCustomActionData" Execute="immediate" /> <CustomAction Id=" ModifyUserXMLFile" BinaryKey="CustomActions" DllEntry=" ModifyUserXMLFile " Execute="deferred" /> What should be in InstallExecuteSequence? Do I need to schedule both Custom Actions ? <InstallExecuteSequence> <Custom Action ="SetCustomActionData" After="InstallFiles">NOT Installed</Custom> <Custom Action="ModifyUserXMLFile" After=" SetCustomActionData">NOT Installed</Custom> <Custom Action="FormCommand" After=" ModifyUserXMLFile">NOT Installed</Custom> <Custom Action="ExecCMD" After=" FormCommand">NOT Installed</Custom> </InstallExecuteSequence> And how does my deferred action get executed using session.DoAction("ModifyUserXMLFile", customActionData); or just schedule it in <InstallExecuteSequence> and leave it to get executed automatically by installer . Can anybody help me with a working dummy code in this scenario -- View this message in context: http://n2.nabble.com/Calling-Deferred-custom-action-tp4708880p4708880.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users