On Tue, Jan 3, 2012 at 5:26 PM, Bill Tutt <[email protected]> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users