1) This would be much easier to execute using Custom Tables. 2) Your ReadServiceAccount details is probably going to result in a subsequent custom action that modifies machine state somehow. By scheduling ReadServiceAccount after InstallFinalize, you aren't going to be able to do much since a deferred custom action is going to have to be scheduled before InstallFinalize. 3) Generally, the ReadServiceAccount CA is going to be scheduled much earlier--perhaps after InstallFiles; 4) For ReadServiceAccount, you have a choice of either parsing the XML or using an XMLSerializer. Either way, you will load the XML and set installer properties for further processing. 5) If the intent is to pass the properties into the IIS Extension authoring, you'll definitely need to make sure that your scheduling allows those properties to be set before CreateUser.
-- John Merryweather Cooper Senior Software Engineer | Enterprise Service Applications | Continuing Development Jack Henry & Associates, Inc.® | Lenexa, KS 66214 | Ext: 431050 |jocoo...@jackhenry.com -----Original Message----- From: Ramachandrani Nivash (Consultant) [mailto:nivash.ramachandr...@consultant.volvo.com] Sent: Monday, February 2, 2015 10:53 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Read xml content before creating iis:WebAppPool Hi All, I have a requirement to create a webapppool in IIS by reading user account details from a xml file. The xml file is actually a part of the installer. I am able to read the xml file content through custom actions(after "InstallFinalize") but the webapppool creation is happening before the custom actions. Due to that sequencing, I couldn't pass the user account details to the webapppool creation step. Please suggest me, where to place my custom action to solve the issue. Feature: <util:User Id="ServiceUser" CreateUser="no" Name="[SERVICEUSER]" Password="[SERVICEPASS]" /> <iis:WebAppPool Id="newapppool" Name="$(var.WEBSITEAPPPOOL)" ManagedPipelineMode ="Integrated" ManagedRuntimeVersion ="v4.0" Identity="other" User="ServiceUser"/> XML File: <Component Id="TestConfig" Guid="{#########}" Feature="ProductFeature" KeyPath="yes" Directory="Bin" > <File Source="..\Test.config" Vital="yes" KeyPath="no"/> </Component> Custom Actions: <Custom Action="ReadServiceAccountDetails" After="InstallFinalize" >(NOT Installed)</Custom> Expected output: Place the Test.config file in bin folder -> Read the Test.config file using custom actions -> create new webapppool by passing user details. Regards, Nivash Ramachandran ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users NOTICE: This electronic mail message and any files transmitted with it are intended exclusively for the individual or entity to which it is addressed. The message, together with any attachment, may contain confidential and/or privileged information. Any unauthorized review, use, printing, saving, copying, disclosure or distribution is strictly prohibited. If you have received this message in error, please immediately advise the sender by reply email and delete all copies. ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users