If you want a fully silent install (noGUI), you can use this code: :CONFIGECHO ;!@Install@!UTF-8!> "%~dp032.cfg"ECHO SetEnvironment="swUninst_x64=HKLM\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall">> "%~dp032.cfg"ECHO SetEnvironment="swUninst_x86=HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall">> "%~dp032.cfg"ECHO SetEnvironment="DelOldVer=%%%%P:hidcon:cmd /c For /F \"tokens=2 delims={}\" %%a In ('Reg Query %%swUninst_%%%%P%% ^| FINDSTR \"{26A24AE4-039D-4CA4-87B4-2F[0-9A-F]*}\"') Do MsiExec /x{%%a}">> "%~dp032.cfg"ECHO GUIMode="2">> "%~dp032.cfg"ECHO MiscFlags="4">> "%~dp032.cfg"ECHO RunProgram="%%DelOldVer%% /qn">> "%~dp032.cfg"ECHO RunProgram="jre_inst.msi /qn WEB_JAVA=0">> "%~dp032.cfg"ECHO RunProgram="x86:hidcon:cmd /c \"%programfiles%\\Java\\jre%MAJ%\\bin\\jqs.exe\" -unregister">> "%~dp032.cfg"ECHO RunProgram="x64:hidcon:cmd /c \"%programfiles(x86)%\\Java\\jre%MAJ%\\bin\\jqs.exe\" -unregister">> "%~dp032.cfg"ECHO AutoInstall="%%DelOldVer%% /qn">> "%~dp032.cfg"ECHO AutoInstall="jre_inst.msi /qn WEB_JAVA=1">> "%~dp032.cfg"ECHO AutoInstall="x86:hidcon:cmd /c \"%programfiles%\\Java\\jre%MAJ%\\bin\\jqs.exe\" -unregister">> "%~dp032.cfg"ECHO AutoInstall="x64:hidcon:cmd /c \"%programfiles(x86)%\\Java\\jre%MAJ%\\bin\\jqs.exe\" -unregister">> "%~dp032.cfg"ECHO ;!@InstallEnd@!>> "%~dp032.cfg"ECHO. >> "%~dp032.cfg"GOTO :EOF:CONFIG_64ECHO ;!@Install@!UTF-8!> "%~dp064.cfg"ECHO SetEnvironment="swUninst=HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall">> "%~dp064.cfg"ECHO SetEnvironment="DelOldVer64=hidcon:cmd /c For /F \"tokens=2 delims={}\" %%a In ('Reg Query %%swUninst%% ^| FINDSTR \"{26A24AE4-039D-4CA4-87B4-2F[0-9A-F]*}\"') Do MsiExec /x{%%a}">> "%~dp064.cfg"ECHO GUIMode="2">> "%~dp064.cfg"ECHO MiscFlags="4">> "%~dp064.cfg"ECHO RunProgram="x64:%%DelOldVer64%% /qn">> "%~dp064.cfg"ECHO RunProgram="x64:jre64_inst.msi /qn WEB_JAVA=0">> "%~dp064.cfg"ECHO AutoInstall="x64:%%DelOldVer64%% /qn">> "%~dp064.cfg"ECHO AutoInstall="x64:jre64_inst.msi /qn WEB_JAVA=1">> "%~dp064.cfg"ECHO ;!@InstallEnd@!>> "%~dp064.cfg"ECHO. >> "%~dp064.cfg"GOTO :EOF:CONFIG_AIOECHO ;!@Install@!UTF-8!> "%~dp0AIO.cfg"ECHO SetEnvironment="swUninst_x64=HKLM\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall">> "%~dp0AIO.cfg"ECHO SetEnvironment="swUninst_x86=HKLM\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall">> "%~dp0AIO.cfg"ECHO SetEnvironment="DelOldVer=%%%%P:hidcon:cmd /c For /F \"tokens=2 delims={}\" %%a In ('Reg Query %%swUninst_%%%%P%% ^| FINDSTR \"{26A24AE4-039D-4CA4-87B4-2F[0-9A-F]*}\"') Do MsiExec /x{%%a}">> "%~dp0AIO.cfg"ECHO SetEnvironment="DelOldVer64=hidcon:cmd /c For /F \"tokens=2 delims={}\" %%a In ('Reg Query %%swUninst_x86%% ^| FINDSTR \"{26A24AE4-039D-4CA4-87B4-2F[0-9A-F]*}\"') Do MsiExec /x{%%a}">> "%~dp0AIO.cfg"ECHO GUIMode="2">> "%~dp0AIO.cfg"ECHO MiscFlags="4">> "%~dp0AIO.cfg"ECHO RunProgram="%%DelOldVer%% /qn">> "%~dp0AIO.cfg"ECHO RunProgram="x64:%%DelOldVer64%% /qn">> "%~dp0AIO.cfg"ECHO RunProgram="jre_inst.msi /qn WEB_JAVA=0">> "%~dp0AIO.cfg"ECHO RunProgram="x64:jre64_inst.msi /qn WEB_JAVA=0">> "%~dp0AIO.cfg"ECHO RunProgram="x86:hidcon:cmd /c \"%programfiles%\\Java\\jre%MAJ%\\bin\\jqs.exe\" -unregister">> "%~dp0AIO.cfg"ECHO RunProgram="x64:hidcon:cmd /c \"%ProgramFiles(x86)%\\Java\\jre%MAJ%\\bin\\jqs.exe\" -unregister">> "%~dp0AIO.cfg"ECHO AutoInstall="%%DelOldVer%% /qn">> "%~dp0AIO.cfg"ECHO AutoInstall="x64:%%DelOldVer64%% /qn">> "%~dp0AIO.cfg"ECHO AutoInstall="jre_inst.msi /qn WEB_JAVA=1">> "%~dp0AIO.cfg"ECHO AutoInstall="x64:jre64_inst.msi /qn WEB_JAVA=1">> "%~dp0AIO.cfg"ECHO AutoInstall="x86:hidcon:cmd /c \"%programfiles%\\Java\\jre%MAJ%\\bin\\jqs.exe\" -unregister">> "%~dp0AIO.cfg"ECHO AutoInstall="x64:hidcon:cmd /c \"%ProgramFiles(x86)%\\Java\\jre%MAJ%\\bin\\jqs.exe\" -unregister">> "%~dp0AIO.cfg"ECHO ;!@InstallEnd@!>> "%~dp0AIO.cfg"ECHO. >> "%~dp0AIO.cfg"GOTO :EOF Default install (no switch): no web plugins. -ai switch: web plugins.