Page 1 of 1

String function - Finding righter-most character

Posted: Sun Apr 19, 2015 6:04 pm
by AdrianGray
I need to determine if the last character of a sting variable is a back-slash. The logic I am looking to implement is...

If Right($TARGETDIR$,1) is not equal to "\" then Set Variable $TAGETDIR$ to $TARGETDIR$ + "\"
The "Extract Path" is no good as the path could be in a UNC format so it replaces the initial \\ with a single
Look forward to your reply, Adrian

Re: String function - Finding righter-most character

Posted: Mon Apr 20, 2015 12:04 pm
by FrancescoT
Dear Adrian,

please have a look at the following discussion.
http://www.installaware.com/forum/viewtopic.php?f=2&t=10154&start=0

Regards