Changeset 42984 in vbox for trunk/src/VBox/Installer/darwin/VirtualBox_mpkg/distribution.dist
- Timestamp:
- Aug 24, 2012 10:09:32 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/darwin/VirtualBox_mpkg/distribution.dist
r42745 r42984 37 37 } 38 38 39 isLeopard = false; 39 40 try 40 41 { … … 42 43 system.log("OS version detected: " + test); 43 44 result = !(system.compareVersions(test, '10.5') >= 0); 45 if (system.compareVersions(test, '10.6') < 0) 46 { 47 isLeopard = true; 48 } 44 49 } catch (e) { system.log(e); } 45 50 … … 52 57 } 53 58 54 try59 if (!isLeopard) 55 60 { 56 result = system.run('checkforrunningvms') == '1'; 57 } catch (e) { system.log(e); } 61 try 62 { 63 result = system.run('checkforrunningvms') == '1'; 64 } catch (e) { system.log(e); } 58 65 59 if(result) 60 { 61 my.result.type = 'Fatal'; 62 my.result.title = system.localizedString('RUNNING_VMS_TLE'); 63 my.result.message = system.localizedString('RUNNING_VMS_MSG'); 66 if(result) 67 { 68 my.result.type = 'Fatal'; 69 my.result.title = system.localizedString('RUNNING_VMS_TLE'); 70 my.result.message = system.localizedString('RUNNING_VMS_MSG'); 71 } 64 72 } 65 73 return result;
Note:
See TracChangeset
for help on using the changeset viewer.