Bill, I'm trying to use the functions that you provided, and I'm just 
curious as to where the ExitOnFailure logs are saved?  I've placed my 
own logs around the function, and I know it's failing somewhere in 
there.  Thanks.

On 1/3/2012 4:28 PM, Bill Tutt wrote:
> On Tue, Jan 3, 2012 at 5:26 PM, Bill Tutt<b...@tutts.org>  wrote:
>
>> Something like this:
>>
>>   // Extract files to temp directory.
>>   hr = PathCreateTempDirectory(NULL, L"HRCAAxeda%03x", 999,&pwszTempDir);
>>   ExitOnFailure(hr, "Failed to load create temp directory for DLL
>> extraction.");
>>   extractedFiles = true;
>>   hr = ExtractFileToDir(&pwszCustomActionData, pwszTempDir);
>>   ExitOnFailure(hr, "Failed to extract file from CA");
>>   hr = ExtractFileToDir(&pwszCustomActionData, pwszTempDir);
>>   ExitOnFailure(hr, "Failed to extract file from CA");
>>   hr = ExtractFileToDir(&pwszCustomActionData, pwszTempDir);
>>   ExitOnFailure(hr, "Failed to extract file from CA");
>>   <call into DLL, whatever...>
>>
>>
>>
> This should be:
> <Load DLLs, whatever...>
> <Call into DLLS, whatever...>
>
>
>>
>> LExit:
>>   if (extractedFiles)
>>   {
>>
>> There should be a "<unload DLLs, whatever>" here.
>>    DirEnsureDeleteEx(pwszTempDir, DIR_DELETE_FILES | DIR_DELETE_RECURSE |
>> DIR_DELETE_SCHEDULE);
>>    WcaLog(LOGMSG_VERBOSE, "Removed extracted files from '%ls': ",
>> pwszTempDir);
>>   }
>>   <other cleanup actions>
>>
>>
>>
> Bill
> ------------------------------------------------------------------------------
> 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


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to