05/21/2015 1846 views


We have a java update msi script here which seems to run and the product installs ok.

Except the run now status shows failing.

here is the log

Creating process returned non-zero: C:\ProgramData\Dell\KACE\kbots_cache\packages\kbots\157\kace3203.bat : (0) The operation completed successfully.
Error Code: 0
Status Code: 1

Im sure its something to do with this status code of 1. although it says it completed ok.

Here isĀ  what the batch file does.

%SystemRoot%\System32\taskkill.exe /f /im jusched.exe
%SystemRoot%\System32\Reg.exe DELETE HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v SunJavaUpdateSched /f
%SystemRoot%\System32\Reg.exe DELETE HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Run /v SunJavaUpdateSched /f
%SystemRoot%\System32\Reg.exe DELETE "HKLM\SOFTWARE\JavaSoft\Java Update" /f
%SystemRoot%\System32\Reg.exe DELETE "HKLM\SOFTWARE\Wow6432Node\JavaSoft\Java Update" /f

anyone any ideas

1 Comment   [ + ] Show comment


  • Why are you doing this in a batch file?
    Why not just use the builtin scripting tasks to do this?

All Answers


Why do people make java installs so complicated???

Run the setup.exe on a machine.
Get the extracted MSI and deploy that. if you only deploy the Java MSI and not the update MSI you don't get all those pesky updates things that you need to remove.


Answered 05/25/2015 by: Badger
Red Belt


This search malarky's going to catch on, I reckon.
Answered 05/21/2015 by: VBScab
Red Belt