I'm having a problem where it appears that my custom action is
terminating during a MsiGetProperty call.
Hopefully someone could provide some insight into the issue.
I've simplified reproducing the problem to this
/* Get the Installation directory from the installer
************************/
WcaLog(LOGMSG_STANDARD, "Get TARGETDIR");
TCHAR* installDirBuf = NULL;
uiStat = MsiGetProperty(hInstall, TEXT("TARGETDIR"), TEXT(""),
&cchValueBuf);
return WcaFinalize(ERROR_SUCCESS);
With the return before the call to MsiGetProperty, the install completes
without issue. With the return following the MsiGetProperty call, I get
the following error in the log.
DEBUG: Error 2769: Custom Action AddToPaths did not close 1 MSIHANDLEs.
The installer has encountered an unexpected error installing this
package. This may indicate a problem with this package. The error code
is 2769. The arguments are: AddToPaths, 1,
Action ended 15:14:15: AddToPaths. Return value 3.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users