Script to install macOS High Sierra DP-5 (17A330h)

I wrote a new handy script (install_1013_DP5_17A330h.sh) to install macOS High Sierra Beta DP-5.

The installer.pkg created by the script will simulate the App Store download and installation method, and all you have to do is:

1.) Run install_1013_DP5_17A330h.sh
2.) Run /Applications/Install macOS High Sierra Beta.app
3.) Reboot

Notes: I have yet to try this script myself – I cannot download the files right now (we’re still at sea). Also. You may want to run checkAPFSSettings.sh in single-user mode.

Edit: First confirmation per e-mail. Script is working!

Please note that the App Store.app downloads files to: /Library/Updates but the script uses: /tmp/091-26416 and all the downloaded files will be gone after a reboot and thus you may want to make a backup of the files!

Thanks!

Advertisements

4 thoughts on “Script to install macOS High Sierra DP-5 (17A330h)

  1. Hi there, it’s me again!

    Saw that you had released an updated version of the script for DP5, so we gave it a shot, as well.

    We’re seeing a different problem than the DP4 script. On a machine running 10.12.6, we kick off the script and it gets through the downloading of all the components, but when it tries to run the installer, it fails with the following error(s):

    Creating installer.pkg …
    productbuild: Wrote product to installer.pkg
    Running installer …
    Password:
    installer: Cannot install on volume / because it is disabled.
    installer: ERROR_004301F002

    I can’t find any reference to this error anywhere. The “Cannot install on volume /” error is a fairly common error I’ve seen before, but it’s also fairly generic in that it simply means the volume doesn’t meet the requirements of the installer.

    Any thoughts?

    • That error may be about /System/Library/CoreServices/SystemVersion.plist Try something like this:

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
      <plist version="1.0">
      <dict>
      	<key>ProductBuildVersion</key>
      	<string>17A315i</string>
      	<key>ProductCopyright</key>
      	<string>1983-2017 Apple Inc.</string>
      	<key>ProductName</key>
      	<string>Mac OS X</string>
      	<key>ProductUserVisibleVersion</key>
      	<string>10.13</string>
      	<key>ProductVersion</key>
      	<string>10.13</string>
      </dict>
      </plist>
      

      Edit: But with anything above 10.8 that should not be a problem. I also cannot find the error in: OSInstall.mpkg Might be something in OSInstaller and companions.

      Did you check /var/log/install.log?

      Edit-2: Got it.

      function VolumeCheck(prefix) {
      	if (system.env.OS_INSTALL == 1) return true;
      	var myTargetSystemVersion = (my.target.systemVersion || system.files.plistAtPath(my.target.mountpoint + "/System/Library/CoreServices/SystemVersion.plist"));
      	my.result.message = system.localizedString('ERROR_ABA5BBB51F');
      	if (!ManagedPolicyCheck0(my.target.mountpoint) || !LogicalOr1(my.target.mountpoint)) {
      		my.result.type = 'Fatal';
      		return false;
      	}
      	return true;
      }
      
      function ManagedPolicyCheck0(prefix) {
      	if (typeof(my.result) != 'undefined') my.result.message = system.localizedString('ERROR_004301F002');
      	var managedPolicyPlistPath = '/Library/Managed Preferences/com.apple.SoftwareUpdate.plist';
      	var managedPolicyPlistKey = 'AllowPreReleaseInstallation';
      	try {
      		if ((system.files.plistAtPath(managedPolicyPlistPath)[managedPolicyPlistKey] == false) || (system.files.plistAtPath(my.target.mountpoint + managedPolicyPlistPath)[managedPolicyPlistKey] == false)) {
      			return false;
      		} else {
      			return true;
      		}
      	} catch(e) {}
      	return true;
      }
      

      You should never get there. Not with my scripts because it sets: export __OS_INSTALL=1

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s