IF with OR

Got a problem you cannot solve? Try here.
Post Reply
mikKummerfeld
Posts: 252
Joined: Sat Dec 03, 2011 3:07 am
Location: Konstanz, Germany
Contact:

IF with OR

Post 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
Kind regards

Heiko Kummerfeld
MIK GmbH

Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: IF with OR

Post by FrancescoT »

Dear Heiko,

You can only use nested IF for that.

Hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
mikKummerfeld
Posts: 252
Joined: Sat Dec 03, 2011 3:07 am
Location: Konstanz, Germany
Contact:

Re: IF with OR

Post by mikKummerfeld »

Nested is only AND ???
Kind regards

Heiko Kummerfeld
MIK GmbH

Setup developer for .NET BI Software (12 products)
Head of quality assurance
technical consultant
bokkie
Posts: 767
Joined: Sun Feb 08, 2009 6:30 am

Re: IF with OR

Post 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?
Peter. Smartly dressed, he still resembles an unmade bed.
InstallAware MVP
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: IF with OR

Post 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
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply