Pre- and Post-BuildEvents are for people that are afraid of XML. You have far better control, and it will be ultimately much more reliable, if you use a BeforeBuild target and just build it in to your csproj. The main thing you have to be careful of is that the exact timing when two given projects runs is a lot more flexible then what you think. It is natural to see the build process as running in series--natural but incorrect.
Using a Heat target to extract files created by another project can run into timing issues where the first project is not done copying the files to where you expect (file I/O is typically the most time consuming and expensive part of a build). If after analysis, it looks safe to run the target, that is good. But you may also find it necessary to create a project whose sole purpose is to: 1) take a dependency on the file generating project; 2) run Heat as an AfterBuild target; and optionally 3) copy the resulting WXS file where it is consumed by the wixlib or wix project. -- 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: ssmsam [mailto:ssmcs...@gmail.com] Sent: Monday, November 17, 2014 9:39 AM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] <InstallUISequence> not working when kept out of <product> okay. John, From your suggestion, what i understand is, i may have not to use heat in pre-build events. It has to be used only once to harvest a file through cmd . So, I have to harvest each dll (could be registering what regsvr32 does or GACing wat regasm does) seperately first, then include these .wxs files containing harvested file into the product. Am i right here? Please correct me if i am wrong. Thanks for your quick suggestions. Very helpful and knowledgeable. Thanks and Regards, Sampat -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/InstallUISequence-not-working-when-kept-out-of-product-tp7597976p7597998.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ 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. ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users