[wix-users] error code other than 1602 (1633 or other)

Christopher Painter chrpai at iswix.com
Mon Jun 3 19:58:06 PDT 2019


I think but I'm not sure that it would return a 1633.  It might write the 1633 error to the log and return a 1603 though.  I'd have to spin up a test lab to say for sure.

________________________________
From: Todd Thompson <tthompson at digitalguardian.com>
Sent: Monday, June 3, 2019 8:22 PM
To: Christopher Painter; wix-users at lists.wixtoolset.org
Subject: Re: error code other than 1602 (1633 or other)


Hi Christopher,



Thanks for the information! Just curious is the return code of 1633 meant for when a 64 bit installer is attempted to be installed on a 32 bit OS? Without a bootstrapper  the WIX MSI install logic only supports return codes of 0 (success) 1603 (generic error), 1602 (User cancelled), 3010 reboot required.



Thanks again for the information.

Todd



Get Outlook for iOS<https://aka.ms/o0ukef>

________________________________

From: Christopher Painter <chrpai at iswix.com>
Sent: Monday, June 3, 2019 6:06 PM
To: wix-users at lists.wixtoolset.org
Cc: Todd Thompson
Subject: Re: error code other than 1602 (1633 or other)



MSI doesn't support what you ask for. However, you could write a bootstrapper with a custom bootstrapper application and return whatever code you wanted.





________________________________

From: wix-users <wix-users-bounces at lists.wixtoolset.org> on behalf of Todd Thompson via wix-users <wix-users at lists.wixtoolset.org>
Sent: Monday, June 3, 2019 1:18 PM
To: wix-users at lists.wixtoolset.org
Cc: Todd Thompson
Subject: [wix-users] error code other than 1602 (1633 or other)



Hi All,

I was hoping to return a different error code if user is attempting to install on an unsupported OS.  Is this supported?

I added the following under product ID, but this results in a generic 1603 error return.  How can the WIX code influence the returned error code from msiexec?

Below are some code and run snippets.

Thanks for any and all help,
Todd

Code Snippet

    <Condition Message="Only supported on Windows Server 2008 or higher.">
      <![CDATA[(Installed  OR VersionNT >= 600)]]>
     </Condition>


Run Snippet:

c:\Users\admin\Desktop>start /wait msiexec.exe /i testMsi.msi
c:\Users\admin\Desktop>echo %errorlevel%
1603

msiexec

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list