Sorry, I forgot to include the code in my custom action: MsiGetProperty(hInstall,L"SUPPORTDIR",NULL,&bufferSize); installDir = (wchar_t*)malloc((bufferSize+1)*sizeof(wchar_t)); MsiGetProperty(hInstall,L"SUPPORTDIR", installDir, &bufferSize);
This is what I've got right now. However, if I try out output, SUPPORTDIR, it's empty. On 1/3/2012 3:57 PM, Kevin Hebert wrote: > The question is though, how do I extract it? I'd thought I was going > about it the right way, but apparently I'm not. > > > On 1/3/2012 2:37 PM, Castro, Edwin G. (Hillsboro) wrote: >> A CustomAction cannot have more than one BinaryKey. >> >> The CheckEmailExists function will need to be responsible for extracting any >> resources it needs from the Binary table as well as cleanup. >> >> Edwin G. Castro >> Software Developer - Staff >> Digital Channels >> Fiserv >> Office: 503-746-0643 >> Fax: 503-617-0291 >> www.fiserv.com >> Please consider the environment before printing this e-mail >> >>> -----Original Message----- >>> From: Kevin Hebert [mailto:ke...@legendary-immersion.com] >>> Sent: Tuesday, January 03, 2012 11:14 AM >>> To: General discussion for Windows Installer XML toolset. >>> Subject: Re: [WiX-users] Accessing file in MSI before it's installed >>> >>> 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