Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Checking return codes

1 view
Skip to first unread message

Justin

unread,
Mar 9, 2004, 1:00:01 PM3/9/04
to
I am trying to install a Microsoft update package along with my regular
InstallShield installer. I use a custom action that launches the executable
and wait for it to return before continuing. The update executable can
return non-zero success codes to the installer (ie. reboot needed). The
problem is that if any non-zero code is returned from the custom action,
InstallShield throws up an error to the user and the installation fails. Is
there a way that I can get the installer to accept certain non-zero return
codes?


Carolyn Napier [MSFT]

unread,
Mar 11, 2004, 3:50:09 PM3/11/04
to
A custom action marked as msidbCustomActionTypeContinue will ignore all return
codes. Outside of that, only ERROR_SUCCESS is treated by Windows Installer as a
successful return code. For more information consult the Windows Installer MSDN
help topic "Custom Action Return Values".

Note that you could also use a DLL custom action that invokes the executable and
then depending upon the success or failure returns an appropriate error code. It
could also schedule a reboot if necessary.

Hope this helps,
- Carolyn Napier
Microsoft Windows Installer Team

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.

MSI FAQ:
<http://www.microsoft.com/windows2000/community/centers/management/msi_faq.mspx>


"Justin" <jhac...@autoprof.com> wrote in message
news:OW30pAg...@TK2MSFTNGP12.phx.gbl...

0 new messages