Bugs item #1845036, was opened at 2007-12-05 10:59
Message generated for change (Settings changed) made by shadowchaser
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1845036&group_id=105970

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: extensions
Group: v3.0
>Status: Closed
Resolution: Works For Me
Priority: 5
Private: No
Submitted By: Eric Bickle (shadowchaser)
Assigned to: Scott Kurtzeborn (scotk)
Summary: WcaLog does not log

Initial Comment:
Calling WcaLog from a custom action never logs to the MSI log file.

For example:

extern "C" UINT __stdcall Test(__in MSIHANDLE hInstall)
{
    HRESULT hr = S_OK;
    
    hr = WcaInitialize(hInstall, "Test");
    ExitOnFailure(hr, "Failed to initialize."

    WcaLog(LOGMSG_STANDARD, "Never appears in log");

LExit:
    return WcaFinalize(SUCCEEDED(hr) ? ERROR_SUCCESS : ERROR_INSTALL_FAILURE);
}


Invoking MSI exec with logging never logs the message to the log file, 
regardless of the setting.

msiexec /i Test.msi /lv VerboseLog.txt

VerboseLog.txt is created and contains lines written by MSI showing that the 
custom action is being invoked. None of the WcaLog commands write to the log 
file. 



----------------------------------------------------------------------

Comment By: Eric Bickle (shadowchaser)
Date: 2007-12-05 11:41

Message:
Logged In: YES 
user_id=416299
Originator: YES

Looks like it may have been a different problem, I can get it to work in
some cases. I still have a hunch that it fails in some states, but it will
require more testing. Cancelling for now, sorry.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1845036&group_id=105970

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to