guidogast
Posts: 51
Joined: Thu Sep 05, 2013 10:12 am

check (and add) last character in property

Hello,

Our installer has some screens where information can be filled in via editboxes. Some of those editboxes contain a path to a specific folder. We noticed that the fields containing those paths need to end with a backslash for our application to work correctly. A solution would be to add a button with a browse capability, but we simply have no more room on the screen, so that's no option.

Is there a way to access the properties or editboxes, check the last character and if they don't end with a "\" add that character to the editbox / property?

Thanks in advance!

Sincerely,
Guido
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: check (and add) last character in property

Hi Guido,

If the properties that you want to edit are related to some directory available in your project (i.e. property-based folders), then you can go in the Dialogs page, select the [Next] button of the dialog that contains your edit boxes and add a Verify and set the selected folder path - SetTargetPath published event for each property that contains a path.

If your properties are not related to any folder of your project, then you can create your own custom action that verifies those properties and add the "\" character if it does not exist at the end of the path.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
guidogast
Posts: 51
Joined: Thu Sep 05, 2013 10:12 am

Re: check (and add) last character in property

We'll test that out! Thanks!

Sincerely,
Guido
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: check (and add) last character in property

You're welcome. Just let us know if you need any help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”