I want to create a batch file for installing two software jdk and mysql. I run batch file it install jdk and mysql server automatically.
Both JDK and MySQL server have an option for a silent installation, where you can specify the options without using the graphical installer.
jdk.exe /s ADDLOCAL="ToolsFeature,SourceFeature,PublicjreFeature"
msiexec /i mysql-5.1.73.msi /quiet
So, the installation shouldn't be a problem, as long as you already have the installation files.