/build/static/layout/Breadcrumb_cap_w.png

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

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
  • Why are you doing this in a batch file?
    Why not just use the builtin scripting tasks to do this? - htomlinson 8 years ago

Answers (2)

Posted by: Badger 8 years ago
Red Belt
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.

 

Posted by: anonymous_9363 8 years ago
Red Belt
-1
https://technet.microsoft.com/en-us/library/cc742145.aspx

This search malarky's going to catch on, I reckon.
 
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