osInfo() service pack version (windows)

This commit is contained in:
Sebastian Hildebrandt
2019-05-09 10:11:35 +02:00
parent 9af4e5271c
commit b8c61596ab
6 changed files with 21 additions and 2 deletions
+3 -1
View File
@@ -175,7 +175,8 @@ function osInfo(callback) {
codepage: '',
logofile: '',
serial: '',
build: ''
build: '',
servicepack: ''
};
if (_linux) {
@@ -286,6 +287,7 @@ function osInfo(callback) {
result.distro = util.getValue(lines, 'Caption', '=').trim();
result.serial = util.getValue(lines, 'SerialNumber', '=').trim();
result.build = util.getValue(lines, 'BuildNumber', '=').trim();
result.servicepack = util.getValue(lines, 'ServicePackMajorVersion', '=').trim() + '.' + util.getValue(lines, 'ServicePackMinorVersion', '=').trim();
result.codepage = util.getCodepage();
if (callback) {
callback(result);