[wix-users] error code other than 1602 (1633 or other)
Christopher Painter
chrpai at iswix.com
Mon Jun 3 15:06:08 PDT 2019
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