Scripting Question

MSI install Scripting fails. I think its something to do with the after installation batch file.

05/21/2015 2008 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

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ