Re: [WiX-users] Displaying custom error messages if deferred CA fails [P]

2014-05-16 Thread Phil Wilson
In general the MsiSetExternalUI related stuff is available with a NET interop layer that wraps MsiExternalUIRecord. For example, you can arrange to handle FilesInuse events (search for ExecuteFilesInUseEventArgs) and display the dialog. Or search for BootstrapperApplication.ExecuteMsiMessage. The

Re: [WiX-users] Displaying custom error messages if deferred CA fails [P]

2014-05-14 Thread Phill Hogland
I have been following this thread and trying to figure out a similar issue using WcaErrorMessage in my CA and trying to catch the error event and display a message in my Burn mba. I did not know how similar this was to your (Soren's) efforts, so I started another thread here: http://windows-insta

Re: [WiX-users] Displaying custom error messages if deferred CA fails [P]

2014-05-14 Thread b . rasing
Dit mailadres is niet meer in gebruik. Mail kan je voortaan sturen naar basti...@careercontrol.nl. -- "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+

Re: [WiX-users] Displaying custom error messages if deferred CA fails [P]

2014-05-14 Thread Soren Dreijer
s back to the installer > UI > >> so > >> > I can show a sensible error message. > >> > > >> > > >> > On Fri, May 9, 2014 at 1:00 PM, Steven Ogilvie < > steven.ogil...@titus.com > >> >wrote: > >> > > >>

Re: [WiX-users] Displaying custom error messages if deferred CA fails [P]

2014-05-14 Thread Phil Wilson
> Classification: Public >> >> I would love to see your code for that :) " Particularly if the user is >> >> going to see It, I try to give a message appropriate to the context >> with a >> >> "Details" button that displays the stack trace.&quo

Re: [WiX-users] Displaying custom error messages if deferred CA fails [P]

2014-05-14 Thread Soren Dreijer
to give a message appropriate to the context > with a > >> "Details" button that displays the stack trace." > >> > >> -Original Message- > >> From: John Cooper [mailto:jocoo...@jackhenry.com] > >> Sent: May-09-14 3:51 PM >

Re: [WiX-users] Displaying custom error messages if deferred CA fails [P]

2014-05-12 Thread Phil Wilson
lays the stack trace." >> >> -Original Message- >> From: John Cooper [mailto:jocoo...@jackhenry.com] >> Sent: May-09-14 3:51 PM >> To: General discussion about the WiX toolset. >> Subject: Re: [WiX-users] Displaying custom error messages if deferre

Re: [WiX-users] Displaying custom error messages if deferred CA fails [P]

2014-05-12 Thread Soren Dreijer
uot; > > -Original Message- > From: John Cooper [mailto:jocoo...@jackhenry.com] > Sent: May-09-14 3:51 PM > To: General discussion about the WiX toolset. > Subject: Re: [WiX-users] Displaying custom error messages if deferred CA > fails [P] > > In general, this

Re: [WiX-users] Displaying custom error messages if deferred CA fails

2014-05-10 Thread b . rasing
Dit mailadres is niet meer in gebruik. Mail kan je voortaan sturen naar basti...@careercontrol.nl. -- Is your legacy SCM system holding you back? Join Perforce May 7 to find out: • 3 signs your SCM is hindering your pro

Re: [WiX-users] Displaying custom error messages if deferred CA fails

2014-05-10 Thread Soren Dreijer
Thanks Phill! I also found this: http://msdn.microsoft.com/en-us/library/aa371247%28v=vs.85%29.aspx http://msdn.microsoft.com/en-us/library/aa370573%28v=vs.85%29.aspx However, I'm still not clear on how I go about handling that error code in my bootstrapper. For instance, let's say two different

Re: [WiX-users] Displaying custom error messages if deferred CA fails

2014-05-09 Thread Phill Hogland
Youmight want to look at src\ext\ca\wixca\dll\CloseApps.cpp in the Wix tools source for an example of using WcaProcessMessage. HRESULT hr = S_OK; UINT er = ERROR_SUCCESS; PMSIHANDLE hRecMessage = NULL; DWORD *prgProcessIds = NULL; DWORD cProcessIds = 0; hRecMessage = ::Msi

Re: [WiX-users] Displaying custom error messages if deferred CA fails [P]

2014-05-09 Thread Steven Ogilvie
coo...@jackhenry.com] Sent: May-09-14 3:51 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Displaying custom error messages if deferred CA fails [P] In general, this works well for Immediate custom actions (my custom actions follow a similar pattern). However, for defe

Re: [WiX-users] Displaying custom error messages if deferred CA fails [P]

2014-05-09 Thread John Cooper
Session.Log("BackupMyDatabase succeeded..."); } return ActionResult.Success; } -Original Message- From: Soren Dreijer [mailto:dreijer+l...@echobit.net] Sent: May-09-14 2:48 PM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Displaying custom error mes

Re: [WiX-users] Displaying custom error messages if deferred CA fails [P]

2014-05-09 Thread Steven Ogilvie
return ActionResult.Success; } -Original Message- From: Soren Dreijer [mailto:dreijer+l...@echobit.net] Sent: May-09-14 2:48 PM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Displaying custom error messages if deferred CA fails Hi all, I've G

[WiX-users] Displaying custom error messages if deferred CA fails

2014-05-09 Thread Soren Dreijer
Hi all, I've Googled and searched the WiX mailing list, but I haven't been able to figure this one out yet. One of the biggest problems I've always had with MSIs is that they rarely return useful error messages. I'm using a custom bootstrapper and I'd like to display a custom error message if one