In my Product.wxs, I have the following: <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="SUPPORTDIR" Name="SupporDir"> <Component Id="SSLCerts1" Guid=""> <File Id="ServerPEM1" Name="server.pem" DiskId="1" Source="..\\..\\Common\\server.pem" Vital="yes" KeyPath="yes" Hidden="yes"/> <File Id="RootPEM1" Name="root.pem" DiskId="1" Source="..\\..\\Common\\root.pem" Vital="yes" KeyPath="no" Hidden="yes" /> </Component> </Directory> *other stuff* </directory>
The idea we'd had to was to use SUPPORTDIR as a sort of temp directory just to install the pem files, and then delete the SUPPORTDIR after it's purpose has been fulfilled. I'm including this, as it might also be useful in trying to figure this out. Again, thanks for any help. On 1/3/2012 1:41 PM, Adam Kadzban wrote: > 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 > > -- 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