Skip to content

Instantly share code, notes, and snippets.

@tperfitt
Created February 3, 2019 22:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tperfitt/25b2c999fbae2cc0ee8380f130bf7bba to your computer and use it in GitHub Desktop.
Save tperfitt/25b2c999fbae2cc0ee8380f130bf7bba to your computer and use it in GitHub Desktop.
encoded
In postinstall:
echo "passed in variables:"
echo "0:$0 1:$1 2:$2 3:$3 4:$4 5:$5 6:$6 7:$7"
Output in /var/log/install.log after startosinstall runs:
0:/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/81112756-C982-46F8-A663-A67CB0546A6B.activeSandbox/Scripts/com.twocanoes.winclone_1548703538.7G2Wab/postinstall 1:/Library/Application Support/com.apple.installer/UnwrappedInstallers/40c094454d46bfd5d00fa1c13e38401aab6addfe/Windows%2010.pkg 2:/private/tmp 3:/ 4:/ 5: 6: 7:
Note that $1 ends with Windows%2010.pkg
The package name is Windows 10.pkg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment