What it does is, Downloads the "file.jar" and saves it to TempDir under java.jar name. Then it looks under Windows/System32 dir for java.exe file. If that file is not there it will download the java installer, save it to TempDir then run a CMD line to Run the installer. It waits untill the installer finishes then runs another CMD line that runs the .jar file.
I`m really noob when it comes to C++ so i would really appreciate any help.
Thanks allot for reading this.