vijay
Posts: 26
Joined: Wed Feb 22, 2017 1:28 pm

Installer Return Codes

Hi all,
I have created a package for network adapter,and its working fine.And we are using some tools for verification.Using that we can install the driver ie., simply have to run our package from that tool.So installation got success.But If I cancel the installation its returning error code '-1'. I'm thinking that its related to installer only.Can you please tell me how to disable the return codes throw by installer?.Is there any option to disable the return codes in advanced installer?.

I have attached the picture of that error code.Please look into this.


Thanks,
Vijay
Attachments
return_codes.PNG
return_codes.PNG (41.82 KiB) Viewed 6211 times
vijay
Posts: 26
Joined: Wed Feb 22, 2017 1:28 pm

Re: Installer Return Codes

Hi all,

How to map these error codes with xml file.I cant able to change the names below,if I try to change anything here that tool throwing an error. This is my xml file:

<returncodes>
<returncodemapping name="REBOOTING_SYSTEM">
<vendorreturncode>1641</vendorreturncode>
</returncodemapping>
<returncodemapping name="PASSWORD_REQUIRED">
<!-- Not valid -->
<vendorreturncode>2</vendorreturncode>
</returncodemapping>
<returncodemapping name="NO_DOWNGRADE">
<!--Always able to DownGrade, Installer Doesn't need to support-->
<vendorreturncode>9999</vendorreturncode>
</returncodemapping>
<returncodemapping name="REBOOT_UPDATE_PENDING">
<!--Installer only Reboots Once, Installer Doesn't need to support-->
<vendorreturncode>9999</vendorreturncode>
</returncodemapping>
<returncodemapping name="DEP_SOFT_ERROR">
<!-- 1603=Standard Win32 fatal error code -->
<vendorreturncode>1603</vendorreturncode>
</returncodemapping>
<returncodemapping name="DEP_HARD_ERROR">
<vendorreturncode>1603</vendorreturncode>
</returncodemapping>
<returncodemapping name="SUCCESS">
<vendorreturncode>0</vendorreturncode>
</returncodemapping>
<returncodemapping name="ERROR">
<vendorreturncode>1602</vendorreturncode>
</returncodemapping>
<returncodemapping name="REBOOT_REQUIRED">
<vendorreturncode>3010</vendorreturncode>
</returncodemapping>
<returncodemapping name="ERROR_INSTALL_PLATFORM_UNSUPPORTED">
<vendorreturncode>1603</vendorreturncode>
</returncodemapping>
<returncodemapping name="UNKNOWN_OPTION">
<vendorreturncode>1603</vendorreturncode>
</returncodemapping>
</returncodes>





Thanks,
Vijay.
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installer Return Codes

Hello Vijay,

The '-1" exit code is returned only by our EXE package type if the user cancel the installation during installing the prerequisites. To avoid this behavior you can build your setup package as an MSI, thus the exit code will a proprietary one of the msiexec.exe process. However, please note that only the feature-based and post-install prerequisities can be handled by an MSI setup package.

In what regards mapping a return code for the related tool you are using, I'm afraid you should contact their support team for more references. We are not aware how this can be done. Thank you for your understanding.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
arunraj.n
Posts: 13
Joined: Wed Nov 09, 2016 7:41 am

Re: Installer Return Codes

Hi Daniel,

As per our expectation we choose .exe only not msi. So we have only choice is .exe.
In installshield also doesn't returns the negative number.
Is there any possibilities to avoid "-1" return codes in exe or Any other way is there to solve this one?

BR,
Arun
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Installer Return Codes

Hello Arun,

I'm very sorry for this inconvenience but there is no way to change the exit code of our EXE bootstrapper.

Thank you for your understanding.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”