If you are running the second instance for publishing, you do not need to run complete JEE installer. The publish instance can be a standalone AEM OSGi running in publish mode. See, Configure the Publish instance section in the Post Deployment chapter of the following document:
If you are running multiple AEM Forms on JEE instances on a same machine, before you run the second install on a different location on the same machine, pass the following startup argument. It will bump the port number by the count of 110.
You can use any value in place of 110. Ensure that the value used for publish and author instances is different. Here is the procedure to setup the apps server profile and argument:
Copy [AEM Forms on JEE download]\third_party\jboss.zip to a new location on your machine
Create a folder named JBossPublish and unzip the contents of jboss.zip to it.
Open the /JBossPublish/JBoss/bin/standalone.conf.bat file in an editor.
Add the following argument to the standalone.conf.bat file of application server. Set JAVA_OPTS=%JAVA_OPTS% -Djboss.socket.binding.port-offset=110
Save and close the standalone.conf.bat file.
Open the command prompt and navigate to the \JBossPublish\JBoss\bin folder.
Run the following command to start the JBoss application server for publish. standalone.bat -b 0.0.0.0 -c standalone.xml If the above IP does not work, replace it with the IP of your machine