I just tried the following from a Command Prompt window:
set JAVA_HOME="C:\Program Files\Java\jdk1.6.0_25"
glassfish-3.1-web-windows.exe
When the installer tries to create the domain, it gets the
IllegalArgumentException, just like when running asadmin create-domain
from the command prompt. This is unrelated to the asenv.bat file.