Brak opisu
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

OW-UPDATE.vb 38KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  1. Imports System.IO
  2. Imports System.Net
  3. Imports System.Text
  4. Imports System.Net.NetworkInformation
  5. Public Class OW_UPDATE
  6. ReadOnly ds2 As New DataSet
  7. ReadOnly computerProperties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties()
  8. ReadOnly IPEndPoint() As EndPoint = computerProperties.GetActiveTcpListeners()
  9. Dim myIPEndPoint As IPEndPoint
  10. Dim 內網線路, 開發線路, 刪除完成, OK1, OK2, OK3, OK4, OK5, OK6, OK7, OK8, OK9, OK10 As Boolean
  11. Dim Str As String = Application.StartupPath
  12. Dim TF As String
  13. Private Sub OW_UPDATE_Load(sender As Object, e As EventArgs) Handles MyBase.Load
  14. Dim strDirName As String : Dim Strs As String = Application.StartupPath
  15. If File.Exists(Strs & "\OPUPDATE.txt") Then
  16. File.Delete(Strs & "\OPUPDATE.txt") : End If
  17. strDirName = Strs & "\OPUPDATE.txt"
  18. Try
  19. Using fs As IO.FileStream = New IO.FileStream(strDirName, FileMode.Append)
  20. Using sw As StreamWriter = New StreamWriter(fs, Encoding.Default)
  21. Dim str1 As String = "..."
  22. sw.WriteLine(str1) '插入一整行
  23. sw.Flush()
  24. End Using
  25. End Using
  26. Catch ex As Exception
  27. End Try
  28. '----------判斷是否有更新指定檔案-------------------------------------------------------------------------------------
  29. If File.Exists(Strs & "\OWUPDATE.txt") Then : Else
  30. strDirName = Strs & "\OWUPDATE.txt"
  31. Try
  32. Using fs As IO.FileStream = New IO.FileStream(strDirName, FileMode.Append)
  33. Using sw As StreamWriter = New StreamWriter(fs, Encoding.Default)
  34. Dim strk As String = "1"
  35. sw.WriteLine(strk) '插入一整行
  36. sw.Flush()
  37. End Using
  38. End Using
  39. Catch ex As Exception
  40. End Try
  41. End If
  42. Target = "https://gcm-smart.com/ERP/OW-ERP/"
  43. Me.Text = "UPDATE " & TF
  44. '----------讀取更新指定檔案-------------------------------------------------------------------------------------
  45. Dim Str As String = Application.StartupPath
  46. If File.Exists(Str + "\OWUPDATE.txt") Then
  47. Dim filereader = My.Computer.FileSystem.OpenTextFileReader(Str + "\OWUPDATE.txt", System.Text.Encoding.Default)
  48. Dim Text As String = "" : Dim line As String = filereader.ReadLine()
  49. While Not (line Is Nothing) : Text = Text & line & vbCrLf : line = filereader.ReadLine() : End While : filereader.Close()
  50. If Strings.Left(Text, 1) = "1" Then
  51. 小更新_ch.Checked = True : 中更新_ch.Checked = False : 大更新_ch.Checked = False : 資料數 = 4
  52. ElseIf Strings.Left(Text, 1) = "2" Then
  53. 小更新_ch.Checked = False : 中更新_ch.Checked = True : 大更新_ch.Checked = False : 資料數 = 70
  54. ElseIf Strings.Left(Text, 1) = "3" Then
  55. 小更新_ch.Checked = False : 中更新_ch.Checked = False : 大更新_ch.Checked = True : 資料數 = 226
  56. End If
  57. End If
  58. End Sub
  59. Private Sub OW_UPDATE_Shown(sender As Object, e As EventArgs) Handles MyBase.Shown
  60. If 小更新_ch.Checked = True Then
  61. 刪除完成 = True : 小更新.Enabled = True
  62. ElseIf 中更新_ch.Checked = True Then
  63. 刪除完成 = True : 中更新.Enabled = True
  64. ElseIf 大更新_ch.Checked = True Then
  65. 刪除所有檔案.Enabled = True : 大更新.Enabled = True
  66. End If
  67. '--- 開啟專案---------------------------------------------------------------------------------------------------------------------------
  68. OK.Enabled = True
  69. End Sub
  70. Private Sub 小更新_Tick(sender As Object, e As EventArgs) Handles 小更新.Tick
  71. If 刪除完成 = True Then
  72. 小更新.Enabled = False
  73. 主程式更新.Enabled = True : OK2 = True : OK3 = True : OK4 = True : OK5 = True : OK6 = True : OK7 = True : OK8 = True : OK9 = True : OK10 = True
  74. End If
  75. End Sub
  76. Private Sub 中更新_Tick(sender As Object, e As EventArgs) Handles 中更新.Tick
  77. If 刪除完成 = True Then
  78. 中更新.Enabled = False
  79. '--- 刪除在下載---------------------------------------------------------------------------------------------------------------------------
  80. 主程式更新.Enabled = True : 刪除在下載.Enabled = True
  81. '--- 比對下載---------------------------------------------------------------------------------------------------------------------------
  82. 驗證存在1.Enabled = True : 驗證存在2.Enabled = True : 驗證存在3.Enabled = True : 驗證存在4.Enabled = True : 驗證存在5.Enabled = True
  83. 驗證存在6.Enabled = True : 驗證存在7.Enabled = True : OK10 = True
  84. End If
  85. End Sub
  86. Private Sub 大更新_Tick(sender As Object, e As EventArgs) Handles 大更新.Tick
  87. If 刪除完成 = True Then
  88. 大更新.Enabled = False
  89. '--- 刪除在下載---------------------------------------------------------------------------------------------------------------------------
  90. 主程式更新.Enabled = True : 刪除在下載.Enabled = True
  91. '--- 比對下載---------------------------------------------------------------------------------------------------------------------------
  92. 驗證存在1.Enabled = True : 驗證存在2.Enabled = True : 驗證存在3.Enabled = True : 驗證存在4.Enabled = True : 驗證存在5.Enabled = True
  93. 驗證存在6.Enabled = True : 驗證存在7.Enabled = True
  94. End If
  95. End Sub
  96. Private Sub HX_CL_Tick(sender As Object, e As EventArgs) Handles HX_CL.Tick
  97. End Sub
  98. Public Sub Delay(ByRef Interval As Double) 'Interval单位为毫秒
  99. Dim time As DateTime = DateTime.Now
  100. Dim Span As Double = Interval * 1234
  101. While ((DateTime.Now.Ticks - time.Ticks) < Span)
  102. Application.DoEvents()
  103. End While
  104. End Sub
  105. Private Sub OK_Tick(sender As Object, e As EventArgs) Handles OK.Tick
  106. If OK1 = True And OK2 = True And OK3 = True And OK4 = True And OK5 = True And OK6 = True And OK7 = True And OK8 = True And OK9 = True And OK10 = True Then
  107. OK.Enabled = False : CheckBox11.Checked = True : Dim FS1 As String
  108. FS1 = "OWUPDATE.txt" : If File.Exists(Str & "\" & FS1) Then : File.Delete(Str & "\" & FS1) : End If
  109. Shell(Str + "\OW-ERP-SYS.exe", vbNormalFocus) : Me.Close()
  110. End If
  111. End Sub
  112. Private Sub 主程式更新_Tick(sender As Object, e As EventArgs) Handles 主程式更新.Tick
  113. Dim 已開啟 As Boolean = False : Dim FS1 As String
  114. Dim Strs As String = Application.StartupPath
  115. MyModule1.進度條()
  116. FS1 = "LANGUAGE_FILE.csv"
  117. If File.Exists(Str & "\" & FS1) Then
  118. File.Delete(Str & "\" & FS1)
  119. End If
  120. My.Computer.Network.DownloadFile(Target & FS1, Str & "\" & FS1)
  121. Me.Text = "UPDATE " & TF & FS1
  122. FS1 = "OW-ERP-SYS.exe"
  123. If File.Exists(My.Computer.FileSystem.SpecialDirectories.Desktop & "\" & FS1) Then
  124. Dim pro() As Process = System.Diagnostics.Process.GetProcesses()
  125. ' 判斷是否有符合的Process
  126. For Each process As Process In pro
  127. If ("OW-ERP-SYS").Equals(process.ProcessName) Then
  128. 已開啟 = True
  129. End If
  130. Next
  131. If 已開啟 = False Then
  132. 主程式更新.Enabled = False
  133. MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : File.Delete(Str & "\" & FS1) : End If
  134. My.Computer.Network.DownloadFile(Target & FS1, Str & "\" & FS1)
  135. OK1 = True : CheckBox1.Checked = True
  136. End If
  137. ElseIf File.Exists(Strs & "\" & FS1) Then
  138. Dim pro() As Process = System.Diagnostics.Process.GetProcesses()
  139. ' 判斷是否有符合的Process
  140. For Each process As Process In pro
  141. If ("OW-ERP-SYS").Equals(process.ProcessName) Then
  142. 已開啟 = True
  143. End If
  144. Next
  145. If 已開啟 = False Then
  146. 主程式更新.Enabled = False
  147. MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : File.Delete(Str & "\" & FS1) : End If
  148. My.Computer.Network.DownloadFile(Target & FS1, Str & "\" & FS1)
  149. OK1 = True : CheckBox1.Checked = True
  150. End If
  151. End If
  152. End Sub
  153. Private Sub 刪除在下載_Tick(sender As Object, e As EventArgs) Handles 刪除在下載.Tick
  154. 刪除在下載.Enabled = False : Dim FS2 As String
  155. OK2 = True : CheckBox2.Checked = True
  156. End Sub
  157. Private Sub Timer3_Tick(sender As Object, e As EventArgs) Handles 驗證存在1.Tick '10
  158. 驗證存在1.Enabled = False
  159. Dim FS3 As String
  160. MyModule1.進度條() : If Dir(Str + "\Theme", vbDirectory) <> "" Then : Else : MkDir(Str + "\Theme") : End If
  161. OK3 = True : CheckBox3.Checked = True
  162. End Sub
  163. Private Sub Timer4_Tick(sender As Object, e As EventArgs) Handles 驗證存在2.Tick '10
  164. 驗證存在2.Enabled = False
  165. Dim FS4 As String
  166. FS4 = "OW-ERP-SYS.pdb" : MyModule1.進度條() : If File.Exists(Str & "\" & FS4) Then : Else
  167. Me.Text = "UPDATE " & TF & FS4 : My.Computer.Network.DownloadFile(Target & FS4, Str & "\" & FS4) : End If
  168. FS4 = "OW-ERP-SYS.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS4) Then : Else
  169. Me.Text = "UPDATE " & TF & FS4 : My.Computer.Network.DownloadFile(Target & FS4, Str & "\" & FS4) : End If
  170. FS4 = "OW-ERP-SYS.exe.config" : MyModule1.進度條() : If File.Exists(Str & "\" & FS4) Then : Else
  171. Me.Text = "UPDATE " & TF & FS4 : My.Computer.Network.DownloadFile(Target & FS4, Str & "\" & FS4) : End If
  172. OK4 = True : CheckBox4.Checked = True
  173. End Sub
  174. Private Sub Timer5_Tick(sender As Object, e As EventArgs) Handles 驗證存在3.Tick '10
  175. 驗證存在3.Enabled = False
  176. Dim FS5 As String
  177. FS5 = "DotNetBarcode.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS5) Then : Else
  178. Me.Text = "UPDATE " & TF & FS5 : My.Computer.Network.DownloadFile(Target & FS5, Str & "\" & FS5) : End If
  179. OK5 = True : CheckBox5.Checked = True
  180. End Sub
  181. Private Sub Timer6_Tick(sender As Object, e As EventArgs) Handles 驗證存在4.Tick '10
  182. 驗證存在4.Enabled = False
  183. OK6 = True : CheckBox6.Checked = True
  184. End Sub
  185. Private Sub Timer7_Tick(sender As Object, e As EventArgs) Handles 驗證存在5.Tick '10
  186. 驗證存在5.Enabled = False
  187. OK7 = True : CheckBox7.Checked = True
  188. End Sub
  189. Private Sub Timer8_Tick(sender As Object, e As EventArgs) Handles 驗證存在6.Tick '10
  190. 驗證存在6.Enabled = False
  191. OK8 = True : CheckBox8.Checked = True
  192. End Sub
  193. Private Sub Timer9_Tick(sender As Object, e As EventArgs) Handles 驗證存在7.Tick '3
  194. 驗證存在7.Enabled = False
  195. OK9 = True : CheckBox9.Checked = True
  196. End Sub
  197. Private Sub 刪除所有檔案_Tick(sender As Object, e As EventArgs) Handles 刪除所有檔案.Tick
  198. 刪除所有檔案.Enabled = False : Dim FS10 As String
  199. FS10 = "excel_chinese.xml" : MyModule1.進度條() : If File.Exists(Str & "\Theme\" & FS10) Then : File.Delete(Str & "\Theme\" & FS10) : End If
  200. FS10 = "excel_english.xml" : MyModule1.進度條() : If File.Exists(Str & "\Theme\" & FS10) Then : File.Delete(Str & "\Theme\" & FS10) : End If
  201. FS10 = "word_chinese.xml" : MyModule1.進度條() : If File.Exists(Str & "\Theme\" & FS10) Then : File.Delete(Str & "\Theme\" & FS10) : End If
  202. FS10 = "word_english.xml" : MyModule1.進度條() : If File.Exists(Str & "\Theme\" & FS10) Then : File.Delete(Str & "\Theme\" & FS10) : End If
  203. FS10 = "OW-ERP-SYS.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  204. FS10 = "OW-ERP-SYS.exe.config" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  205. FS10 = "OW-ERP-SYS.pdb" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  206. FS10 = "Telerik.Documents.SpreadsheetStreaming.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  207. FS10 = "Telerik.Documents.SpreadsheetStreaming.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  208. FS10 = "Telerik.WinControls.RadSpreadsheet.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  209. FS10 = "Telerik.WinControls.RadSpreadsheet.dll.config" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  210. FS10 = "Telerik.WinControls.RadSpreadsheet.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  211. FS10 = "Telerik.WinControls.RadDiagram.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  212. FS10 = "Telerik.WinControls.RadDiagram.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  213. FS10 = "Telerik.WinControls.RadDock.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  214. FS10 = "Telerik.WinControls.RadDock.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  215. FS10 = "Telerik.WinControls.RadMarkupEditor.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  216. FS10 = "Telerik.WinControls.RadMarkupEditor.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  217. FS10 = "Telerik.WinControls.SyntaxEditor.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  218. FS10 = "Telerik.WinControls.SyntaxEditor.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  219. FS10 = "Telerik.WinControls.UI.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  220. FS10 = "Telerik.WinControls.UI.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  221. FS10 = "Telerik.WinControls.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  222. FS10 = "Telerik.WinControls.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  223. FS10 = "Telerik.WinControls.PdfViewer.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  224. FS10 = "Telerik.WinControls.PdfViewer.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  225. FS10 = "Telerik.WinControls.RichTextEditor.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  226. FS10 = "Telerik.WinControls.RichTextEditor.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  227. FS10 = "Telerik.WinControls.ChartView.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  228. FS10 = "Telerik.WinControls.ChartView.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  229. FS10 = "Telerik.WinControls.GridView.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  230. FS10 = "Telerik.WinControls.GridView.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  231. FS10 = "Telerik.WinControls.RadMap.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  232. FS10 = "Telerik.WinControls.RadMap.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  233. FS10 = "Telerik.WinControls.RadToastNotification.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  234. FS10 = "Telerik.WinControls.RadToastNotification.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  235. FS10 = "Telerik.WinControls.RadWebCam.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  236. FS10 = "Telerik.WinControls.RadWebCam.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  237. FS10 = "Telerik.Windows.Documents.Core.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  238. FS10 = "Telerik.Windows.Documents.Core.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  239. FS10 = "Telerik.Windows.Documents.Fixed.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  240. FS10 = "Telerik.Windows.Documents.Fixed.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  241. FS10 = "Telerik.Windows.Documents.Spreadsheet.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  242. FS10 = "Telerik.Windows.Documents.Spreadsheet.FormatProviders.OpenXml.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  243. FS10 = "Telerik.Windows.Documents.Spreadsheet.FormatProviders.OpenXml.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  244. FS10 = "Telerik.Windows.Documents.Spreadsheet.FormatProviders.Pdf.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  245. FS10 = "Telerik.Windows.Documents.Spreadsheet.FormatProviders.Pdf.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  246. FS10 = "Telerik.Windows.Documents.Spreadsheet.FormatProviders.Xls.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  247. FS10 = "Telerik.Windows.Documents.Spreadsheet.FormatProviders.Xls.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  248. FS10 = "Telerik.Windows.Documents.Spreadsheet.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  249. FS10 = "Telerik.Windows.MediaFoundation.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  250. FS10 = "Telerik.Windows.Zip.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  251. FS10 = "Telerik.Windows.Zip.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  252. FS10 = "TelerikCommon.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  253. FS10 = "TelerikData.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  254. FS10 = "TelerikData.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  255. FS10 = "TelerikExport.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  256. FS10 = "TelerikExport.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  257. FS10 = "TelerikMetro_Chinese.tssp" : MyModule1.進度條() : If File.Exists(Str & "\Theme\" & FS10) Then : File.Delete(Str & "\Theme\" & FS10) : End If
  258. FS10 = "DotNetBarcode.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  259. FS10 = "IdentityModel.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  260. FS10 = "IdentityModel.pdb" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  261. FS10 = "IdentityModel.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  262. FS10 = "MediaFoundation.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  263. FS10 = "Microsoft.Toolkit.Uwp.Notifications.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  264. FS10 = "Newtonsoft.Json.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  265. FS10 = "Newtonsoft.Json.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  266. FS10 = "PInvoke.Windows.Core.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  267. FS10 = "PInvoke.Windows.Core.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  268. FS10 = "SuperDataGrid.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  269. FS10 = "System.Buffers.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  270. FS10 = "System.Buffers.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  271. FS10 = "System.Memory.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  272. FS10 = "System.Memory.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  273. FS10 = "System.Numerics.Vectors.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  274. FS10 = "System.Numerics.Vectors.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  275. FS10 = "System.Runtime.CompilerServices.Unsafe.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  276. FS10 = "System.Runtime.CompilerServices.Unsafe.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  277. FS10 = "System.Text.Encodings.Web.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  278. FS10 = "System.Text.Encodings.Web.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  279. FS10 = "System.Linq.Queryable.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  280. FS10 = "System.Linq.Parallel.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  281. FS10 = "System.Linq.Expressions.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  282. FS10 = "System.Linq.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  283. FS10 = "System.IO.UnmanagedMemoryStream.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  284. FS10 = "System.IO.Pipes.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  285. FS10 = "System.IO.MemoryMappedFiles.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  286. FS10 = "System.IO.IsolatedStorage.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  287. FS10 = "System.IO.FileSystem.Watcher.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  288. FS10 = "System.IO.FileSystem.Primitives.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  289. FS10 = "System.IO.FileSystem.DriveInfo.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  290. FS10 = "System.IO.FileSystem.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  291. FS10 = "System.IO.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  292. FS10 = "System.IO.Compression.ZipFile.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  293. FS10 = "System.IO.Compression.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  294. FS10 = "System.Globalization.Extensions.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  295. FS10 = "System.Globalization.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  296. FS10 = "System.Globalization.Calendars.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  297. FS10 = "System.Dynamic.Runtime.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  298. FS10 = "System.Drawing.Primitives.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  299. FS10 = "System.Diagnostics.Tracing.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  300. FS10 = "System.Diagnostics.TraceSource.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  301. FS10 = "System.Diagnostics.Tools.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  302. FS10 = "System.Diagnostics.TextWriterTraceListener.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  303. FS10 = "Microsoft.Win32.Primitives.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  304. FS10 = "netstandard.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  305. FS10 = "System.AppContext.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  306. FS10 = "System.Collections.Concurrent.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  307. FS10 = "System.Collections.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  308. FS10 = "System.Collections.NonGeneric.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  309. FS10 = "System.Collections.Specialized.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  310. FS10 = "System.ComponentModel.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  311. FS10 = "System.ComponentModel.EventBasedAsync.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  312. FS10 = "System.ComponentModel.Primitives.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  313. FS10 = "System.ComponentModel.TypeConverter.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  314. FS10 = "System.Console.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  315. FS10 = "System.Data.Common.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  316. FS10 = "System.Diagnostics.Contracts.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  317. FS10 = "System.Diagnostics.Debug.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  318. FS10 = "System.Diagnostics.FileVersionInfo.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  319. FS10 = "System.Diagnostics.Process.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  320. FS10 = "System.Diagnostics.StackTrace.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  321. FS10 = "System.Net.Http.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  322. FS10 = "System.Net.NameResolution.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  323. FS10 = "System.Net.NetworkInformation.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  324. FS10 = "System.Net.Ping.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  325. FS10 = "System.Net.Primitives.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  326. FS10 = "System.Net.Requests.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  327. FS10 = "System.Net.Security.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  328. FS10 = "System.Net.Sockets.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  329. FS10 = "System.Net.WebHeaderCollection.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  330. FS10 = "System.Net.WebSockets.Client.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  331. FS10 = "System.Net.WebSockets.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  332. FS10 = "System.ObjectModel.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  333. FS10 = "System.Reflection.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  334. FS10 = "System.Reflection.Extensions.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  335. FS10 = "System.Reflection.Primitives.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  336. FS10 = "System.Resources.Reader.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  337. FS10 = "System.Resources.ResourceManager.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  338. FS10 = "System.Resources.Writer.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  339. FS10 = "System.Xml.XPath.XDocument.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  340. FS10 = "System.Xml.XPath.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  341. FS10 = "System.Xml.XmlSerializer.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  342. FS10 = "System.Xml.XmlDocument.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  343. FS10 = "System.Xml.XDocument.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  344. FS10 = "System.Xml.ReaderWriter.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  345. FS10 = "System.ValueTuple.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  346. FS10 = "System.Threading.Timer.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  347. FS10 = "System.Threading.ThreadPool.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  348. FS10 = "System.Threading.Thread.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  349. FS10 = "System.Threading.Tasks.Parallel.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  350. FS10 = "System.Threading.Tasks.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  351. FS10 = "System.Threading.Overlapped.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  352. FS10 = "System.Threading.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  353. FS10 = "System.Text.RegularExpressions.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  354. FS10 = "System.Text.Encodings.Web.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  355. FS10 = "System.Text.Encodings.Web.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  356. FS10 = "System.Text.Encoding.Extensions.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  357. FS10 = "System.Text.Encoding.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  358. FS10 = "System.Security.SecureString.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  359. FS10 = "System.Security.Principal.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  360. FS10 = "System.Security.Cryptography.X509Certificates.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  361. FS10 = "System.Security.Cryptography.Primitives.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  362. FS10 = "System.Security.Cryptography.Encoding.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  363. FS10 = "System.Security.Cryptography.Csp.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  364. FS10 = "System.Security.Cryptography.Algorithms.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  365. FS10 = "System.Security.Claims.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  366. FS10 = "System.Runtime.Serialization.Xml.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  367. FS10 = "System.Runtime.Serialization.Primitives.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  368. FS10 = "System.Runtime.Serialization.Json.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  369. FS10 = "System.Runtime.Serialization.Formatters.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  370. FS10 = "System.Runtime.Numerics.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  371. FS10 = "System.Runtime.InteropServices.RuntimeInformation.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  372. FS10 = "System.Runtime.InteropServices.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  373. FS10 = "ystem.Runtime.Handles.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  374. FS10 = "System.Runtime.Extensions.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  375. FS10 = "System.Runtime.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  376. FS10 = "System.Runtime.CompilerServices.VisualC.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If
  377. OK10 = True : CheckBox10.Checked = True : 刪除完成 = True
  378. End Sub
  379. End Class