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!

litu
Posts: 71
Joined: Fri Mar 22, 2013 2:57 pm

Split strings

Hi,

I've made an installer with an XML search that retrieves an URL. What I need to know is if the URL is "http" or "https", in order to change another XML file.

How can I do that?

Thanks in advance.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Split strings

Hi,

In order to achieve this you can use a condition like in the example below:
  • URL >< "https"
The condition will be true only if the [URL] property will contain the "https" string, otherwise it will be false.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
litu
Posts: 71
Joined: Fri Mar 22, 2013 2:57 pm

Re: Split strings

That's the perfect solution!

Thanks a lot.

PS: my english is poor, i don't know any other ways to thank you for your quick answers than "thank you", so thank you!
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Split strings

You're welcome. I'm glad to help you.

Just let us know anytime you need help.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
litu
Posts: 71
Joined: Fri Mar 22, 2013 2:57 pm

Re: Split strings

Sorry, but I can't make that work.

I've tried the >< operator, the ~><, and <<, and ~<< and it never finds anything. Is there something else I must do?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Split strings

Hello,

Can you please send us the .AIP (project file) to support at advancedinstaller dot com so we can investigate it? Also, it would be useful if you give us a detailed step by step test case of what you are trying to achieve.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
litu
Posts: 71
Joined: Fri Mar 22, 2013 2:57 pm

Re: Split strings

Thanks for your answer (by email).

I'll post the sollution to my problem, if this can help anyone with the same problem.

That was my fault: I was comparing the string in the "init events" section of the dialog. It must be placed on the "published events" of the "next" button.

Thanks again.
Arnau.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Split strings

You're welcome Arnau. I'm glad you got this working.

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

Return to “Building Installers”