Page 1 of 1

Detect Silverlight version

PostPosted: 24.04.2014, 09:20
by rbr555
Hello,

Windows 7 64bit Silverlight could be 32bit or 64bit.

in DetermineSystemProperties.vbs it should be

Code: Select all
Private Const strRegKeyMSSL               = "HKLM\Software\Microsoft\Silverlight\"

replaced by

Code: Select all
Private Const strRegKeyMSSL_x86               = "HKLM\Software\Microsoft\Silverlight\"
Private Const strRegKeyMSSL_x64               = "HKLM\Software\Wow6432Node\Microsoft\Silverlight\"

and

Code: Select all
' Determine Microsoft Silverlight version
WriteVersionToFile objCmdFile, "MSSL_VER", RegRead(wshShell, strRegKeyMSSL & strRegValVersion)

replaced by

Code: Select all
' Determine Microsoft Silverlight version
If RegExists(wshShell, strRegKeyMSSL_x64) Then
  WriteVersionToFile objCmdFile, "MSSL_VER", Replace(RegRead(wshShell, strRegKeyMSSL_x64 & strRegValVersion), ",", ".")
Else
  WriteVersionToFile objCmdFile, "MSSL_VER", Replace(RegRead(wshShell, strRegKeyMSSL_x86 & strRegValVersion), ",", ".")
End If

Kind regards
Ronald

Re: Detect Silverlight version

PostPosted: 05.05.2014, 07:21
by WSUSUpdateAdmin
Hello Ronald,

thanks for your suggestion! :)
Your modifications will be in the next release.

Kind regards,
T. Wittrock