I almost finished my software updater and I ran into a problem.

My main application, which is a seperate executable, isn't returning a file version. It's returning 0.0.0.0.

Anyway around it?

VB Code:
  1. Dim doc As New XmlDocument()
  2.         doc.Load(RSServer & RSUpdateFile)
  3.         Dim child As XmlNodeList = doc.SelectNodes("/RSUpdate/File")
  4.         If Not (child Is Nothing) Then
  5.             For Each Item As XmlElement In child
  6.                 Dim fv As FileVersionInfo = FileVersionInfo.GetVersionInfo(Item.InnerText)
  7.                 If GetVersion(Item.GetAttribute("version")) > GetVersion(fv.FileMajorPart & "." & fv.FileMinorPart & "." & fv.FileBuildPart & "." & fv.FilePrivatePart) Then
  8.                     Dim FileList2 As ListViewItem = FileList.Items.Add(Item.InnerText)
  9.                     FileList2.SubItems.Add(Item.GetAttribute("version"))
  10.                 End If
  11.             Next
  12.         End If