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!

channappa
Posts: 1
Joined: Thu Feb 06, 2020 9:35 am

custom action and propert update releated.

Hi,
I have been using Advanced Installer for some time now, but couldn't catch up with this requirement, please help.

I have 3 edit boxes in FolderDlg for user inputs, the edit box values will be used by my (.exe) which runs in custom action without sequence on Next button of Folder dialog.
Based on my own logic ill decide weather the values passed in edit boxes are correct or not and will return 0 for success and 1 for failure.
I have unchecked "Fail installation if custom action returns error" option.

My requirement is, if my custom action returns 0 then only i want to go to verify ready dialog, else i want to be in Folder dialog only till user provides correct values and and click Next.

(Or, Do i have any other options to achieve my requirement)
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: custom action and propert update releated.

Hello and welcome to Advanced Installer forums,

This can be achieved in the following way:

- in your own .EXE, set a property based on the return codes. For instance, when your custom action returns 0, set a property as it follows:

PROCEED_PROPERTY = "true"

and when your custom action returns 1, set a property as it follows:

PROCEED_PROPERTY = "false"

The above should be done from your .EXE itself (in its code). In order to set an installer property, please have a look on the following article:

How to set an installer property using custom actions

- after doing so, please go back to your dialog and select the "Next" button. Double click the "Display a specific dialog" event and add your property as a condition there:

PROCEED_PROPERTY = "true"

This way, the installer will proceed to the next dialog only when your property has the "true" value.

Hope this helps.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”