You can store your file in Binary table and save it from custom action to a temporary location.
All you need is simple SQL query like: SELECT `Data` FROM `Binary` WHERE `Name`='mybinary' Then read record data using MsiRecordReadStream and write it to file. -- Cheers, Maciej -----Original Message----- From: Adam Kadzban Sent: Tuesday, January 03, 2012 8:41 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Accessing file in MSI before it's installed I'm not sure of a way to do it in WIX. I've used Custom Actions like this before, but always after I had put down the files they need. Maybe you can add the pem files as resources inside the DLL? Someone else might have a better solution though. -Adam On Tue, Jan 3, 2012 at 1:14 PM, Kevin Hebert <ke...@legendary-immersion.com>wrote: > This might sound incredibly silly, but can a custom action have more > than one BinaryKey? I currently have: > > <CustomAction Id="checkEmailExists" BinaryKey="installerDLL" > DllEntry="CheckEmailExists" /> > > Currently, the BinaryKey here is the file that holds the custom action. > But I'm wanting to access a server and root pem file. Thanks. > > On 1/3/2012 12:35 PM, Kevin Hebert wrote: > > Thanks. I'll take a look into that. The function I'm writing that is > > calling the sslConnect function is a custom action in itself. So this > > shouldn't be too difficult. Hopefully. > > > > On 1/3/2012 12:24 PM, Adam Kadzban wrote: > >> You could include the file as a Binary, then have a custom action call > it: > >> > >> <Binary Id="MyEXE" SourceFile="..\MyFile.exe" /> > >> <CustomAction Id="DoMyThing" BinaryKey="MyEXE" Execute="deferred" /> > >> > >> -Adam > >> > >> On Tue, Jan 3, 2012 at 12:06 PM, Kevin Hebert< > ke...@legendary-immersion.com > >>> wrote: > >>> I have an sslConnect function which requires a file that is normally > >>> installed before the function is called. However, due to a change in > >>> what the client wants, I need to call the function before its > >>> installed. Is there a way to access the file before installation? > Thanks. > >>> > >>> -- > >>> Kevin Hebert > >>> > >>> > >>> > ------------------------------------------------------------------------------ > >>> Write once. Port to many. > >>> Get the SDK and tools to simplify cross-platform app development. > Create > >>> new or port existing apps to sell to consumers worldwide. Explore the > >>> Intel AppUpSM program developer opportunity. > appdeveloper.intel.com/join > >>> http://p.sf.net/sfu/intel-appdev > >>> _______________________________________________ > >>> WiX-users mailing list > >>> WiX-users@lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/wix-users > >>> > >> > ------------------------------------------------------------------------------ > >> Write once. Port to many. > >> Get the SDK and tools to simplify cross-platform app development. > >> Create > >> new or port existing apps to sell to consumers worldwide. Explore the > >> Intel AppUpSM program developer opportunity. > appdeveloper.intel.com/join > >> http://p.sf.net/sfu/intel-appdev > >> _______________________________________________ > >> WiX-users mailing list > >> WiX-users@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/wix-users > >> > >> > > > > > -- > Kevin Hebert > > > > ------------------------------------------------------------------------------ > Write once. Port to many. > Get the SDK and tools to simplify cross-platform app development. Create > new or port existing apps to sell to consumers worldwide. Explore the > Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join > http://p.sf.net/sfu/intel-appdev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users