Re: [WiX-users] Extracting a certificate from binary table

2009-01-28 Thread Brian Rogers
Hey Pratapa, I am not sure I can help you "append data" to your custom action. However, here is what I do to read the data from the stream being passed to the deferred custom action. HRESULT hr = S_OK; UINT er = ERROR_SUCCESS; BOOL isTurnedOn = FALSE; LPWSTR pwzAuthCabPath = NULL;

Re: [WiX-users] Extracting a certificate from binary table

2009-01-27 Thread psanaga
Thank you Brian. I figured out how to get the data from the binary table. But I'm still not able to find how to append data to the custom action data. Also, I'm getting return code 6(I'm guessing invalid handle) for MsiGetProperty(). I don't recall any change to my code which would cause this. An

Re: [WiX-users] Extracting a certificate from binary table

2009-01-27 Thread Brian Rogers
Hey, This is some code that I used to do that. I think you can look into the shellexecca.cpp file. HRESULT hr = S_OK; UINT er = ERROR_SUCCESS; LPWSTR pwzS

[WiX-users] Extracting a certificate from binary table

2009-01-26 Thread Pratapa Reddy Sanaga
Hi, I'm placing a .pfx certificate in the binary table and wish to retrieve it in my deferred custom action dll. From what I read on the forum, I see that this can be achieved by reading the certificate using immediate custom action, write it to custom action data(or to a temporary file, which I d