I think the standard is to have the deferred action make a call to 
MsiProcessMessage (not MessageBox), passing in a reference to the Error table 
(that way your displayed strings won’t live inside dll resource files).

https://msdn.microsoft.com/en-us/library/aa371247%28v=vs.85%29.aspx


> On Feb 4, 2015, at 11:08 AM, Kashif Md. <mdkashi...@gmail.com> wrote:
> 
> Hi,
> 
> I have a deferred Custom action that fails in some scenarios. Since this
> custom action is responsible for installling some licensing libraries for
> my product hence I cannot continue installation if this CA fails.
> 
> I want to show a custom error message to the user if this CA has failed the
> installation. To capture the failure from this CA I write a registry value
> signifying whether the CA was successful or not. But how do read this
> registry, set a property based on this CA and then use that property to
> show/hide my text on SetupCompleteError dialog.
> 
> As soon as CA fails, rollback starts and then it does not execute any
> immediate custom actions. I cannot even use a roll back CA because it
> cannot set any property.
> 
> Can someone please help and let me know if there is a way to do this other
> than throwing up a message box to the user?
> 
> Thanks,
> -kashif
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming. The Go Parallel Website,
> sponsored by Intel and developed in partnership with Slashdot Media, is your
> hub for all things parallel software development, from weekly thought
> leadership blogs to news, videos, case studies, tutorials and more. Take a
> look and join the conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to