Issue:
I am getting the Maven error \"The JAVA_HOME environment variable is not defined correctly\" when I run through Inno setup batch execution. Howe
Following steps solved the issue for me..
Copied the zip file into the Program Files folder and extracted to "apache-maven-3.6.3-bin".
Then copied the path, C:\Program Files\apache-maven-3.6.3-bin\apache-maven-3.6.3
Then created the new MAVEN_HOME variable within environmental variables with the above path.
Also added,
C:\Program Files\apache-maven-3.6.3-bin\apache-maven-3.6.3\bin
address to the "PATH" variable