Link to home
Start Free TrialLog in
Avatar of LSCarter
LSCarter

asked on

SCCM package downloads to ccm cache but will not execute MSI installation

Hello,

I am trying to send a package that contains the MSI for java and a batch file that runs to uninstall any old version of java and then execute the new java.

The problem is that when sending the package everything will go well until the part of installing the new Java.

The package is sent, the contents are downloaded to the CCMCache, the batch runs and uninstalls the old version of java, then it stalls for an hour or so and fails.

batch file is as follows:

@ECHO OFF
REM uninstall all the older Java Installs
wmic product where "name like 'Java%%'" call uninstall /nointeractive
goto NEXT
:NEXT
REM install the newest version of Java
msiexec /i "\\trc-sccm01\d$\Java 8.0.45\jre1.8.0_45.msi" /Qb JU=0 JAVAUPDATE=0 AUTOUPDATECHECK=0 RebootYesNo=No WEB_JAVA=1 WEB_JAVA_SECURITY_LEVEL=H
REM delete the autoupdater
If exist "C:\Program Files (x86)\Common Files\Java" del /S /F /Q "C:\Program Files (x86)\Common Files\Java"
If exist "C:\Program Files\Common Files\Java" del /S /F /Q "C:\Program Files\Common Files\Java"

The computer has access to the server and if ran by double clicking it from the file share OR locally from CCMCache it installs without a problem in less than two minutes.

I have exhausted google on this problem and advice would be greatly appreciated.
Avatar of NinjaStyle82
NinjaStyle82
Flag of United States of America image

It could have something to do with a prompt appearing, but user interaction being turned off for the package? Anything telling in the  execmgr.log file?
Avatar of LSCarter
LSCarter

ASKER

Would that still be the case if it runs without any interaction from being double clicked locally? Also, there is nothing that stands out in the execmgr.log file seems to go through everything executes the scrips and then exits with error code 1619.
Well, if you are running on a different computer and something in your script is throwing an error, or a continue button or something that isn't happening on the test computer. You have it running as admin and everything correct?

Maybe there is also a problem with a program running from the directory you are deleting that is causing error?

If that directory is where autoupdater lives, and it is running when the script executes that might be where it's giving the error...
ASKER CERTIFIED SOLUTION
Avatar of LSCarter
LSCarter

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Was that the ticket?
Yep that was it. Thank you for being so quick to respond!
Avatar of Vadim Rapp
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.