SCCM 2016- Deploy application over same version...

Caporegime
Joined
7 Nov 2004
Posts
30,197
Location
Buckinghamshire
Hi all

Using SCCM 2016 we deploy packages and applications for software

Currently I'm doing one for JAVA, the version in deploying is the same as what is installed on the PC, it just has an mst file apliedti it in the new version...

Sccm is having a fit because it's trying install the same version and it failing.

Is there a way to deploy and overwrite existing versions? It's deploying as an application, as it wasn't applying the mst file when it was a package. The one way I can make it work now is it I get the software removed prior.

Is there an easier way?
 
Java is the devil. We had no end of issues with it over the years. Configs, certificates, security settings, various version conflicts, browser problems.

In the end we used appv with connection groups. Now applications are set to use a specific versions of java which are completely sandboxed.

I shudder whenever I hear java mentioned.

To be honest, if you can find an alternative that would be best lol
 
Yeah,sadly I can't because of where I work, and it has to be an older version.

The application is fine and it works, just it can reinstall itself over sccm as it think the current version is installed already
 
Yeah,sadly I can't because of where I work, and it has to be an older version.

The application is fine and it works, just it can reinstall itself over sccm as it think the current version is installed already

I think you are going to have to uninstall and reinstall

Unless it's just some config you want to change? If so, can you not locate what extra files are needed and/or reg settings. Java has it's own command line tools so maybe you could do something with that.
 
I think you are going to have to uninstall and reinstall

Unless it's just some config you want to change? If so, can you not locate what extra files are needed and/or reg settings. Java has it's own command line tools so maybe you could do something with that.

Can't do reg changes without amassove hoo har either :D

Looks to be uninstall and reinstall. I can automate it somewhat, but would prefer if it could just force itself over it.

I was wondering whether you could use the dependcies option or something
 
Last edited:
I would probably package it up with a batch file and run that. Then in the batch file run the commands for a full uninstall, followed by your install routine

This is our install one

"%~dp0jre-8u161-windows-i586.exe" INSTALL_SILENT=1 AUTO_UPDATE=0 WEB_JAVA=1 WEB_JAVA_SECURITY_LEVEL=H WEB_ANALYTICS=0 EULA=0 REBOOT=0 NOSTARTMENU=1 SPONSORS=0
"%~dp0jre-8u161-windows-x64.exe" INSTALL_SILENT=1 AUTO_UPDATE=0 WEB_JAVA=1 WEB_JAVA_SECURITY_LEVEL=H WEB_ANALYTICS=0 EULA=0 REBOOT=0 NOSTARTMENU=1 SPONSORS=0
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run32 /V SunJavaUpdateSched /T REG_BINARY /D 03000000d49c12a64427ce01 /F
REG ADD HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run32 /V SunJavaUpdateSched /T REG_BINARY /D 03000000d49c12a64427ce01 /F
md C:\Windows\sun\java\deployment
copy /y "%~dp0deployment.*" C:\Windows\sun\java\deployment
setx deployment.expiration.check.enabled false /m
exit /B %EXIT_CODE%
 
Yeah that's the only other thing I've seen, run a batch to uninstall then install

Thank you for the above, I'll work something along this lines but our app preferences are controlled by MST file rather than switches :)
 
Not sure if this will help....

The contents of the following files,

deployment.config
---------------------

deployment.system.config=file\:C\:/Windows/Sun/Java/Deployment/deployment.properties
deployment.system.config.mandatory=false

deployment.properties
-------------------------

deployment.javaws.autodownload=never
deployment.javaws.autodownload.locked
deployment.expiration.check.enabled=false
deployment.expiration.check.enabled.locked
deployment.expiration.decision=never
deployment.expiration.decision.locked
deployment.expiration.decision.suppression=true
deployment.expiration.decision.suppression.locked
deployment.security.mixcode=HIDE_RUN
deployment.security.mixcode.locked
deployment.security.level=HIGH
deployment.security.level.locked
deployment.security.SSLv2Hello=true
deployment.insecure.jres=NEVER
deployment.insecure.jres.locked
deployment.webjava.enabled=true
deployment.webjava.enabled.locked
 
Back
Top Bottom