I am trying to identify what creates the XML file?
Looking at the definition, the script appears to combine the name of the file just fine (see output above), but then it doesn't exist.
What mechanism is even creating the XML file there to begin with? We get the output that the file doesn't exist, so now trying to understand why and what creates it.
Here is the script from the driver definition.
Dim xmlFile
Dim sPath
xmlFile = "k2vdo61us14_2_.xml"
'sPath = ReadRegValue("HKLM\SOFTWARE\Intel\LANDesk\LDWM\Distribution\Multicast\Cache Directory")
sPath = ReadRegValue("HKLM\Software\LANDesk\ManagementSuite\WinClient\Path")
xmlFile = sPath & "\" & "LenovoData" & "\M900\" & xmlFile
log "xmlFile: " & xmlFile
main()
Sub main
On Error Resume Next
SET objFSO = CREATEOBJECT("Scripting.FileSystemObject")
IF Not objFSO.FileExists(xmlFile) THEN
Log "The file " & xmlFile & " doesn't exist"
exit sub
End If
Log "CreateObject..."
Dim hlpr
set hlpr = CreateObject("LenovoPackage.LenovoLogic")
If IsNull(hlpr) Then
Log "CreateObject Failed. - Null"
exit sub
End If
If IsEmpty(hlpr) Then
Log "CreateObject Failed. - Empty"
exit sub
End If
result = 9 '9 means nothing
result = hlpr.Check(xmlFile)
log "result = " & result
If result = -1 Then
Report False, "", "Lenovo Scanning Failed during the check if installed!", ""
Exit Sub
End If
If result = 0 Then
Report True, "", "Lenovo patch detected.", ""
End If
If result = 1 Then
Report False, "", "This patch Installed.", ""
End IF
If result = 2 Then
Report False, "", "This patch is not suitable.", ""
End IF
End Sub