I have just experienced the same issue as Messia when installing Jave to my brand-new MacBook Pro, and have only found this discussion in regards to the problem. This occurs for both the JRE and the JDK install. Was there ever a solution to fix this issue? See and extract of my log below. Any help would be greatly appreciated!
Jul 18 18:42:25 Andys-MacBook-Pro.local installd[298]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “Java 7 Update 25.pkg”." UserInfo=0x7fbe70e29100 {NSFilePath=./postinstall, NSURL=file://localhost/Volumes/Java%207%20Update%2025/Java%207%20Update%2025.pk g#javaappletplugin.pkg, PKInstallPackageIdentifier=com.oracle.jre, NSLocalizedDescription=An error occurred while running scripts from the package “Java 7 Update 25.pkg”.} {
NSFilePath = "./postinstall";
NSLocalizedDescription = "An error occurred while running scripts from the package \U201cJava 7 Update 25.pkg\U201d.";
NSURL = "file://localhost/Volumes/Java%207%20Update%2025/Java%207%20Update%2025.pkg#jav aappletplugin.pkg";
PKInstallPackageIdentifier = "com.oracle.jre";
}
Jul 18 18:42:25 Andys-MacBook-Pro.local Installer[1101]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “Java 7 Update 25.pkg”." UserInfo=0x7ff594ac4dc0 {NSFilePath=./postinstall, NSURL=file://localhost/Volumes/Java%207%20Update%2025/Java%207%20Update%2025.pk g#javaappletplugin.pkg, PKInstallPackageIdentifier=com.oracle.jre, NSLocalizedDescription=An error occurred while running scripts from the package “Java 7 Update 25.pkg”.}
Jul 18 18:42:26 Andys-MacBook-Pro.local Installer[1101]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
Jul 18 18:42:26 Andys-MacBook-Pro.local Installer[1101]: IFDInstallController 94C6E6F0 state = 7
Jul 18 18:42:26 Andys-MacBook-Pro.local Installer[1101]: Displaying 'Install Failed' UI.
Jul 18 18:42:26 Andys-MacBook-Pro.local Installer[1101]: 'Install Failed' UI displayed message:'The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.'.