Why wont my Java 8 update 40 install run? *.Bat file issue
I've followed to the "T" how to create the custom install for Java on various posts here on ITNinja. I know it works, because if I manually run the *.bat file on my test PC everything works perfectly, just when I call it in my zip that I uploaded to the MI nothing happens. Inside my zip is two files - "jre1.8.0_40.msi" and "install.bat". I have the distribution to configure manually with the command line being "install.zip" <--tried with and without quotes though I know you don't need them. The bat file looks like this:
taskkill /f /im java.exe
taskkill /f /im jusched.exe
taskkill /f /im jp2launcher.exe
START /WAIT /MIN WMIC product where "Name LIKE '%%J2SE Runtime%%'" call uninstall /nointeractive
START /WAIT /MIN WMIC product where "Name LIKE '%%Java%%'" call uninstall /nointeractive
msiexec /i "jre1.8.0_40.msi" /qn AUTOUPDATECHECK=0 IEXPLORER=1 JAVAUPDATE=0 JU=0 MOZILLA=1
It kills all java processes, then uninstalls any previous version, then installs the java 8 update 40. Like I said, just manually running the file works, but calling it in KACE does not. I also tried checking the box "don't prepend msiexec", and tried with it unchecked. What am I doing wrong? Why is nothing happening. I'm on 6.3 by the way. Thanks in advance.
Answers (5)
...and the next time I encounter a problem, I won't bother to find out why it occurred. I'll just create a long and convoluted way to work around it.
Comments:
-
thanks dad, lol. If you have nothing nice to say...leave. - mazostyle 9 years ago
In the resulting log, look for the text "return value 3". The half-dozen or so lines above that text will have the detail of what failed.
Comments:
-
what would be an example for the path_to_and_name_of_log_file.LOG - mazostyle 9 years ago
You will find most of the options here. - Itiwari 9 years ago