hhale21
Posts: 26
Joined: Thu Apr 01, 2010 10:21 pm

Synchronous execution, check return code

I have 'Synchronous execution, check return code' checked for a custom action that is in InitallFinalize.
If the return code is -1 the install stops with the message:

"There is a problem with this Windows Installer package...."

If I run the installer again I get the Modify/Repair/Remove options.

From http://www.advancedinstaller.com/user-g ... rties.html

" If it is not zero, the execution of the custom action is considered failed and the installation is canceled. Otherwise, the installation continues."
"Custom actions that are executable files must return a value of 0 for success. The installer interprets any other return value as failure"

By 'cancelled' I was expecting the install to do rollback and removed everything. Can you clarify this please. Thanks
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Synchronous execution, check return code

Hello,

Your custom action is placed after InstallExecute standard action. No rollback is done beyond that point and the product is considered installed.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”