Return code with custom action - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Ulli
Posts: 17
Joined: Tue Dec 30, 2008 12:44 pm

Return code with custom action

Hi Cosmin,
Synchronous execution, check return code - the main thread of the installation waits for the custom action thread to complete. Then, the return code of the thread is checked. If it is not zero, the execution of the custom action is considered failed and the installation is canceled. Otherwise, the installation continues.
I have chosen the quoted option. But nevertheless the installation is not cancelled if the return code is 1 for example.
What could be the reason?
I already have checked the return code of my EXE.

Regards
Ulli
Last edited by Ulli on Wed Dec 31, 2008 3:36 pm, edited 1 time in total.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Return code with custom action

Hi Ulli,

I'm not sure why you are encountering this behavior. Can you please send us the AIP with the problem to support at advancedinstaller dot com so we can investigate it? Also, please attach a verbose log of the install process.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Ulli
Posts: 17
Joined: Tue Dec 30, 2008 12:44 pm

Re: Return code with custom action

Hi Cosmin,

I sent you the AIP and the log-file.

Ulli
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Re: Return code with custom action

Hi Ulli,

We cannot reproduce the problem you are encountering on our XP test computers. So please try to reproduce this behavior on other machine. Let us know if the problem persist.

From the log file you have sent us I see that you run the package on an XP machine. Note that the way you configure the temporary files will not work on Vista. This is due to the fact that the temporary files can not be extracted in the folder you specified (you don't have privileges on UI execution to extract file on all users desktop). So in order to solve this problem on Vista you need to move those temporary files to a folder where you have write privileges (for example: "Windows Volume->Temporary" or "Application Data" folder).

Also I can see that you have the custom action shared between both UI and Execute sequences. In this case make sure you have the same condition for both custom actions.

Kind Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/
Ulli
Posts: 17
Joined: Tue Dec 30, 2008 12:44 pm

Re: Return code with custom action

Hi,
sorry for answering so late. But...

In the meantime I have found out that my EXE did not give back the desired return code.
After fixing this problem in my EXE everything is working fine now.

Thank you very much for your excellent support!

Kind regards
Ulli

Return to “Common Problems”