Advertisement
Guest User

iPhoto 9.4.3 Distribution file

a guest
May 24th, 2014
659
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.82 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8" standalone="no"?>
  2. <installer-gui-script minSpecVersion="1">
  3. <options customize="never" hostArchitectures="ppc,i386" rootVolumeOnly="true"/>
  4. <title>SU_TITLE</title>
  5. <script>
  6. </script>
  7. <installation-check script="InstallationCheck()"/>
  8. <script>
  9. function InstallationCheck(prefix) {
  10. my.result.message = system.localizedString('ERROR_0');
  11. if (!PlistCheck0("/") || !Not1("/") || !LogicalAnd3("/") || !FileCheck6("/")) {
  12. my.result.type = 'Fatal';
  13. return false;
  14. }
  15. return true;
  16. }
  17. function PlistCheck0(prefix) {
  18. if (typeof(my.result) != 'undefined') my.result.message = system.localizedString('ERROR_1');
  19. var plist = system.files.plistAtPath(prefix + '/System/Library/CoreServices/SystemVersion.plist');
  20. if (!plist) {
  21. return false;
  22. }
  23. var plistKeyValue = plist['ProductVersion'];
  24. if (!plistKeyValue) {
  25. return false;
  26. }
  27. if (system.compareVersions(plistKeyValue, '10.7.5') &lt; 0) {
  28. return false;
  29. }
  30. return true;
  31. }
  32. function Not1(prefix) {
  33. if (!(PlistCheck2(prefix))) {
  34. return true;
  35. }
  36. return false;
  37. }
  38. function PlistCheck2(prefix) {
  39. if (typeof(my.result) != 'undefined') my.result.message = system.localizedString('ERROR_2');
  40. var plist = system.files.plistAtPath(prefix + '/System/Library/CoreServices/SystemVersion.plist');
  41. if (!plist) {
  42. return false;
  43. }
  44. var plistKeyValue = plist['ProductVersion'];
  45. if (!plistKeyValue) {
  46. return false;
  47. }
  48. if (system.compareVersions(plistKeyValue, '10.8') &lt; 0) {
  49. return false;
  50. }
  51. if (system.compareVersions(plistKeyValue, '10.8.3') >= 0) {
  52. return false;
  53. }
  54. return true;
  55. }
  56. function LogicalAnd3(prefix) {
  57. if (BundleCheck4(prefix) &amp;&amp; BundleCheck5(prefix)) {
  58. return true;
  59. }
  60. return false;
  61. }
  62. function BundleCheck4(prefix) {
  63. if (typeof(my.result) != 'undefined') my.result.message = system.localizedString('ERROR_3');
  64. var bundle = system.files.bundleAtPath(prefix + '/Applications/iPhoto.app');
  65. if (!bundle) {
  66. return false;
  67. }
  68. var bundleKeyValue = bundle['CFBundleShortVersionString'];
  69. if (!bundleKeyValue) {
  70. return false;
  71. }
  72. if (system.compareVersions(bundleKeyValue, '9.1.0') &lt; 0) {
  73. return false;
  74. }
  75. return true;
  76. }
  77. function BundleCheck5(prefix) {
  78. if (typeof(my.result) != 'undefined') my.result.message = system.localizedString('ERROR_4');
  79. var bundle = system.files.bundleAtPath(prefix + '/Applications/iPhoto.app');
  80. if (!bundle) {
  81. return false;
  82. }
  83. var bundleKeyValue = bundle['CFBundleShortVersionString'];
  84. if (!bundleKeyValue) {
  85. return false;
  86. }
  87. if (system.compareVersions(bundleKeyValue, '9.4.3.0') > 0) {
  88. return false;
  89. }
  90. return true;
  91. }
  92. function FileCheck6(prefix) {
  93. if (typeof(my.result) != 'undefined') my.result.message = system.localizedString('ERROR_5');
  94. if (system.files.fileExistsAtPath(prefix + '/Applications/iPhoto.app/Contents/_MASReceipt/receipt') == 0) {
  95. return true;
  96. }
  97. return false;
  98. }
  99. </script>
  100. <license file="License.rtf"/>
  101. <welcome file="SUDescription.html"/>
  102. <background file="background.tiff" alignment="bottomleft" scaling="none"/>
  103. <choices-outline>
  104. <line choice="manual"/>
  105. </choices-outline>
  106. <choice id="manual" title="SU_TITLE">
  107. <pkg-ref id="iPhotoUpdate" auth="Root" active="LogicalAnd3(my.target.mountpoint)">#iPhoto9.4.3Update.pkg</pkg-ref>
  108. <pkg-ref id="iPhotoContentUpdate" auth="Root" active="LogicalAnd3(my.target.mountpoint)">#iPhoto9.4.3ContentUpdate.pkg</pkg-ref>
  109. </choice>
  110.  
  111. <pkg-ref id='iPhotoContentUpdate' installKBytes='180046' version='9.4.3.0.1.1263389684'/>
  112. <pkg-ref id='iPhotoUpdate' installKBytes='595086' version='9.4.3.0.1.1263389684'/>
  113.  
  114. <pkg-ref id='iPhotoContentUpdate' installKBytes='180046' version='9.4.3.0.1.1263389684'/>
  115. <pkg-ref id='iPhotoUpdate' installKBytes='595086' version='9.4.3.0.1.1263389684'/>
  116. </installer-gui-script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement