validations on controls dialog - 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!

sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

validations on controls dialog

Hi,

I am creating a custom dialog on using Advanced Installer. I have simple edit controls in the dialog. I want to perform some validations on the control i/e I want to allow the user to enter his name without having spaces/blanks within it. How can I achieve it. Is it possible to do the email id validation from advanced installer.'

Please help :(

Regards
Sony
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: validations on controls dialog

Hi Sony,

You can try creating a custom action that executes on the push of the "Next" button, reads the contents of the property assigned to the edit and validates it.

I hope this helps.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: validations on controls dialog

Hi,

Could you please provide the steps to do it?

Regards
Sony
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: validations on controls dialog

Hi Sony,

The guide on how do i set the text of an Edit control is similar to what you are trying to achieve. The only difference is that instead of setting the text, you are trying to read it. You can do the validation from inside your custom action which you will write in the programming language of your choice.

Add your custom action to the UI Custom Actions sequence on the Custom Actions page, and launch it with a DoAction control event. Condition the NewDialog control event using a property you set from your custom action, so that when pressing the Next button, the installer won't go to the next page if the text is not valid.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: validations on controls dialog

Hi Gabriel,

Thank you for the information.

I have another question related to advanced installer. I am trying to install a .bat file and want to update the bat file with an IP address after the installation. I have gone through the forum, But I havent found any appropriate information. Could you please tell me how can I do this?

Regards
Sony
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: validations on controls dialog

Hi Sony,

I am afraid Windows Installer does not support editing .bat files. You will have to code your own custom action to do this.
Or perhaps a better version of the .bat file would be one which took the IP address as a parameter? Not sure though as I do not know what the .bat is used for.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: validations on controls dialog

Hi Gabriel,

Thank you for the information.

I have a question regarding the prerequisites.I am trying to add Oracle10g Client as a prerequisite. To run the setup, I need to add entire Oracle 10g folder under the prerequisite which I am unable to do it. Could you please tell me how to add the entire Oracle10g Client folder as a prerequisite.

Regards
Sony
sony
Posts: 134
Joined: Wed Apr 07, 2010 9:55 am

Re: validations on controls dialog

Hi,

Waiting for Updates?

Regards
Sony
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: validations on controls dialog

Hi Sony,

You can add additional files and folders in the Files tab of the "Edit Prerequisite" dialog.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”