Ok. In the meantime could the docs be updated to note that the exit code will 
get remapped as a HRESULT to be presented to the user?

-----Original Message-----
From: Rob Mensching [mailto:r...@robmensching.com] 
Sent: Saturday, 15 June 2013 09:22
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] "Asia" error

The wixstdba doesn't provide such a mechanism today. You could write a custom 
BA to do it, or work with wix-devs to enhance the wixstdba to handle the 
scenario.


On Thu, Jun 13, 2013 at 11:37 PM, Simon Stevenson <redw...@gmail.com> wrote:

> 5100 is "General setup block", commonly we see it for a missing 
> prerequisite (
>
> http://blogs.msdn.com/b/astebner/archive/2006/11/28/return-codes-for-n
> et-framework-3-0-setup.aspx
> )
>
> The problem is that at some point it re-maps the exit code to a 
> HRESULT, which gives a nonsensical error: http://imgur.com/L4UPcDO
>
> So my question is, why/how is the exit code being remapped?
>
> I first thought that maybe it was because I wasn't using the netfx4 
> protocol, but changing that had no effect. My package is as follows:
> <PackageGroup Id="NetFx40ClientRedist"> <ExePackage 
> DisplayName="Microsoft .Net 4 Client Framework"
> InstallCommand="/q /norestart /ChainingPackage &quot;[WixBundleName]&quot;"
> RepairCommand="/q /norestart /repair /ChainingPackage 
> &quot;[WixBundleName]&quot;"
> PerMachine="yes"
> DetectCondition="NETFRAMEWORK40CLIENT"
> Id="NetFx40ClientRedist"
> Vital="yes"
> Permanent="yes"
> Protocol="netfx4"
> Name="embed\SupportFiles\dotNetFx40_Client_x86_x64.exe">
> <ExitCode Value="0" Behavior="success"/> <ExitCode Value="1641" 
> Behavior="forceReboot"/> <ExitCode Value="3010" 
> Behavior="forceReboot"/> <ExitCode Behavior="error" /> </ExePackage> 
> </PackageGroup>
>
> It seems for the other values, they correctly map to HRESULTS that 
> have strings of the same meaning. But wouldn't any program that uses 
> custom exit codes mean that the error messages wouldn't match either?
>
> Is there any way I can specify the string for the error myself?
>
>
>
> On 13 June 2013 21:24, Ogrodowski, Sabine (ehem. Frauenhoffer) < 
> sabine.ogrodow...@haufe-lexware.com> wrote:
>
> > I usually received this message on windows server 2003 when the 
> > windows imaging component is missing...
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Rob Mensching [mailto:r...@robmensching.com]
> > Gesendet: Mittwoch, 12. Juni 2013 16:19
> > An: General discussion for Windows Installer XML toolset.
> > Betreff: Re: [WiX-users] "Asia" error
> >
> > IIRC, 5100 was their return code for restart required or something? 
> > They had some very strange return codes for a while. They are 
> > documented somewhere on MSDN, IIRC... but never easy to find.
> >
> >
> > On Wed, Jun 12, 2013 at 3:56 AM, Simon Stevenson <redw...@gmail.com>
> > wrote:
> >
> > > We are getting an error in some cases where we are installing .net 
> > > 4, and the user is presented with the message "Asia". After some 
> > > investigation it seems that the .net installer is returning exit 
> > > code 5100, but it is somehow being interpreted as a HRESULT which 
> > > happens to be the string "Asia".
> > >
> > > Has anyone seen this behaviour or have any idea why this is happening?
> > >
> > >
> > > ------------------------------------------------------------------
> > > ----
> > > -------- This SF.net email is sponsored by Windows:
> > >
> > > Build for Windows Store.
> > >
> > > http://p.sf.net/sfu/windows-dev2dev
> > > _______________________________________________
> > > WiX-users mailing list
> > > WiX-users@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wix-users
> > >
> > >
> >
> >
> ----------------------------------------------------------------------
> --------
> > This SF.net email is sponsored by Windows:
> >
> > Build for Windows Store.
> >
> > http://p.sf.net/sfu/windows-dev2dev
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> >
> >
> ----------------------------------------------------------------------
> --------
> > This SF.net email is sponsored by Windows:
> >
> > Build for Windows Store.
> >
> > http://p.sf.net/sfu/windows-dev2dev
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
>
> ----------------------------------------------------------------------
> -------- This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to