Add the file as a binary resource to your custom action and stream it from there?
Or use the api to read it from the binary table. http://blogs.msdn.com/b/icumove/archive/2009/06/23/custom-action-using-wix-reading-from-the-binary-table.aspx It's usually easier to just install the file and then read it, but that depends on when the CA is scheduled. Dave [http://cdn.sdl.tridion.sdlproducts.com/static/corporate/SDLlogo2014.png] <www.sdl.com/> www.sdl.com SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us. SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. -----Original Message----- From: Wang, Miaohsi [mailto:miaohsi.w...@schneider-electric.com] Sent: 02 July 2015 19:43 To: General discussion about the WiX toolset. Subject: [WiX-users] Adding temporary file to the Binary table Dear WiX Support, I've been trying to add a text file to an MSI package to be used by a custom action, but without success. I have added two files to the Binary table as shown below. <Binary Id="CustomActions.dll" SourceFile="..\CustomAction1\bin\Release\CustomAction1.CA.dll" /> <Binary Id="products.ini" SourceFile=".\products.ini" /> At install runtime, I saw only CustomAction1.dll in the WiX temp folder (example: C:\Windows\Installer\MSI5F76.tmp-). Is there any way I can add the text file to the package without installing it, and access it at install runtime? Thanks a lot, Miaohsi Miaohsi Wang | Schneider Electric | Invensys | SimSci & IntelaTrac Software | Software Engineer Phone: +1 949-455-8147 Email: miaohsi.w...@schneider-electric.com<mailto:miaohsi.w...@schneider-electric.com> Site: www.simsci.com<http://iom.invensys.com/en/pages/SimSci.aspx> | Address: 26561 Rancho Parkway South, Lake Forest, CA 92630, USA *** Please consider the environment before printing this e-mail ________________________________ *** Confidentiality Notice: This e-mail, including any associated or attached files, is intended solely for the individual or entity to which it is addressed. This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify the sender immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person. ________________________________ *** Confidentiality Notice: This e-mail, including any associated or attached files, is intended solely for the individual or entity to which it is addressed. This e-mail is confidential and may well also be legally privileged. If you have received it in error, you are on notice of its status. Please notify the sender immediately by reply e-mail and then delete this message from your system. Please do not copy it or use it for any purposes, or disclose its contents to any other person. ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users This message has been scanned for malware by Websense. www.websense.com ------------------------------------------------------------------------------ Don't Limit Your Business. Reach for the Cloud. GigeNET's Cloud Solutions provide you with the tools and support that you need to offload your IT needs and focus on growing your business. Configured For All Businesses. Start Your Cloud Today. https://www.gigenetcloud.com/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users