Changeset 56936 in vbox for trunk/src/VBox/Installer/darwin
- Timestamp:
- Jul 14, 2015 10:23:22 PM (9 years ago)
- Location:
- trunk/src/VBox/Installer/darwin/VirtualBox_mpkg
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/darwin/VirtualBox_mpkg/Localizable.strings
r50588 r56936 14 14 15 15 'UNSUPPORTED_HW_MACHINE_TLE' = "Unsupported hardware architecture detected!"; 16 'UNSUPPORTED_HW_MACHINE_MSG' = "The installer has detected an unsupported architecture. VirtualBox only runs on the x86 and amd64 architectures.";16 'UNSUPPORTED_HW_MACHINE_MSG' = "The installer has detected an unsupported architecture. VirtualBox only runs on the amd64 architecture."; 17 17 18 18 'UNSUPPORTED_OS_TLE' = "Unsupported OS version detected!"; 19 'UNSUPPORTED_OS_MSG' = "The installer has detected an unsupported operation system. VirtualBox requires Mac OS X 10. 6or later.";19 'UNSUPPORTED_OS_MSG' = "The installer has detected an unsupported operation system. VirtualBox requires Mac OS X 10.8 or later."; 20 20 -
trunk/src/VBox/Installer/darwin/VirtualBox_mpkg/distribution.dist
r56299 r56936 25 25 try 26 26 { 27 test = system.version['ProductVersion']; 28 system.log("OS version detected: " + test); 29 result = (system.compareVersions(test, '10.8') >= 0); 30 } catch (e) { system.log(e); result = false; } 31 32 if (!result) 33 { 34 my.result.type = 'Fatal'; 35 my.result.title = system.localizedString('UNSUPPORTED_OS_TLE'); 36 my.result.message = system.localizedString('UNSUPPORTED_OS_MSG'); 37 return result; 38 } 39 40 try 41 { 27 42 test = system.sysctl('hw.machine'); 28 43 system.log("Hardware architecture detected: " + test); 29 result = (test == ' i386' || test == 'x86_64');44 result = (test == 'x86_64'); 30 45 } catch (e) { system.log(e); result = false; } 31 46 … … 35 50 my.result.title = system.localizedString('UNSUPPORTED_HW_MACHINE_TLE'); 36 51 my.result.message = system.localizedString('UNSUPPORTED_HW_MACHINE_MSG'); 37 return result;38 }39 40 try41 {42 test = system.version['ProductVersion'];43 system.log("OS version detected: " + test);44 result = (system.compareVersions(test, '10.6') >= 0);45 } catch (e) { system.log(e); result = false; }46 47 if (!result)48 {49 my.result.type = 'Fatal';50 my.result.title = system.localizedString('UNSUPPORTED_OS_TLE');51 my.result.message = system.localizedString('UNSUPPORTED_OS_MSG');52 52 return result; 53 53 }
Note:
See TracChangeset
for help on using the changeset viewer.