Imports System.IO Imports System.Net Imports System.Text Imports System.Net.NetworkInformation Public Class HX_PGS_UPDATE ReadOnly ds2 As New DataSet ReadOnly computerProperties As IPGlobalProperties = IPGlobalProperties.GetIPGlobalProperties() ReadOnly IPEndPoint() As EndPoint = computerProperties.GetActiveTcpListeners() Dim myIPEndPoint As IPEndPoint Dim 內網線路, 開發線路, 刪除完成, OK1, OK2, OK3, OK4, OK5, OK6, OK7, OK8, OK9, OK10 As Boolean Dim Str As String = Application.StartupPath Dim TF, FS1 As String : Dim 標 As String = "SYS-UPDATE........" Private Sub HX_PGS_UPDATE_Load(sender As Object, e As EventArgs) Handles MyBase.Load Dim strDirName As String : Dim Strs As String = Application.StartupPath If File.Exists(Strs & "\OPUPDATE.txt") Then : File.Delete(Strs & "\OPUPDATE.txt") : End If strDirName = Strs & "\OPUPDATE.txt" Try Using fs As IO.FileStream = New IO.FileStream(strDirName, FileMode.Append) Using sw As StreamWriter = New StreamWriter(fs, Encoding.Default) Dim str1 As String = "..." sw.WriteLine(str1) '插入一整行 sw.Flush() End Using End Using Catch ex As Exception End Try '----------判斷是否有更新指定檔案------------------------------------------------------------------------------------- If File.Exists(Strs & "\HXUPDATE.txt") Then : Else strDirName = Strs & "\HXUPDATE.txt" Try Using fs As IO.FileStream = New IO.FileStream(strDirName, FileMode.Append) Using sw As StreamWriter = New StreamWriter(fs, Encoding.Default) Dim strk As String = "3" sw.WriteLine(strk) '插入一整行 sw.Flush() End Using End Using Catch ex As Exception End Try End If 登入人IP = "36.64.59.26,2433" : Target = "https://gcm-smart.com/ERP/HX-PGS/" '----------讀取更新指定檔案------------------------------------------------------------------------------------- Dim Str As String = Application.StartupPath If File.Exists(Str + "\HXUPDATE.txt") Then Dim filereader = My.Computer.FileSystem.OpenTextFileReader(Str + "\HXUPDATE.txt", System.Text.Encoding.Default) Dim Text As String = "" : Dim line As String = filereader.ReadLine() While Not (line Is Nothing) : Text = Text & line & vbCrLf : line = filereader.ReadLine() : End While : filereader.Close() If Strings.Left(Text, 1) = "1" Then 小更新_ch.Checked = True : 中更新_ch.Checked = False : 大更新_ch.Checked = False : 資料數 = 4 ElseIf Strings.Left(Text, 1) = "2" Then 小更新_ch.Checked = False : 中更新_ch.Checked = True : 大更新_ch.Checked = False : 資料數 = 70 ElseIf Strings.Left(Text, 1) = "3" Then 小更新_ch.Checked = False : 中更新_ch.Checked = False : 大更新_ch.Checked = True : 資料數 = 226 End If End If End Sub Private Sub HX_PGS_UPDATE_Shown(sender As Object, e As EventArgs) Handles MyBase.Shown If 小更新_ch.Checked = True Then 刪除完成 = True : 小更新.Enabled = True ElseIf 中更新_ch.Checked = True Then 刪除完成 = True : 中更新.Enabled = True ElseIf 大更新_ch.Checked = True Then 刪除所有檔案.Enabled = True : 大更新.Enabled = True End If '--- 開啟專案--------------------------------------------------------------------------------------------------------------------------- OK.Enabled = True End Sub Private Sub 小更新_Tick(sender As Object, e As EventArgs) Handles 小更新.Tick If 刪除完成 = True Then 小更新.Enabled = False 主程式更新.Enabled = True : OK2 = True : OK3 = True : OK4 = True : OK5 = True : OK6 = True : OK7 = True : OK8 = True : OK9 = True : OK10 = True End If End Sub Private Sub 中更新_Tick(sender As Object, e As EventArgs) Handles 中更新.Tick If 刪除完成 = True Then 中更新.Enabled = False '--- 刪除在下載--------------------------------------------------------------------------------------------------------------------------- 主程式更新.Enabled = True : 刪除在下載.Enabled = True '--- 比對下載--------------------------------------------------------------------------------------------------------------------------- 驗證存在1.Enabled = True : 驗證存在2.Enabled = True : 驗證存在3.Enabled = True : 驗證存在4.Enabled = True : 驗證存在5.Enabled = True 驗證存在6.Enabled = True : 驗證存在7.Enabled = True : OK10 = True End If End Sub Private Sub 大更新_Tick(sender As Object, e As EventArgs) Handles 大更新.Tick If 刪除完成 = True Then 大更新.Enabled = False '--- 刪除在下載--------------------------------------------------------------------------------------------------------------------------- 主程式更新.Enabled = True : 刪除在下載.Enabled = True '--- 比對下載--------------------------------------------------------------------------------------------------------------------------- 驗證存在1.Enabled = True : 驗證存在2.Enabled = True : 驗證存在3.Enabled = True : 驗證存在4.Enabled = True : 驗證存在5.Enabled = True 驗證存在6.Enabled = True : 驗證存在7.Enabled = True End If End Sub Public Sub Delay(ByRef Interval As Double) 'Interval单位为毫秒 Dim time As DateTime = DateTime.Now Dim Span As Double = Interval * 1234 While ((DateTime.Now.Ticks - time.Ticks) < Span) Application.DoEvents() End While End Sub Private Sub OK_Tick(sender As Object, e As EventArgs) Handles OK.Tick 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 OK.Enabled = False : CheckBox11.Checked = True : Dim FS1 As String FS1 = "HXUPDATE.txt" : If File.Exists(Str & "\" & FS1) Then : File.Delete(Str & "\" & FS1) : End If Shell(Str + "\HX-PGS-ERP-SYS.exe", vbNormalFocus) : Me.Close() End If End Sub Private Sub 更新路徑01() Me.Text = 標 & TF & FS1 : My.Computer.Network.DownloadFile(Target & FS1, Str & "\" & FS1) End Sub Private Sub 更新路徑02() Me.Text = 標 & TF & FS1 : My.Computer.Network.DownloadFile(Target & "de/" & FS1, Str & "\de\" & FS1) End Sub Private Sub 更新路徑03() Me.Text = 標 & TF & FS1 : My.Computer.Network.DownloadFile(Target & "DawnCache/" & FS1, Str & "\DawnCache\" & FS1) End Sub Private Sub 更新路徑04() Me.Text = 標 & TF & FS1 : My.Computer.Network.DownloadFile(Target & "GPUCache/" & FS1, Str & "\GPUCache\" & FS1) End Sub Private Sub 更新路徑05() Me.Text = 標 & TF & FS1 : My.Computer.Network.DownloadFile(Target & "locales/" & FS1, Str & "\locales\" & FS1) End Sub Private Sub 主程式更新_Tick(sender As Object, e As EventArgs) Handles 主程式更新.Tick Dim 已開啟 As Boolean = False : Dim Strs As String = Application.StartupPath '-------------------刪除重新下載------------------------------------------------------------------------------------------- MyModule1.進度條() : FS1 = "LANGUAGE_FILE.csv" : If File.Exists(Str & "\" & FS1) Then : File.Delete(Str & "\" & FS1) : End If : 更新路徑01() '-------------------沒找到就下載------------------------------------------------------------------------------------------- FS1 = "TOKEN.pdf" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "HXBWLOG.png" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "PGSBWLOG.PNG" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "CefSharp.BrowserSubprocess.Core.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "CefSharp.BrowserSubprocess.Core.pdb" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "CefSharp.BrowserSubprocess.exe" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "CefSharp.BrowserSubprocess.pdb" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "CefSharp.Core.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "CefSharp.Core.pdb" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "CefSharp.Core.Runtime.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "CefSharp.Core.Runtime.pdb" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "CefSharp.Core.Runtime.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "CefSharp.Core.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "CefSharp.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "CefSharp.pdb" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "CefSharp.WinForms.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "CefSharp.WinForms.pdb" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "CefSharp.WinForms.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "CefSharp.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "chrome_100_percent.pak" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "chrome_200_percent.pak" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "chrome_elf.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "d3dcompiler_47.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "DocumentFormat.OpenXml.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "DocumentFormat.OpenXml.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "icudtl.dat" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "libcef.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "libEGL.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "libGLESv2.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "LICENSE.txt" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "README.txt" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "resources.pak" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "snapshot_blob.bin" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "v8_context_snapshot.bin" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "vk_swiftshader.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "vk_swiftshader_icd.json" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "vulkan-1.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "PdfSharp.Charting.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "PdfSharp.Charting.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "PdfSharp.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "PdfSharp.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If MyModule1.進度條() : If Dir(Str + "\de", vbDirectory) <> "" Then : Else : MkDir(Str + "\de") : End If FS1 = "PdfSharp.Charting.resources.dll" : MyModule1.進度條() : If File.Exists(Str & "\de\" & FS1) Then : Else : 更新路徑02() : End If FS1 = "PdfSharp.resources.dll" : MyModule1.進度條() : If File.Exists(Str & "\de\" & FS1) Then : Else : 更新路徑02() : End If MyModule1.進度條() : If Dir(Str + "\DawnCache", vbDirectory) <> "" Then : Else : MkDir(Str + "\DawnCache") : End If FS1 = "data_0" : MyModule1.進度條() : If File.Exists(Str & "\DawnCache\" & FS1) Then : Else : 更新路徑03() : End If FS1 = "data_1" : MyModule1.進度條() : If File.Exists(Str & "\DawnCache\" & FS1) Then : Else : 更新路徑03() : End If FS1 = "data_2" : MyModule1.進度條() : If File.Exists(Str & "\DawnCache\" & FS1) Then : Else : 更新路徑03() : End If FS1 = "data_3" : MyModule1.進度條() : If File.Exists(Str & "\DawnCache\" & FS1) Then : Else : 更新路徑03() : End If FS1 = "index" : MyModule1.進度條() : If File.Exists(Str & "\DawnCache\" & FS1) Then : Else : 更新路徑03() : End If MyModule1.進度條() : If Dir(Str + "\GPUCache", vbDirectory) <> "" Then : Else : MkDir(Str + "\GPUCache") : End If FS1 = "data_0" : MyModule1.進度條() : If File.Exists(Str & "\GPUCache\" & FS1) Then : Else : 更新路徑04() : End If FS1 = "data_1" : MyModule1.進度條() : If File.Exists(Str & "\GPUCache\" & FS1) Then : Else : 更新路徑04() : End If FS1 = "data_2" : MyModule1.進度條() : If File.Exists(Str & "\GPUCache\" & FS1) Then : Else : 更新路徑04() : End If FS1 = "data_3" : MyModule1.進度條() : If File.Exists(Str & "\GPUCache\" & FS1) Then : Else : 更新路徑04() : End If FS1 = "index" : MyModule1.進度條() : If File.Exists(Str & "\GPUCache\" & FS1) Then : Else : 更新路徑04() : End If MyModule1.進度條() : If Dir(Str + "\locales", vbDirectory) <> "" Then : Else : MkDir(Str + "\locales") : End If FS1 = "af.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "am.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "ar.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "bg.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "bn.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "ca.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "cs.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "da.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "de.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "el.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "en-GB.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "en-US.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "es-419.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "es.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "et.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "fa.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "fi.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "fil.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "fr.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "gu.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "he.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "hi.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "hr.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "hu.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "id.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "it.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "ja.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "kn.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "ko.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "lt.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "lv.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "ml.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "mr.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "ms.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "nb.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "nl.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "pl.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "pt-BR.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "pt-PT.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "ro.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "ru.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "sk.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "sl.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "sr.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "sv.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "sw.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "ta.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "te.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "th.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "tr.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "uk.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "ur.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "vi.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "zh-CN.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "zh-TW.pak" : MyModule1.進度條() : If File.Exists(Str & "\locales\" & FS1) Then : Else : 更新路徑05() : End If FS1 = "HX-PGS-ERP-SYS.exe" If File.Exists(My.Computer.FileSystem.SpecialDirectories.Desktop & "\" & FS1) Then Dim pro() As Process = System.Diagnostics.Process.GetProcesses() ' 判斷是否有符合的Process For Each process As Process In pro : If ("HX-PGS-ERP-SYS").Equals(process.ProcessName) Then : 已開啟 = True : End If : Next If 已開啟 = False Then 主程式更新.Enabled = False MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : File.Delete(Str & "\" & FS1) : End If 更新路徑01() OK1 = True : CheckBox1.Checked = True End If ElseIf File.Exists(Strs & "\" & FS1) Then Dim pro() As Process = System.Diagnostics.Process.GetProcesses() ' 判斷是否有符合的Process For Each process As Process In pro : If ("HX-PGS-ERP-SYS").Equals(process.ProcessName) Then : 已開啟 = True : End If : Next If 已開啟 = False Then 主程式更新.Enabled = False MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : File.Delete(Str & "\" & FS1) : End If 更新路徑01() OK1 = True : CheckBox1.Checked = True End If End If End Sub Private Sub 刪除在下載_Tick(sender As Object, e As EventArgs) Handles 刪除在下載.Tick 刪除在下載.Enabled = False FS1 = "Interop.SHDocVw.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : File.Delete(Str & "\" & FS1) : End If : 更新路徑01() FS1 = "AxInterop.SHDocVw.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : File.Delete(Str & "\" & FS1) : End If : 更新路徑01() FS1 = "AxInterop.MSHTML.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : File.Delete(Str & "\" & FS1) : End If : 更新路徑01() OK2 = True : CheckBox2.Checked = True End Sub Private Sub 更新路徑06() Me.Text = 標 & TF & FS1 : My.Computer.Network.DownloadFile(Target & FS1, Str & "\Theme\" & FS1) End Sub Private Sub Timer3_Tick(sender As Object, e As EventArgs) Handles 驗證存在1.Tick '10 驗證存在1.Enabled = False MyModule1.進度條() : If Dir(Str + "\Theme", vbDirectory) <> "" Then : Else : MkDir(Str + "\Theme") : End If FS1 = "excel_chinese.xml" : MyModule1.進度條() : If File.Exists(Str & "\Theme\" & FS1) Then : Else : 更新路徑06() : End If FS1 = "excel_english.xml" : MyModule1.進度條() : If File.Exists(Str & "\Theme\" & FS1) Then : Else : 更新路徑06() : End If FS1 = "TelerikMetro_Chinese.tssp" : MyModule1.進度條() : If File.Exists(Str & "\Theme\" & FS1) Then : Else : 更新路徑06() : End If FS1 = "word_chinese.xml" : MyModule1.進度條() : If File.Exists(Str & "\Theme\" & FS1) Then : Else : 更新路徑06() : End If FS1 = "word_english.xml" : MyModule1.進度條() : If File.Exists(Str & "\Theme\" & FS1) Then : Else : 更新路徑06() : End If FS1 = "Telerik.WinControls.PdfViewer.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "Telerik.WinControls.PdfViewer.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "Telerik.Windows.Documents.Core.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "Telerik.Windows.Documents.Core.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If OK3 = True : CheckBox3.Checked = True End Sub Private Sub Timer4_Tick(sender As Object, e As EventArgs) Handles 驗證存在2.Tick '10 驗證存在2.Enabled = False FS1 = "HX-PGS-Message.exe" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "Tran.exe" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "HX-PGS-ERP-SYS.pdb" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "HX-PGS-ERP-SYS.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "HX-PGS-ERP-SYS.exe.config" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "A.txt" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "C.txt" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "ch.txt" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "py-tran-log.txt" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "System.Buffers.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If OK4 = True : CheckBox4.Checked = True End Sub Private Sub Timer5_Tick(sender As Object, e As EventArgs) Handles 驗證存在3.Tick '10 驗證存在3.Enabled = False FS1 = "DotNetBarcode.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "en.txt" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "IdentityModel.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "IdentityModel.pdb" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "IdentityModel.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "in.txt" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "Newtonsoft.Json.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "Newtonsoft.Json.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "PInvoke.Windows.Core.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "PInvoke.Windows.Core.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If OK5 = True : CheckBox5.Checked = True End Sub Private Sub Timer6_Tick(sender As Object, e As EventArgs) Handles 驗證存在4.Tick '10 驗證存在4.Enabled = False FS1 = "System.Buffers.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "System.Memory.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "System.Memory.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "System.Numerics.Vectors.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "System.Numerics.Vectors.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "System.Runtime.CompilerServices.Unsafe.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "System.Runtime.CompilerServices.Unsafe.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "System.Text.Encodings.Web.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "System.Text.Encodings.Web.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "Telerik.WinControls.SyntaxEditor.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If OK6 = True : CheckBox6.Checked = True End Sub Private Sub Timer7_Tick(sender As Object, e As EventArgs) Handles 驗證存在5.Tick '10 驗證存在5.Enabled = False FS1 = "Telerik.WinControls.SyntaxEditor.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "Telerik.WinControls.UI.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "Telerik.WinControls.UI.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "Telerik.WinControls.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "Telerik.Windows.Documents.Fixed.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "Telerik.Windows.Documents.Fixed.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "Telerik.Windows.Zip.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "Telerik.Windows.Zip.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "TelerikCommon.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "SuperDataGrid.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If OK7 = True : CheckBox7.Checked = True End Sub Private Sub Timer8_Tick(sender As Object, e As EventArgs) Handles 驗證存在6.Tick '10 驗證存在6.Enabled = False FS1 = "Telerik.WinControls.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "LIN HSING HAO.txt" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "HX01.docx" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "PGS01.docx" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "Microsoft.mshtml.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "Telerik.WinControls.RadDiagram.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "Telerik.WinControls.RadDiagram.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "Telerik.WinControls.RadDock.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "Telerik.WinControls.RadDock.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "Telerik.WinControls.RadMarkupEditor.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If OK8 = True : CheckBox8.Checked = True End Sub Private Sub Timer9_Tick(sender As Object, e As EventArgs) Handles 驗證存在7.Tick '3 驗證存在7.Enabled = False FS1 = "Telerik.WinControls.RadMarkupEditor.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "Telerik.WinControls.RichTextEditor.dll" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If FS1 = "Telerik.WinControls.RichTextEditor.xml" : MyModule1.進度條() : If File.Exists(Str & "\" & FS1) Then : Else : 更新路徑01() : End If OK9 = True : CheckBox9.Checked = True End Sub Private Sub 刪除所有檔案_Tick(sender As Object, e As EventArgs) Handles 刪除所有檔案.Tick 刪除所有檔案.Enabled = False : Dim FS10 As String MyModule1.進度條() : FS10 = "excel_chinese.xml" : If File.Exists(Str & "\Theme\" & FS10) Then : File.Delete(Str & "\Theme\" & FS10) : End If MyModule1.進度條() : FS10 = "excel_english.xml" : If File.Exists(Str & "\Theme\" & FS10) Then : File.Delete(Str & "\Theme\" & FS10) : End If MyModule1.進度條() : FS10 = "TelerikMetro_Chinese.tssp" : If File.Exists(Str & "\Theme\" & FS10) Then : File.Delete(Str & "\Theme\" & FS10) : End If MyModule1.進度條() : FS10 = "word_chinese.xml" : If File.Exists(Str & "\Theme\" & FS10) Then : File.Delete(Str & "\Theme\" & FS10) : End If MyModule1.進度條() : FS10 = "word_english.xml" : If File.Exists(Str & "\Theme\" & FS10) Then : File.Delete(Str & "\Theme\" & FS10) : End If MyModule1.進度條() : FS10 = "HX-PGS-ERP-SYS.pdb" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Telerik.WinControls.RadDiagram.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Telerik.WinControls.RadDiagram.xml" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Telerik.WinControls.RadDock.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Telerik.WinControls.RadDock.xml" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Telerik.WinControls.RadMarkupEditor.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Telerik.WinControls.RadMarkupEditor.xml" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "HX-PGS-ERP-SYS.xml" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "HX-PGS-ERP-SYS.exe.config" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "DotNetBarcode.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "IdentityModel.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "IdentityModel.pdb" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "IdentityModel.xml" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Newtonsoft.Json.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Newtonsoft.Json.xml" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "PInvoke.Windows.Core.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "PInvoke.Windows.Core.xml" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Buffers.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Buffers.xml" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Memory.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Memory.xml" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Numerics.Vectors.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Numerics.Vectors.xml" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Runtime.CompilerServices.Unsafe.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Runtime.CompilerServices.Unsafe.xml" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Text.Encodings.Web.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Text.Encodings.Web.xml" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Telerik.WinControls.SyntaxEditor.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Telerik.WinControls.SyntaxEditor.xml" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Telerik.WinControls.UI.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Telerik.WinControls.UI.xml" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Telerik.WinControls.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Telerik.Windows.Documents.Fixed.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Telerik.Windows.Documents.Fixed.xml" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Telerik.Windows.Zip.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Telerik.Windows.Zip.xml" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Telerik.WinControls.xml" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "TelerikCommon.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "SuperDataGrid.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Telerik.WinControls.PdfViewer.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Telerik.WinControls.PdfViewer.xml" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Telerik.WinControls.RichTextEditor.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Telerik.WinControls.RichTextEditor.xml" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Telerik.Windows.Documents.Core.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Telerik.Windows.Documents.Core.xml" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "MediaFoundation.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Microsoft.Toolkit.Uwp.Notifications.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Telerik.WinControls.ChartView.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Telerik.WinControls.ChartView.xml" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Telerik.WinControls.GridView.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Telerik.WinControls.GridView.xml" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Telerik.WinControls.RadMap.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Telerik.WinControls.RadMap.xml" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Telerik.WinControls.RadToastNotification.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Telerik.WinControls.RadToastNotification.xml" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Telerik.WinControls.RadWebCam.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Telerik.WinControls.RadWebCam.xml" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Telerik.Windows.MediaFoundation.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Linq.Queryable.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Linq.Parallel.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Linq.Expressions.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Linq.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.IO.UnmanagedMemoryStream.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.IO.Pipes.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.IO.MemoryMappedFiles.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.IO.IsolatedStorage.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.IO.FileSystem.Watcher.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.IO.FileSystem.Primitives.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.IO.FileSystem.DriveInfo.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.IO.FileSystem.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.IO.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.IO.Compression.ZipFile.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.IO.Compression.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Globalization.Extensions.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Globalization.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Globalization.Calendars.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Dynamic.Runtime.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Drawing.Primitives.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Diagnostics.Tracing.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Diagnostics.TraceSource.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Diagnostics.Tools.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Diagnostics.TextWriterTraceListener.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "Microsoft.Win32.Primitives.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "netstandard.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.AppContext.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Collections.Concurrent.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Collections.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Collections.NonGeneric.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Collections.Specialized.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.ComponentModel.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.ComponentModel.EventBasedAsync.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.ComponentModel.Primitives.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.ComponentModel.TypeConverter.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Console.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Data.Common.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Diagnostics.Contracts.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Diagnostics.Debug.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Diagnostics.FileVersionInfo.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Diagnostics.Process.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Diagnostics.StackTrace.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Net.Http.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Net.NameResolution.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Net.NetworkInformation.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Net.Ping.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Net.Primitives.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Net.Requests.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Net.Security.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Net.Sockets.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Net.WebHeaderCollection.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Net.WebSockets.Client.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Net.WebSockets.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.ObjectModel.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Reflection.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Reflection.Extensions.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Reflection.Primitives.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Resources.Reader.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Resources.ResourceManager.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Resources.Writer.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Xml.XPath.XDocument.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Xml.XPath.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Xml.XmlSerializer.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Xml.XmlDocument.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Xml.XDocument.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Xml.ReaderWriter.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.ValueTuple.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Threading.Timer.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Threading.ThreadPool.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Threading.Thread.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Threading.Tasks.Parallel.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Threading.Tasks.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Threading.Overlapped.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Threading.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Text.RegularExpressions.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Text.Encodings.Web.xml" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Text.Encodings.Web.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Text.Encoding.Extensions.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Text.Encoding.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Security.SecureString.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Security.Principal.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Security.Cryptography.X509Certificates.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Security.Cryptography.Primitives.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Security.Cryptography.Encoding.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Security.Cryptography.Csp.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Security.Cryptography.Algorithms.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Security.Claims.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Runtime.Serialization.Xml.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Runtime.Serialization.Primitives.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Runtime.Serialization.Json.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Runtime.Serialization.Formatters.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Runtime.Numerics.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Runtime.InteropServices.RuntimeInformation.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Runtime.InteropServices.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "ystem.Runtime.Handles.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Runtime.Extensions.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Runtime.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If MyModule1.進度條() : FS10 = "System.Runtime.CompilerServices.VisualC.dll" : If File.Exists(Str & "\" & FS10) Then : File.Delete(Str & "\" & FS10) : End If OK10 = True : CheckBox10.Checked = True : 刪除完成 = True End Sub End Class