We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

njshaw2
Posts: 26
Joined: Fri Apr 19, 2013 10:36 am

MessageBox in C# installer DLL

Hi,

According to the user guide on creating a C# installer DLL with WiX (http://www.advancedinstaller.com/user-g ... rp-ca.html), I can have a MessageBox pop up as long as I include System.Windows.Forms. I've tried doing this, but it appears a WiX project doesn't have access to the System.Windows namespace so Forms (and thus also MessageBox) is not available either. Is this an error in the user guide, or do newer versions of WiX allow this (I'm having to use v3.0 as I only have Visual Studio 2008)?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: MessageBox in C# installer DLL

Hi,

Unfortunately this does not work with newer versions either. I tried this myself a couple of months ago and gave up, ended
up setting a property and showing a running a message box custom action based on the value of the property.

However, just a couple of days ago I cam across this thread on StackOveflow, where it seems that a solution could be for showing a message box from
a DTF custom action
.

I am not very experienced with .NET so at the time I needed I ended up with a quick hack :). Hope it will help you.

Best regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”