Page 1 of 1

IF with OR

Posted: Thu Nov 15, 2012 3:21 am
by mikKummerfeld
Hello Guys,

I want to check the target installation folder for windows illegal characters ?, :, *, etc

How can I check this with "OR"?

IF $TARGETDIR$ contains ? OR : OR *
messagebox "Not allowed..:"
goto label destination
END

I dont know how to do that

Thanks
Heiko

Re: IF with OR

Posted: Thu Nov 15, 2012 10:30 am
by FrancescoT
Dear Heiko,

You can only use nested IF for that.

Hope this helps you.

Regards

Re: IF with OR

Posted: Thu Nov 15, 2012 10:39 am
by mikKummerfeld
Nested is only AND ???

Re: IF with OR

Posted: Thu Nov 15, 2012 11:26 am
by bokkie
Heiko,

What about having a Dotnet exe (file bag) and passing in the string you want to validate? The exe could validate your string using a regex which is a standard namespace in Dotnet?

Re: IF with OR

Posted: Thu Nov 15, 2012 11:31 am
by FrancescoT
Dear Heiko,

via command script no other possibilities are available ... but the Bokkie's suggestion, can be of course another opputunity to validate a path via external code.

REgards