Java 8 U191 and 192 for mac exit codes 1

We are seeing issues (Exit code 1) with either a pending restart or fail after a restart with the Mac Java update fixlet to 191 or 192

Manually running the dmg on a mac works but there is an additional warning windows opens up about pending changes to Java for corporate users as early as January.

Its Actually Failing according to the logs at line
Command Succeeded (Exit Code 1) wait installer -pkg “/private/tmp/Java 8 update 192.pkg” -target /

Found it…

Currently this line is wrong
wait cp -r “/Volumes/jre-8u192-macosx-x64/JDK 8 Update 192.pkg” “/private/tmp/Java 8 update 192.pkg”

It should be
wait cp -r “/Volumes/jre-8u192-macosx-x64/Java 8 Update 192.app” “/private/tmp/Java 8 update 192.pkg”

Also it has
wait installer -pkg “/private/tmp/Java 8 update 192.pkg” -target /

Instead of
wait installer -pkg “/private/tmp/Java 8 update 192.pkg/Contents/Resources/JavaAppletPlugin.pkg” -target /