Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

sscaptive

macrumors newbie
Original poster
Oct 18, 2019
1
1
as the 32 bit applications are not supported and the codes to be run in apple script

wonderfully working with this below code..

this code is shared in forum

set theDMG to choose file with prompt "Please select javaforosx.dmg:" of type {"dmg"}
do shell script "hdiutil mount " & quoted form of POSIX path of theDMG
do shell script "pkgutil --expand /Volumes/Java\\ for\\ macOS\\ 2017-001/JavaForOSX.pkg ~/tmp"
do shell script "hdiutil unmount /Volumes/Java\\ for\\ macOS\\ 2017-001/"
do shell script "sed -i '' 's/return false/return true/g' ~/tmp/Distribution"
do shell script "pkgutil --flatten ~/tmp ~/Desktop/Java.pkg"
do shell script "rm -rf ~/tmp"
display dialog "Modified Java.pkg saved on desktop" buttons {"Ok"}
 
  • Like
Reactions: bernuli
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.