Re: [WiX-users] Logging from a Custom Action during the UI phase

2008-10-06 Thread John Hall
 If you're looking for a quick non-debugger method, property
 changes are still logged. It may be a hack, but calling
 MsiSetProperty(hMSI, _T(LOGME), _T(...)) is effective.

Michael,

That's a nice workaround - I like it.

Cheers,
John

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Logging from a Custom Action during the UI phase

2008-10-02 Thread John Hall
 Yeah, Windows Installer doesn't let it work.  Why?  Some
 message processing issue inside them.  I think this is
 documented in some small print somewhere.

 PS:  Please don't shoot the messenger.  smile/

Of course not. I had half guessed it was something like this anyway. I guess 
it's a matter of inserting a MessageBox call at the top of my CA and attaching 
a debugger then.

Regards,
John

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Logging from a Custom Action during the UI phase

2008-10-02 Thread Michael Owings
This is how I generally do it (message box/attach debugger) -- although 
you can of course do your own logging.

You could probably even trigger it off of a property passed on the 
MSIEXEC command line.

John Hall wrote:
 Yeah, Windows Installer doesn't let it work.  Why?  Some
 message processing issue inside them.  I think this is
 documented in some small print somewhere.

 PS:  Please don't shoot the messenger.  smile/
 
 Of course not. I had half guessed it was something like this anyway. I guess 
 it's a matter of inserting a MessageBox call at the top of my CA and 
 attaching a debugger then.
 
 Regards,
 John
 
 -
 This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
 Build the coolest Linux based applications with Moblin SDK  win great prizes
 Grand prize is a trip for two to an Open Source event anywhere in the world
 http://moblin-contest.org/redirect.php?banner_id=100url=/
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users
 
 
 


-- 
Teleoperate a roving mobile robot from the web:
http://www.swampgas.com/robotics/rover.html

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Logging from a Custom Action during the UI phase

2008-10-02 Thread Michael Urman
On Thu, Oct 2, 2008 at 3:13 AM, John Hall
[EMAIL PROTECTED] wrote:
 Yeah, Windows Installer doesn't let it work.  Why?  Some
 message processing issue inside them.  I think this is
 documented in some small print somewhere.

 PS:  Please don't shoot the messenger.  smile/

 Of course not. I had half guessed it was something like this anyway. I guess 
 it's a matter of inserting a MessageBox call at the top of my CA and 
 attaching a debugger then.

If you're looking for a quick non-debugger method, property changes
are still logged. It may be a hack, but calling MsiSetProperty(hMSI,
_T(LOGME), _T(...)) is effective.

-- 
Michael Urman

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Logging from a Custom Action during the UI phase

2008-10-02 Thread Richard

In article [EMAIL PROTECTED],
Michael Urman [EMAIL PROTECTED]  writes:

 If you're looking for a quick non-debugger method, property changes
 are still logged. It may be a hack, but calling MsiSetProperty(hMSI,
 _T(LOGME), _T(...)) is effective.

Another option is to call OutputDebugString with the information you
want to log and then run something like DebugView to see the debug
output stream.
-- 
The Direct3D Graphics Pipeline -- DirectX 9 draft available for download
  http://www.xmission.com/~legalize/book/download/index.html

Legalize Adulthood! http://blogs.xmission.com/legalize/

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Logging from a Custom Action during the UI phase

2008-10-01 Thread John Hall
In my installer I have some C++ custom actions that log to the main MSI log 
file using MsiProcessMessage. I'm now writing a CA that is executed on a button 
press in the UI as the user leaves the feature selection dialog. However, none 
of my debug output is appearing in the log.

Is there a reason why this doesn't work?

Regards,
John
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Logging from a Custom Action during the UI phase

2008-10-01 Thread Rob Mensching
Yeah, Windows Installer doesn't let it work.  Why?  Some message processing 
issue inside them.  I think this is documented in some small print somewhere.

PS:  Please don't shoot the messenger.  smile/

-Original Message-
From: John Hall [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 01, 2008 02:05
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Logging from a Custom Action during the UI phase

In my installer I have some C++ custom actions that log to the main MSI log 
file using MsiProcessMessage. I'm now writing a CA that is executed on a button 
press in the UI as the user leaves the feature selection dialog. However, none 
of my debug output is appearing in the log.

Is there a reason why this doesn't work?

Regards,
John
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users