home *** CD-ROM | disk | FTP | other *** search
/ cs.rhul.ac.uk / www.cs.rhul.ac.uk.zip / www.cs.rhul.ac.uk / pub / NX / nomachine-mac-osx.dmg / NoMachine.pkg / Distribution
Extensible Markup Language  |  2014-01-31  |  3KB  |  57 lines

  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <installer-script minSpecVersion="1.000000" authoringTool="com.apple.PackageMaker" authoringToolVersion="3.0.6" authoringToolBuild="201">
  3.     <title>NoMachine</title>
  4.     <options customize="never" allow-external-scripts="no" rootVolumeOnly="true"/>
  5.     <installation-check script="pm_install_check();"/>
  6.     <script>
  7. function check_nx_install() {
  8.   if(!(system.files.fileExistsAtPath('/Applications/NoMachine.app/Contents/Info.plist') == true)) {
  9.     return true;
  10.   }
  11.  
  12.   if(system.files.plistAtPath('/Applications/NoMachine.app/Contents/Info.plist').CFBundleVersion == '4.0.370') {
  13.     return true;
  14.   }
  15.  
  16. /* Uncomment it to disable update */
  17. /*  return false; */
  18.   return true; 
  19. }
  20.  
  21.  
  22. function pm_install_check() {
  23.   if(!(check_nx_install() == true)) {
  24.     my.result.title = 'Warning';
  25.     my.result.message = 'Upgrading from previous versions is not supported by this beta. Please be sure that you uninstall any previous version, remove the installation directory and proceed with a fresh install.';
  26.     my.result.type = 'Fatal';
  27.     return false;
  28.   }
  29.   return true;
  30. }
  31. </script>
  32.     <background file="background" alignment="center" scaling="tofit"/>
  33.     <welcome file="Welcome.rtfd"/>
  34.     <license file="License"/>
  35.     <choices-outline>
  36.         <line choice="choice40"/>
  37.         <line choice="choice41"/>
  38.         <line choice="choice42"/>
  39.         <line choice="choice43"/>
  40.     </choices-outline>
  41.     <choice id="choice40" title="NoMachine" start_enabled="false" start_visible="false">
  42.         <pkg-ref id="com.nomachine.nomachine.NoMachine-3.pkg"/>
  43.     </choice>
  44.     <choice id="choice41" title="NoMachine" start_enabled="false" start_visible="false">
  45.         <pkg-ref id="com.nomachine.nomachine.NoMachine-2.pkg"/>
  46.     </choice>
  47.     <choice id="choice42" title="NoMachine" start_enabled="false" start_visible="false">
  48.         <pkg-ref id="com.nomachine.nomachine.NoMachine-1.pkg"/>
  49.     </choice>
  50.     <choice id="choice43" title="NoMachine" start_enabled="false" start_visible="false">
  51.         <pkg-ref id="com.nomachine.nomachine.NoMachine.pkg"/>
  52.     </choice>
  53.     <pkg-ref id="com.nomachine.nomachine.NoMachine-3.pkg" installKBytes="48880" version="4.0.370" auth="Root">#nxclient.pkg</pkg-ref>
  54.     <pkg-ref id="com.nomachine.nomachine.NoMachine-2.pkg" installKBytes="6628" version="4.0.370" auth="Root">#nxplayer.pkg</pkg-ref>
  55.     <pkg-ref id="com.nomachine.nomachine.NoMachine-1.pkg" installKBytes="11368" version="4.0.370" auth="Root">#nxnode.pkg</pkg-ref>
  56.     <pkg-ref id="com.nomachine.nomachine.NoMachine.pkg" installKBytes="9012" version="4.0.370" auth="Root">#nxserver.pkg</pkg-ref>
  57. </installer-script>