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:
Dim doc As New XmlDocument() doc.Load(RSServer & RSUpdateFile) Dim child As XmlNodeList = doc.SelectNodes("/RSUpdate/File") If Not (child Is Nothing) Then For Each Item As XmlElement In child Dim fv As FileVersionInfo = FileVersionInfo.GetVersionInfo(Item.InnerText) If GetVersion(Item.GetAttribute("version")) > GetVersion(fv.FileMajorPart & "." & fv.FileMinorPart & "." & fv.FileBuildPart & "." & fv.FilePrivatePart) Then Dim FileList2 As ListViewItem = FileList.Items.Add(Item.InnerText) FileList2.SubItems.Add(Item.GetAttribute("version")) End If Next End If




Reply With Quote