Did you try just showing a standard windows forms message box from within your C# custom action?
MessageBox.Show() On Mon, Jul 19, 2010 at 12:31 PM, <daniel.knoep...@noser.com> wrote: > > Hi Christopher > > I currently have the action scheduled after "CreateFolders". I use the CA > almost like a startup-condition. There may also be other places where i > intend to show a messagebox, but this is not defined yet. > > I hoped it would be something rather simple, either a flag or set the focus > of the WindowsForms message box. I fear the solution may be a little more > complicated. > > Greetings > > > ________________________________________ > Von: Christopher Painter [chr...@deploymentengineering.com] > Gesendet: Montag, 19. Juli 2010 18:18 > An: General discussion for Windows Installer XML toolset. > Betreff: Re: [WiX-users] Messagebox from custom action with a lot of text > > Where is this custom action scheduled? I usually have a reusable dialog > that > contains an error property and then have my CA set the property and return. > ControlEvents then detect the error property has data and do a SpawnDialog > on > the generic error dialog and gate transition to the next dialog. > > Christopher Painter, Author of Deployment Engineering Blog > Have a hot tip, know a secret or read a really good thread that deserves > attention? E-Mail Me > > > > ----- Original Message ---- > From: "daniel.knoep...@noser.com" <daniel.knoep...@noser.com> > To: wix-users@lists.sourceforge.net > Sent: Mon, July 19, 2010 10:55:12 AM > Subject: [WiX-users] Messagebox from custom action with a lot of text > > Hi > > In our wix installer a C# custom action, needs to pop up a window to show a > message that might be quite long. > I currently do it the following way: > > > public void ShowWarningMessageBox(string pMessage) > > { > > > > Record record = new Record(); > > record.FormatString = pMessage; > > Session.Message(InstallMessage.Error | > (InstallMessage)System.Windows.Forms.MessageBoxIcon.Warning | > > (InstallMessage)System.Windows.Forms.MessageBoxButtons.OK, record); > > > > > > Unfortunately, longer messages are not fully shown, only parts of it. Is > there a > way to ensure that the entire text is displayed? > > > > If somehow possible, i would like to stick with the Wix session.Message > method, > rather than using windows forms because of the focus. If somebody knows, > how to > ensure that the focus is set correctly in a windows forms message box, i > would > also happily go with that (preventing displaying a msgbox in silent mode is > no > problem as the uilevel property can be checked) > > > > Greetigns and thanks in advance > > > > Dan > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users