>From the DTF documentation for Session.Message: "The messageType parameter may also include message-box flags from the following enumerations: System.Windows.Forms.MessageBoxButtons, System.Windows.Forms.MessageBoxDefaultButton, System.Windows.Forms.MessageBoxIcon. These flags can be combined with the InstallMessage with a bitwise OR."
What it doesn't say is you will need to cast the result back to an InstallMessage enum. DTF's Session.Message is a very thin wrapper around MsiProcessMessage, so the behavior regarding how user messageboxes are displayed should be the same. I also posted the above to the thread on Acresso forums. Those other InstallMessage enums are only used by external UI handlers -- they are documented at http://msdn.microsoft.com/en-us/library/aa369545.aspx. InstallStart/InstallEnd are MSI 4.5-only (for multi-package transactions). -Jason- -----Original Message----- From: Christopher Painter [mailto:chr...@deploymentengineering.com] Sent: Tuesday, December 16, 2008 6:46 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Problem with error handling of managed custom actions Jason can answer better then me, but I'm guessing that the Session.Message( InstallMessage ... ) doesn't fully expose this capability of MsiProcessMessage. Also of interest to me are 5 enum values that don't seem to map up to the API. I'm not sure what they are: InstallMessage.InstallEnd InstallMessage.InstallStart InstallMessage.Initialize InstallMessage.ShowDialog InstallMessage.Terminate --- On Tue, 12/16/08, Jacob, Christian <cja...@toptechnologies.de> wrote: > From: Jacob, Christian <cja...@toptechnologies.de> > Subject: [WiX-users] Problem with error handling of managed custom actions > To: "wix-users@lists.sourceforge.net" <wix-users@lists.sourceforge.net> > Date: Tuesday, December 16, 2008, 7:58 AM > Hello, > > I am writing a managed custom action. I am using the DTF > Framework from Windows Installer Xml to wrap the managed dll > into a usable CA dll. > The CA does what it is supposed to, but I am still having > trouble with error handling: > > Dim record As New Record(1) > ' Field 0 intentionally left blank > ' Field 1 contains error number > record(1) = 27533 > session.Message(InstallMessage.Error, record) > > The above code produces the following text shown in the MSI > log: > > MSI (c) (C4 ! C6) [13:15:08:749]: Product: TestMSI -- Error > 27533. The case-sensitive passwords do not match. > > The error number refers to the code contained in the error > table within the MSI. > The message shown above is correct. > > My problem is: Why does Windows Installer NOT create a > dialog notifying the user about the error? And how do I get > it to show a dialog? > > I hope someone can help me. > > Best regards, > Christian. > > ------------------------------------------------------------------------------ > SF.Net email is Sponsored by MIX09, March 18-20, 2009 in > Las Vegas, Nevada. > The future of the web can't happen without you. Join > us at MIX09 to help > pave the way to the Next Web now. Learn more and register > at > http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users