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.
LSCarterAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

NinjaStyle82Systems AdministratorCommented:
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?
LSCarterAuthor Commented:
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.
NinjaStyle82Systems AdministratorCommented:
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...
IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

LSCarterAuthor Commented:
I believe I may have found my problem. When running it with psexec it would fail out due to the UNC path that I had in the batch file ( put there before I realized that it downloaded locally to the ccmcache directory. I am pushing it now to see the new result.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
NinjaStyle82Systems AdministratorCommented:
Was that the ticket?
LSCarterAuthor Commented:
Yep that was it. Thank you for being so quick to respond!
Vadim RappCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Software

From novice to tech pro — start learning today.