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

Blair Murri osito at live.com
Mon Jun 3 16:21:33 PDT 2019

MSI will return only a handful of return codes (user cancelled, reboot initiated, reboot required/pending, succeeded w/o reboot, and general installer error). Which one of those five do you wish msiexec to return?

Get Outlook for Android<https://aka.ms/ghei36>

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 11:18:29 AM
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,

Code Snippet

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

Run Snippet:

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


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

More information about the wix-users mailing list