I'm using the following code (Sample code I found, not originally written by me) which I haven't had any problems with. According to msi.chm PMSIHANDLE objects are automatically closed as they go out of scope, which doesn't happen for MSIHANDLE -- if you're using MSIHANDLE you're required to close it using MsiCloseHandle, could your bug be related to this??
Sample code: #define _USE_RTM_VERSION void LogString(MSIHANDLE hInstall, TCHAR* szString) { PMSIHANDLE newHandle = ::MsiCreateRecord(2); TCHAR szTemp[MAX_PATH * 2]; sprintf_s(szTemp, MAX_PATH * 2, "-- MSI_LOGGING -- %s", szString); MsiRecordSetString(newHandle, 0, szTemp); MsiProcessMessage(hInstall, INSTALLMESSAGE(INSTALLMESSAGE_INFO), newHandle); } Cheers, Sascha On Thu, Jun 17, 2010 at 1:26 PM, gapearce <mr_gapea...@yahoo.com> wrote: > > Thanks for the reply, Blair. > > Yeah, I just tried that for the heck of it... I would not ever do that in > production... > > But the problem remains... I cannot log something late in the install > process... > > > -- > View this message in context: > http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Unable-to-log-through-DLL-using-MsiProcessMessage-tp709471p5189209.html > Sent from the wix-users mailing list archive at Nabble.com. > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users