Since you mention c# I assume you are using DTF. DTF allows you to add a file as content to the custom action CSPROJ and it'll automatically extract to the current directory in TEMP and cleanup at the end of execution for you. You wouldn't have to write any code. Would this fit your needs?
---------------------------------------- From: "ak m" <wixak...@gmail.com> Sent: Tuesday, September 03, 2013 8:10 AM To: chr...@iswix.com, "General discussion for Windows Installer XML toolset." <wix-users@lists.sourceforge.net> Subject: Re: [WiX-users] Extract Binary file from MSI to Temp folder using C# custom action during install... On Tue, Sep 3, 2013 at 5:46 PM, Christopher Painter <chr...@iswix.com> wrote: Is this for an application extracting a resource or for a custom action during an install? ---------------------------------------- From: "ak m" <wixak...@gmail.com> Sent: Monday, September 02, 2013 7:21 AM To: "General discussion for Windows Installer XML toolset." <wix-users@lists.sourceforge.net> Subject: [WiX-users] Extract Binary file from MSI to Temp folder using C# Dear All, Code to Extract Binary file from MSI to Temp folder using C# Anyone Plz help me on this? Thanks in Advance... Anil ---------------------------------------------------------------------------- -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users