EULAs are legally binding if you get appropriate agreement from your users.
The most common way to do this is to present your users with your EULA at installation or download, and ask them to agree to the terms within.
You can request agreement by having your users check a box or click a button that's clearly labeled to show that by doing either action, the user is agreeing to be bound by the EULA.
If you don't get clear consent, your EULA may not hold up in court since a formal contract may not be found to be formed.