Hi.

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

Comments

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

Answers

0

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

Please log in to comment
-1
https://technet.microsoft.com/en-us/library/cc742145.aspx

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

Please log in to comment
Answer this question or Comment on this question for clarity
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja

Share