>> I'm very new to working with Installs but have some managed code that I'd like to use as Custom Actions.
First, I should warn you that writing custom actions is not something that should be done by someone unfamiliar with Windows Installer technology. Even though DTF makes the task more approachable with managed code and project templates, it's still something that should be done only by more advanced setup developers who have a good understanding of MSI concepts and how custom actions properly fit into a setup. If you haven't already, you should read the custom action topics on MSDN: http://msdn.microsoft.com/en-us/library/aa368066.aspx With that caveat out of the way, I'll answer your qestion. For more details about most DTF APIs, you often have to go to the MSDN doc for the underlying Win32 MSI API. The reference documentation for DTF has those MSDN links in the Remarks section of each topic. In this case, the doc for MsiProcessMessage is here: http://msdn.microsoft.com/en-us/library/aa370354.aspx Based on that page, it seems like the CommonData message type is not what you want. If you want to write a message to the log, use InstallMessage.Info or just call session.Log() instead. If you want to display a messagebox, use InstallMessage.User. -Jason- -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Yonger Sent: Thursday, June 12, 2008 10:05 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] DTF code help and documentation I'm very new to working with Installs but have some managed code that I'd like to use as Custom Actions. I'd like to try out using DTF with C# but not finding much in documentation with examples..so I'm just having to trial and error it. Hoping that someone may know of a good site. Currently trying to get session.Message to work. When I pick message type of InstallMessage.CommonData it says that it needs a language Id then a dialog caption. Is this an array with Int then string or does the array need to have more in it? What should the language ID be set to? I'm playing around with it but just get InstallerException each time and can't find a website with answers to my questions...so getting frustrated! Here’s the code that throws the error below... object[] objArry = { 0, "Hello" }; Record it = new Record(objArry); session.Message(InstallMessage.CommonData, it); Any code help or suggested reading would be greatly greatly appreciated! -- View this message in context: http://www.nabble.com/DTF-code-help-and-documentation-tp17804914p17804914.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users