On Thu, 28 May 2009 11:05 -0600, "Richard" <legal...@xmission.com>
wrote:
> 
> In article <4a1ec07c.1030...@wixtoolset.org>,
>     Rob Mensching <r...@wixtoolset.org>  writes:
> 
> > You can't "just check for Cancel". You need to send a message and if a 
> > cancel occurred then you'll get that in the return code from 
> > ::MsiProcessMessage(). wcautil.lib also has wrappers around many of the 
> > MSI functions since more functions than you'd expect can return cancel.

In my case, I chose to propagate anything that isn't an ERROR_SUCCESS
immediately, with ERROR_MORE_DATA and ERROR_NO_MORE_ITEMS being
exceptions that are specifically handled by the routines that need to
handle them. (That's what my MSI_OK and MSI_OK_* macros do) So if an
Msi* function returns a standard ERROR_INSTALL_USEREXIT, it should pass
that up the line in short order.

The problem would be anything that returns something else and needs to
change the error code to an ERROR_INSTALL_USEREXIT.

> This comes up often enough that it would be a good thing to document
> the canonical list of functions that you have to check.  AFAIK, there
> is nothing in the Windows Installer documentation that is a list of
> such functions, you have to read through each one in the reference.

Such a list would be quite nice.

--
Curtis Jewell
swords...@csjewell.fastmail.us

%DCL-E-MEM-BAD, bad memory
-VMS-F-PDGERS, pudding between the ears

[I use PC-Alpine, which deliberately does not display colors and
pictures in HTML mail]
--
Curtis Jewell
swords...@csjewell.fastmail.us

%DCL-E-MEM-BAD, bad memory
-VMS-F-PDGERS, pudding between the ears

[I use PC-Alpine, which deliberately does not display colors and pictures in 
HTML mail]


------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT 
is a gathering of tech-side developers & brand creativity professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, & 
iPhoneDevCamp as they present alongside digital heavyweights like Barbarian 
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-com 
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to