Commit 4de8b993 authored by aker@wsusoffline's avatar aker@wsusoffline
Browse files

- Fix: DetermineSystemProperties.vbs might fail to return OS_VER_REVIS on some...

- Fix: DetermineSystemProperties.vbs might fail to return OS_VER_REVIS on some configurations (Thanks to rbronca)
parent fb8ad53d
......@@ -14,7 +14,7 @@
#pragma compile(ProductName, "WSUS Offline Update - Community Edition")
#pragma compile(ProductVersion, 12.3.0)
Dim Const $caption = "WSUS Offline Update - Community Edition - 12.3 (b6.1)"
Dim Const $caption = "WSUS Offline Update - Community Edition - 12.3 (b7)"
Dim Const $title = $caption & " - Generator"
Dim Const $downloadURL = "https://gitlab.com/wsusoffline/"
Dim Const $downloadLogFile = "download.log"
......
......@@ -15,7 +15,7 @@
#pragma compile(ProductName, "WSUS Offline Update - Community Edition")
#pragma compile(ProductVersion, 12.3.0)
Dim Const $caption = "WSUS Offline Update - Community Edition - 12.3 (b6.1) - Installer"
Dim Const $caption = "WSUS Offline Update - Community Edition - 12.3 (b7) - Installer"
; Registry constants
Dim Const $reg_key_wsh_hklm64 = "HKLM64\Software\Microsoft\Windows Script Host\Settings"
......
......@@ -400,7 +400,7 @@ Set objCmdFile = objFileSystem.CreateTextFile(strCmdFileName, True)
Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\.\root\cimv2")
' Documentation: http://msdn.microsoft.com/en-us/library/aa394239(VS.85).aspx
For Each objQueryItem in objWMIService.ExecQuery("Select * from Win32_OperatingSystem")
If RegExists(strRegKeyWindowsVersion, strRegValUBR) Then
If RegExists(wshShell, strRegKeyWindowsVersion & strRegValUBR) Then
strUBR = RegRead(wshShell, strRegKeyWindowsVersion & strRegValUBR)
WriteVersionToFile objCmdFile, "OS_VER", objQueryItem.Version & "." & strUBR
Else
......
......@@ -30,7 +30,7 @@ if "%DIRCMD%" NEQ "" set DIRCMD=
cd /D "%~dp0"
set WSUSOFFLINE_VERSION=12.3 (b6.1)
set WSUSOFFLINE_VERSION=12.3 (b7)
title %~n0 %*
echo Starting WSUS Offline Update - Community Edition - v. %WSUSOFFLINE_VERSION% at %TIME%...
set UPDATE_LOGFILE=%SystemRoot%\wsusofflineupdate.log
......
......@@ -34,7 +34,7 @@ if "%DIRCMD%" NEQ "" set DIRCMD=
cd /D "%~dp0"
set WSUSOFFLINE_VERSION=12.3 (b6.1)
set WSUSOFFLINE_VERSION=12.3 (b7)
title %~n0 %1 %2 %3 %4 %5 %6 %7 %8 %9
echo Starting WSUS Offline Update - Community Edition - download v. %WSUSOFFLINE_VERSION% for %1 %2...
set DOWNLOAD_LOGFILE=..\log\download.log
......
......@@ -1756,3 +1756,4 @@ Community Edition 12.3 -- ??.??.2020
- Fix: The root certificates are downloaded using https:// instead of http:// now (Thanks to "hbuhrmester")
- Fix: old files for w60/w61 were not cleaned up (Thanks to "hbuhrmester")
- [UNTESTED] Fix: The script files could fail to parse the command line parameters as the should (Thanks to "hbuhrmester" and "aker")
- Fix: DetermineSystemProperties.vbs might fail to return OS_VER_REVIS on some configurations (Thanks to "rbronca")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment